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

Revision history [back]

click to hide/show revision 1
initial version

If you add a prefix to your node handler (nh in your example), that prefix should be used on the service.

ros::NodeHandle nh("webcam");

If that doesn't work, you can always launch the node in a non-global namespace. Have a look at this question.