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

Getting direction from single universal laser

asked 2021-08-05 17:58:32 -0500

sisko gravatar image

I have 360 degrees laser coverage around a robot with the data published into a single topic. But because of that I can not tell what laser data reflects right, left, front or back or the robot.

Just wondering if there is a technic for detecting direction from a single universal laser reading ?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2021-08-05 20:11:46 -0500

Mike Scheutzow gravatar image

if the message is a standard sensor_msgs/LaserScan, there are fields describing the angular coverage of the scan. The ray lengths in the ranges[] array should be ordered sequentially from angle_min up to almost angle_max, sweeping counter-clockwise if you look down from above.

The answer to your question is that, for the standard LaserScan message, angle 0.0 is "forward" in the sensor's own transform frame.

edit flag offensive delete link more

Comments

Thank you Mike. I will look into that.

sisko gravatar image sisko  ( 2021-08-05 21:11:48 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2021-08-05 17:58:32 -0500

Seen: 62 times

Last updated: Aug 05 '21