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: pointcloud_to_laserscan) but I was not able to make it work.
The command I was using is this:
ros2 run pointcloud_to_laserscan pointcloud_to_laserscan_node --ros-args --remap cloud_in:=/pointcloud2_topic