ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Just do it exactly like in any other code: Make a NodeHandle an subscribe using that.
The only things to look out for: Someone must have called ros::init (usually the main program using the library) and at least one NodeHandle must still be alive.