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

does PointCloud2 have redundant fields?

asked 2016-07-12 15:49:11 -0500

petermitrano gravatar image

updated 2016-07-12 15:49:42 -0500

I'm thinking of hijacking the PointCloud2 message to display a set of data. Each data point has position, orientation, and another integer value. I see that I have to tell PointCloud2 the width/height of my data (in my case, Nx1), and the fields and their sizes (in my case, 7 float32 and 1 int32)

Given this, what is the point of the row_step and point_step? Why do I have to calculate those and add them to the message? I seems like redundant information, where:

point_step = field size
row_step = field_size * width
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-02-21 18:39:55 -0500

tfoote gravatar image

Yes, I believe that it's a little bit redundant with the benefit of being a little bit easier to access.

edit flag offensive delete link more

Comments

The point and row step also allow you to account for any padding that may be present in your data.

ahendrix gravatar image ahendrix  ( 2019-02-21 21:29:53 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2016-07-12 15:49:11 -0500

Seen: 168 times

Last updated: Feb 21 '19