ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You should pass the variable you need by assign srv.request.[VariableName] = [true, false];, like you did in the response.

You should pass the variable you need by assign srv.request.[VariableName] = [true, false];, like you did in the response.response. You can have a deeper look at that at this tutorial:

http://wiki.ros.org/ROS/Tutorials/WritingServiceClient%28c%2B%2B%29

You should pass the variable you need by assign srv.request.[VariableName] = [true, false];, like you did in the response. You can have a deeper look at that at this tutorial:

http://wiki.ros.org/ROS/Tutorials/WritingServiceClient%28c%2B%2B%29

beginner_tutorials::AddTwoInts srv;
srv.request.a = atoll(argv[1]);
...
client.call(srv)

You should pass the variable you need by assign srv.request.[VariableName] = [true, false];, like you did in the response. You can have a deeper Please also look at that at this tutorial:

http://wiki.ros.org/ROS/Tutorials/WritingServiceClient%28c%2B%2B%29

beginner_tutorials::AddTwoInts srv;
srv.request.a = atoll(argv[1]);
...
client.call(srv)