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

Generate pointcloud2 messagge from rgbd data

asked 2021-05-03 06:46:40 -0500

SpaceTime gravatar image

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-05-03 11:38:37 -0500

shonigmann gravatar image

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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-05-03 06:46:40 -0500

Seen: 370 times

Last updated: May 03 '21