ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
In your main, your dispatcher node is a temporary object, so it is created and then immediately destroyed:
objrecog_dispatcher::DispatcherNode(nh, p_nh);
Instead, you need to keep the DispatcherNode in a variable:
objrecog_dispatcher::DispatcherNode dispatcher_node(nh, p_nh);