Extracting the (x,y,z) coordinates from pointcloud2 data in Python
Hello,
I'm in the process of using a stereo camera that generates a pointcloud2 sensor message. I can open it up in rviz, and view the pointcloud. now I want to try and use the uint8[] data for a system I'm working on. I have a Python subscription node that can subscribe to the proper topic as well as print the data inside the script. I just need to know how to get from this huge data string to a useable (x, y, z) format or numpy array in camera space for me to do something useful for it.
I did stumble across python-pcl by strawlab, but I'm not sure if that's what I need to use, or what?
Looking forward to some help!
Thanks in advance!