ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

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

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

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

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


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

Seen: 99 times

Last updated: Sep 29 '18