How to use pointcloud_to_laserscan in ros2
I'm using ROS 2 Foxy and I want to convert PointCloud2
msg to LaserScan
msg, I think the best way is to use the pointcloud_to_laserscan
package (link: pointcloudtolaserscan) but I was not able to make it work.
The command I was using is this:
ros2 run pointcloudtolaserscan pointcloudtolaserscannode --ros-args --remap cloudin:=/pointcloud2_topic
Asked by rsc on 2023-01-18 15:59:45 UTC
Answers
In the launch file you definitely will see a yaml file linked to the launch file...you have to remap the topic of the point cloud to the laser can topic .
Asked by Davies Ogunsina on 2023-01-19 17:51:54 UTC
Comments