Skip to content

Commit 17ebe44

Browse files
committed
Upload ROS2 README.md
1 parent d2dfc92 commit 17ebe44

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

pictures/patchwork2_in_ros2.gif

4.47 MB
Loading

ros/README.md

+17-6
Original file line numberDiff line numberDiff line change
@@ -35,26 +35,37 @@
3535
You should not need any extra dependency, just clone and build:
3636

3737
```sh
38+
mkdir -p ~/ros2_ws/src
3839
git clone https://github.com/url-kaist/patchwork-plusplus.git
40+
cd ~/ros2_ws
3941
colcon build --packages-select patchworkpp
4042
source ./install/setup.bash
4143
```
4244

43-
### How to run
45+
## :runner: To run the demo codes
46+
There is a demo that executes Patchwork++ with a sample rosbag2 (mcap) file. You can download a sample file using the following command.
47+
48+
> [!TIP]
49+
> Please install mcap library as follows:
50+
>
51+
> sudo apt install ros-humble-rosbag2-storage-mcap
52+
>
53+
> Then, download a sample dataset for ros2: [mcap file download [~540MB] ](https://laesze-my.sharepoint.com/:u:/g/personal/herno_o365_sze_hu/Eclwzn42FS9GunGay5LPq-EBA6U1dZseBFNDrr6P0MwB2w?download=1)
54+
4455

4556
The only required argument to provide is the **topic name** so Patchwork++ knows which PointCloud2 to process:
4657

4758
```sh
48-
ros2 launch patchworkpp.launch.py visualize:=false use_sim_time:=true topic:=/lexus3/os_center/points base_frame:=lexus3/os_center_a_laser_data_frame
59+
ros2 launch patchworkpp patchworkpp.launch.py visualize:=true use_sim_time:=true cloud_topic:=/lexus3/os_center/points base_frame:=lexus3/os_center_a_laser_data_frame
4960
```
5061

51-
and then,
62+
and then, play rosbag as follows:
5263

5364
```
5465
ros2 bag play lexus3-2024-04-05-gyor.mcap --loop
5566
```
5667

57-
```sh
58-
rviz2 -d patchworkpp.rviz
59-
```
68+
Consequently, we can see the results in Rviz:
69+
70+
![img](../pictures/patchwork2_in_ros2.gif)
6071

0 commit comments

Comments
 (0)