Generate pointcloud2 messagge from rgbd data
Heveryone,
my goal is to convert rgbd data from a sensor in a manner so that it can be published to a rostopic using the geometry_msgs/pointcloud2 message format. The rgbd data is available to me through two one-dimensional arrays, one holding the color, the other the depth information for each pixel.
If I understood correctly, the coordinates for the pointcloud points first have to be projected into world space in order to get a pointcloud. Is there any library functionality recommended for this or should one best implement it theirselves. I am a beginner and unsure if I understood the pointcloudmessage correctly so I would be interested in which steps would be necessary for this?
Thanks in advance!
Asked by SpaceTime on 2021-05-03 06:46:40 UTC
Answers
Take a look at the depth_image_proc package. It is available for noetic and provides a rgbd/pointcloud nodelette to perform exactly the conversion you are interested in.
Asked by shonigmann on 2021-05-03 11:38:37 UTC
Comments