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

Yes; you can have multiple publishers, subscribers, service servers and service clients in a single node.

You aren't calling ros::spin() or ros::spinOnce() anywhere in the code sample you're given; this may be part of the problem.

Can you please update your question with the entire file you're having problems with?