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

Revision history [back]

You can have a look at existing implementations of this:

These examples should both do what you want (and given the ubiquitous use of both approaches they should work :) ).