ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Concluding on my own question:
I now initialize by:
ros::service::waitForService("some_service_name");
# then create service client: client = nh.serviceClient(...)
# then check validity with: client.isValid()
Then later, if client.call()
fails, then retry the above initialization block.