Ask Your Question

Publish PointCloud descriptors

asked 2013-02-24 09:23:45 -0500

kalectro gravatar image


I want to publish my calculated point cloud descriptors like so

pub_descriptors = nh.advertise<pcl::PointCloud<pcl::SHOT352>::Ptr> ("descriptors", 1);

but ROS won't let me because it cannot serialize it throwing a really long error. What is the prettiest way of solving this problem? What is the fastest one? In the end I do not always want to publish SHOT352 descriptors but also try FPFH and some others. Do I need to create a new message type for any descriptor I want to try out? Is there a way to have that work similar to image_transport where I can subscribe to all available compressions?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-11-23 03:07:44 -0500

tfoote gravatar image

You have correctly identified that you cannot publish a datatype without serialization defined.

To enable serialization you need to have an isomorphic data type. So if you're trying different descriptors you will likely need to create new isomorphic ros messages to represent the data.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-02-24 09:23:45 -0500

Seen: 132 times

Last updated: Nov 23 '14