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

Publish PointCloud descriptors

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

kalectro gravatar image

Hi,

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?

Kai

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

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

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

Question Tools

Stats

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

Seen: 215 times

Last updated: Nov 23 '14