Ask Your Question

Revision history [back]

If you check the sensor_msgs/PointCloud type you can see that it contains an array of points of type geometry_msgs/Point32 that have member variables x, y and z. So you can write a node that listens to your markers topic, extract the points coordinates, puts them into the PointCloud message and republish that message.