ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You cannot call a service using a publisher. This is simply the wrong way to do this.
You need to use a ServiceClient. Have a look at the python tutorial on creating a ServiceClient for how to do this. Then, use the respective service type in your script.
2 | No.2 Revision |
You cannot call a service using a publisher. This is simply the wrong way to do this.
You need to use a ServiceClient. Have a look at the python tutorial on creating a ServiceClientServiceClient (or ServiceProxy) for how to do this.
Then, use the respective service type in your script.