ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
From what I understand you want several classes of your program to use ros-node functionality. You can just pass them the node handle in their constructor and store it in a member variable. See here for such a constructor definition.