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

kinect /scan data format

asked 2012-07-18 11:00:45 -0500

Rydel gravatar image

updated 2016-10-24 09:10:08 -0500

ngrennan gravatar image

just a quick question, does the scan ( topic's ranges array hold 360 values each representing a degree in a circle for the microsoft kinect?

For example, I've realized that index 180 (or 179?) is directly in front of the camera, does that make the next index 1 degree to the left/right?

One more explanation for clarity, sorry i'm having trouble explaining this in a manner i feel is clear, the kinect is vertex A, do depth scan ranges[180] and ranges[181] make a 1 degree angle at vertex A?

Thanks for any help!

edit retag flag offensive close merge delete



also is there a simple way to overlap the /scan data array onto the rgb data array? I guess I would just need to know what row the /scan topic is using but i'm not sure where to find that.

Rydel gravatar image Rydel  ( 2012-07-18 11:05:25 -0500 )edit

Are you talking about the depth image, a laser scanner or the kinect-transformed-to-laserscan?

Felix Endres gravatar image Felix Endres  ( 2012-07-19 23:15:53 -0500 )edit

sorry, im talking about the kinect-to-laserscan, a topic called /scan, the one the navigation stack uses to build 2-d maps on the turtlebot;

Rydel gravatar image Rydel  ( 2012-07-22 14:43:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-07-23 00:10:21 -0500

dornhege gravatar image

The values you are looking for are:

float32 angle_min        # start angle of the scan [rad]
float32 angle_max        # end angle of the scan [rad]
float32 angle_increment  # angular distance between measurements [rad]

The i-th range corresponds to angle: angle_min + i * angle_increment. Two consecutive ranges are always angle_increment apart. You should read those out for the kinect specifics, but I doubt that they are full 360 deg as that wouldn't make sense.

edit flag offensive delete link more



thanks for the info!

Rydel gravatar image Rydel  ( 2012-07-23 06:16:16 -0500 )edit

Question Tools


Asked: 2012-07-18 11:00:45 -0500

Seen: 672 times

Last updated: Jul 23 '12