Ask Your Question

Meaning of the data passed by PointCloud2 message

asked 2018-06-21 13:22:29 -0500

dlandry3 gravatar image

updated 2018-06-21 13:59:34 -0500

I know that the first 4 numbers in the data set correspond to the x coordinate, the next 4 to the y and so on, but I was wondering how the first 4 numbers are turned into a distance in meters. Also why does the row_step and width change with each message sent? Thanks

edit retag flag offensive close merge delete


Hello, how do you get a PointCloud2 message? Which sensor are you using?

dljubic gravatar image dljubic  ( 2018-06-21 23:22:43 -0500 )edit

We are using the sweep lidar sensor from scance.

dlandry3 gravatar image dlandry3  ( 2018-06-22 00:08:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-06-22 05:34:20 -0500

PratNag gravatar image

For a pointcloud2 msg the x,y,z values are stored in . You can refer to Also there is field is_dense in the pointcloud2 msg. If that is true it skips the invalid points so that makes it change the width i guess.

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

1 follower


Asked: 2018-06-21 13:22:29 -0500

Seen: 165 times

Last updated: Jun 22 '18