ROS entry (xiv) testing simple and Client Service

Article Directory

Run Service

Let's start running Service:

$ rosrun beginner_tutorials add_two_ints_server     (C++)
$ rosrun beginner_tutorials add_two_ints_server.py  (Python)

You will see a message similar to the following:

Ready to add two ints.

Client running
now, running the Client and comes with a number of parameters:

$ rosrun beginner_tutorials add_two_ints_client 1 3     (C++)
$ rosrun beginner_tutorials add_two_ints_client.py 1 3  (Python)

You will see a message similar to the following:

request: x=1, y=3
sending back response: [4]

Now that you have successfully run your first Service and Client program, you can begin to learn how to record and play back the data.

Published 34 original articles · won praise 2 · Views 2336

Guess you like

Origin blog.csdn.net/weixin_44088559/article/details/104990271