ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Please look into the documentation of sensor_msgs::PointCloud2 (http://ros.org/doc/api/sensor_msgs/html/msg/PointCloud2.html) and you can use the field "data" to access z values.
Possible duplicate of this question (http://answers.ros.org/question/11556/datatype-to-access-pointcloud2/)