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

Configuring ROS msg to transmit std::vector<pcl17::PointXYZRGB>

asked 2013-10-14 01:27:55 -0600

Zoid gravatar image

updated 2013-11-14 12:30:35 -0600

tfoote gravatar image

Hello all,

I am using PCL (Point Cloud Library 1.7) with ROS and I have the following problem. I want to create a publisher and subscriber node and publish three vectors : std::vector<pcl17::pointxyzrgb>, with variable size each time (The vector may contain a different number of points each time).

Can anybody help me to configure the ROS msg in order to achieve transmission?

Best,

Akis

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-10-14 02:55:47 -0600

Artem gravatar image

updated 2013-10-14 03:16:12 -0600

Can you elaborate why you want to publish three vectors? If you just want to publish a point cloud check the question and the answer here.

Here is a quite old discussion of what you probably want to do.

edit flag offensive delete link more

Comments

There's a tutorial for creating messages here: http://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv

tfoote gravatar image tfoote  ( 2013-10-14 16:34:33 -0600 )edit

Well, I am segmenting a point cloud (taken from a Kinect sensor) and I am trying to publish a vector with the centroid points of each extracted cluster and another two vectors that contain the minimum and maximum points of each cluster. In every iteration I might extract different number of clusters and therefore my published vectors will have a variable size. What I could do is to try publishing the cluster clouds in a single vector, instead of publishing three vectors and then extract the centroid and max/min points on the receiving ROS node. I am quite new with ROS and PCL and that's why I need your help an advise in this matter. I went through the suggested tutorials and I am trying to understand how ros message works but I still haven't fully got it. Any help would be greatly appreciate it. :) Best, Akis

Zoid gravatar image Zoid  ( 2013-10-16 01:50:24 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-10-14 01:27:55 -0600

Seen: 520 times

Last updated: Oct 14 '13