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

Question about scan.ranges information [closed]

asked 2022-11-28 22:39:58 -0500

distro gravatar image

updated 2022-11-28 23:21:52 -0500

Just to make sure I understand laser scan data. ranges is an array of scan distances. so:

ranges[0] shows scan distance at angle_min.

ranges[1] shows scan distance at angle_min+angle_increment.

ranges[2] shows scan distance at angle_min+(2*angle_increment) and so on? Is this correct

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by distro
close date 2023-01-16 12:28:13.637864

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-11-28 23:38:53 -0500

Your understanding seems correct.

http://docs.ros.org/en/melodic/api/se...

edit flag offensive delete link more

Comments

@Martin Peris The values in the ranges array are the distances with reference to the sensor frame?

distro gravatar image distro  ( 2022-12-01 13:26:54 -0500 )edit

Sorry, I missed your comment. Yes, the values in ranges array are the distances with reference to the sensor frame (specified in the header of the message)

Martin Peris gravatar image Martin Peris  ( 2022-12-18 20:38:14 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2022-11-28 22:39:58 -0500

Seen: 40 times

Last updated: Nov 28 '22