ROS_Kinetic_11 ROS程序基础Eclipse_C++(二)
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-