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

pointCloud2 to pointCloud

asked 2013-05-30 15:34:31 -0500

Sentinal_Bias gravatar image

updated 2014-01-28 17:16:42 -0500

ngrennan gravatar image

Hi

I am using the pointcloud assembler in the laser_assembler package, unfortunately the package can only assemble pointclouds which are pointcloud1

The kinect i am using only publishes pointcloud2

Does anyone know how to convert pointCloud2 into pointcloud?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-05-30 15:40:19 -0500

weiin gravatar image

I use this http://www.ros.org/wiki/point_cloud_converter

You could look at the source to see if there's any change needed for Fuerte or Groovy (probably not, since it's mostly data copying)

See also http://www.ros.org/wiki/pcl/Overview#Converting_between_the_.60sensor_msgs::PointCloud.60_and_.60sensor_msgs::PointCloud2.60_format

edit flag offensive delete link more

Comments

Hi i found the package sensor_msg http://ros.org/wiki/sensor_msgs there is a fuction in the code api which does pointcloud conversion, but i am not sure how to access the static function http://www.ros.org/doc/api/sensor_msgs/html/namespacesensor__msgs.html#ab3bdbe5a82173d3483899c776e6ccbab i

Sentinal_Bias gravatar image Sentinal_Bias  ( 2013-05-30 15:47:09 -0500 )edit

You can always search for the function and see if others have used it. And follow how it is done. I would suggest using the point_cloud_converter node instead if you don't really need to know the nitty gritty.

weiin gravatar image weiin  ( 2013-05-30 15:57:16 -0500 )edit

Hi thanks the pointcloud converter works in fuerte no build errors

Sentinal_Bias gravatar image Sentinal_Bias  ( 2013-05-30 16:50:05 -0500 )edit

Question Tools

Stats

Asked: 2013-05-30 15:34:31 -0500

Seen: 2,313 times

Last updated: May 30 '13