Skip to content

Commit

Permalink
Feat update message type of /livox/lidar to sensor_msgs/PointCloud2 (#83
Browse files Browse the repository at this point in the history
)

* Feat update message type of /livox/lidar to sensor_msgs/PointCloud2

* Feat update link of msg_MID360.launch.py
  • Loading branch information
IkuoShige authored Nov 26, 2023
1 parent cb504d8 commit 81ef8f1
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions docs/document/real_machine/set_up/livox.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,14 +135,26 @@ ping 192.168.1.119
+ colcon build --symlink-install --cmake-args -DCMAKE_BUILD_TYPE=Release -DROS_EDITION=${VERSION_ROS2} -DHUMBLE_ROS=${ROS_HUMBLE}
```

### 3.4 hostpcとLIVOXのIPアドレスの設定
### 3.4 [msg_MID360_launch.py](https://github.com/Livox-SDK/livox_ros_driver2/blob/master/launch_ROS2/msg_MID360_launch.py#L8)の変更
```bash
sed -i 's/xfer_format = 1/xfer_format = 0/' $HOME/livox_ws/src/livox_ros_driver2/launch_ROS2/msg_MID360_launch.py
```

```diff linenums="8"
-xfer_format = 1 # 0-Pointcloud2(PointXYZRTL), 1-customized pointcloud format
+xfer_format = 0 # 0-Pointcloud2(PointXYZRTL), 1-customized pointcloud format
```
!!! note
`/livox/lidar`のメッセージ型を`sensor_msgs/msg/PointCloud2`に設定

### 3.5 hostpcとLIVOXのIPアドレスの設定

```bash
sed -i "s/192.168.1.5/192.168.1.50/g" $HOME/livox_ws/src/livox_ros_driver2/config/MID360_config.json
sed -i "s/192.168.1.12/192.168.1.119/g" $HOME/livox_ws/src/livox_ros_driver2/config/MID360_config.json
```

### 3.5 build
### 3.6 build

```bash
cd $HOME/livox_ws/src/livox_ros_driver2
Expand All @@ -151,7 +163,7 @@ ping 192.168.1.119
source $HOME/livox_ws/install/setup.bash
```

### 3.6 実行
### 3.7 実行

```bash
ros2 launch livox_ros_driver2 rviz_MID360_launch.py
Expand Down

0 comments on commit 81ef8f1

Please sign in to comment.