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

How to use pointcloud_to_laserscan in ros2

asked 2023-01-18 14:59:45 -0500

rsc gravatar image

updated 2023-01-19 18:49:26 -0500

ljaniec gravatar image

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-01-19 16:51:54 -0500

Davies Ogunsina gravatar image

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 .

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-01-18 14:59:45 -0500

Seen: 340 times

Last updated: Jan 19 '23