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

Revision history [back]

A good place to start is the API documentation.

For example, the pcl::Poincloud doc shows you that you can get any point by indexing into it with the [] operator, like an array.

The PointXYZRGB description isn't as clear, but it does tell you it's a struct (meaning all members are public), and if you dig through the header files you'll find you can access the values via point.x, .y, .z, etc.

A good place to start is the API documentation.

For example, the pcl::Poincloud doc shows you that you can get any point by indexing into it with the [] operator, like an array.

The PointXYZRGB description isn't as clear, but it does tell you it's a struct (meaning all members are public), and if you dig through the header files you'll find you can access the values via point.x, .y, .z, etc.

A good place to start is the API documentation.

For example, the pcl::Poincloud doc shows you that you can get any point by indexing into it the cloud with the [] operator, like an array.

The PointXYZRGB description isn't as clear, but it does tell you it's a struct (meaning all members are public), and you'll find you can access the values via point.x, .y, .z, etc.