ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I know I'm a little late here, but a function is included in ros_numpy package for this exact purpose. http://docs.ros.org/kinetic/api/ros_numpy/html/point__cloud2_8py_source.html
An example implementation:
import ros_numpy
...
xyz_array = ros_numpy.point_cloud2.get_xyz_points(pointcloud2_array)