ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I'm not sure but it might be using your namespace in the check if it is available (and is therefore waiting for /your_ns/gazebo/apply_joint_effort).
Could you try :
ros::service::waitForService("/gazebo/apply_joint_effort", -1));
That might work, because it is then ignoring your namespace. At least for registering and subscribing topics this is the case.