ROS(014: Wrinting a Simple Service and Client (C++))

$ roscd beginner_tutorials
$ cd src

$ vi add_two_ints_server.cpp

add content:

$ vi add_two_ints_client.cpp

add content:

$ vi ~/catkin_ws/src/beginner_tutorials/CMakeLists.txt

add following content to the end:

$ cd ~/catkin_ws

$ catkin_make

 

Ref:

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

 

 

 

打赏