Skip to content

Commit dc0599e

Browse files
committed
Initialize ROS2 support
1 parent 633346d commit dc0599e

5 files changed

Lines changed: 203 additions & 190 deletions

File tree

ros/launch/patchworkpp.launch.py

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def generate_launch_description():
2626
base_frame = LaunchConfiguration("base_frame", default="base_link")
2727

2828
# ROS configuration
29-
pointcloud_topic = LaunchConfiguration("topic")
29+
pointcloud_topic = LaunchConfiguration("cloud_topic")
3030
visualize = LaunchConfiguration("visualize", default="true")
3131

3232
# Optional ros bag play
@@ -45,10 +45,24 @@ def generate_launch_description():
4545
{
4646
# ROS node configuration
4747
"base_frame": base_frame,
48-
# Patchwork++ configuration
49-
# TBU
5048
"use_sim_time": use_sim_time,
51-
},
49+
# Patchwork++ configuration
50+
'sensor_height': 1.88,
51+
'num_iter': 3, # Number of iterations for ground plane estimation using PCA.
52+
'num_lpr': 20, # Maximum number of points to be selected as lowest points representative.
53+
'num_min_pts': 0, # Minimum number of points to be estimated as ground plane in each patch.
54+
'th_seeds': 0.3,
55+
# threshold for lowest point representatives using in initial seeds selection of ground points.
56+
'th_dist': 0.125, # threshold for thickness of ground.
57+
'th_seeds_v': 0.25,
58+
# threshold for lowest point representatives using in initial seeds selection of vertical structural points.
59+
'th_dist_v': 0.9, # threshold for thickness of vertical structure.
60+
'max_range': 80.0, # max_range of ground estimation area
61+
'min_range': 1.0, # min_range of ground estimation area
62+
'uprightness_thr': 0.101,
63+
# threshold of uprightness using in Ground Likelihood Estimation(GLE). Please refer paper for more information about GLE.
64+
'verbose': True # display verbose info
65+
}
5266
],
5367
)
5468
rviz_node = Node(

0 commit comments

Comments
 (0)