ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Make the node handle a global or class variable so you can reference it from anywhere. You can declare the node handle, without initializing it, then do the initialization in your main function.