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

PointClouds as service vs topic

asked 2013-08-14 21:49:03 -0600

The Martin gravatar image

In my system, I'm getting PointClouds from a sensor, and I have some nodes that need all of the point clouds (so they subscribe to a point cloud topic), but I have some nodes that only need to see the most recent point cloud every once in a while (once per minute, or so).

It seems wasteful to have those nodes subscribe to the point cloud topic as well, as I suppose that would result in copying a lot of data, even if most of it is thrown away; even if all nodes run on the same computer.

So what I'm planning to do is to have the sensor node that communicates with the sensor provide point clouds both as a topic (for streaming access) and as a service (so that interested nodes can request a scan here and there).

Does that look like a sensible solution?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-08-15 01:41:45 -0600

Sound not too bad :-). An easy alternative might be to shutdown a subscriber and resubscribe when you need a new cloud.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2013-08-14 21:49:03 -0600

Seen: 347 times

Last updated: Aug 15 '13