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

how to convert sensor_msgs/Ranger to sensor_msg/LaserScan.msg

asked 2018-09-29 13:46:45 -0500

mohamedkhattab gravatar image

i want to convert 5 reading of ir sensor to laser scan

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-29 14:44:57 -0500

you will need to work out the fields for the laser scan message from the physical orientation of your sensors (min/max angle, angle increment etc...), create a laser scan message object and populate the appropriate fields with that data, create a list of values from your readings and use that for the ranges field.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2018-09-29 13:46:45 -0500

Seen: 128 times

Last updated: Sep 29 '18