ROS_Kinetic_11 ROS程序基礎Eclipse_C++(二)
編寫簡單的Service和Client (C++):
http://wiki.ros.org/cn/ROS/Tutorials/WritingServiceClient%28c%2B%2B%29
上節程序測試以及Python教程可以參考:
http://wiki.ros.org/cn/ROS/Tutorials/ExaminingPublisherSubscriber
http://wiki.ros.org/cn/ROS/Tutorials/WritingPublisherSubscriber%28python%29
同樣,在Eclipse中實現。這裡直接查看源代碼等,就不重復操作了。
add_two_ints_server.cpp
add_two_ints_client.cpp
編譯前檢查CMakeLists.txt。
Python版請參考:
http://wiki.ros.org/cn/ROS/Tutorials/WritingServiceClient%28python%29
測試請參考:
http://wiki.ros.org/cn/ROS/Tutorials/ExaminingServiceClient
-End-