ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Use both point cloud and laserscan with navigation stack

asked 2023-02-23 14:06:51 -0600

chm007 gravatar image

updated 2023-02-23 14:07:04 -0600

Good Day,

I have a depthimage camera with associated ros package to generate point cloud data on my/points topic and an Rplidar that generates laserscan data on the/scan topic. I have the nav stack working with the laserscan/scan topic but now I also want to use the forward facing depth camera. I review the navigation stack documentation, is it as simple as adding another obstacle layer to cosmap that uses the point cloud /points topic?

Regards,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-02-23 17:15:41 -0600

chased11 gravatar image

Include the following In your costmap_common_params file:

observation_sources: laser_scan_sensor point_cloud_sensor

laser_scan_sensor: {sensor_frame: camera_link, data_type: LaserScan, topic: /scan, marking: true, clearing: true}

point_cloud_sensor: {
    sensor_frame: camera_link,
    data_type: PointCloud2, 
    topic: rtabmap/depth/color/ground, 
    expected_update_rate: 1.5, 
    marking: true, 
    clearing: true,
    min_obstacle_height: -99999.0,
    max_obstacle_height: 99999.0}
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-02-23 14:06:51 -0600

Seen: 307 times

Last updated: Feb 23 '23