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

Revision history [back]

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.