10.3 使用 srv
10.3.1 创建一个srv
$ roscd beginner_tutorials
$ mkdir srv$ roscp [package_name] [file_to_copy_path] [copy_path]$ roscp rospy_tutorials AddTwoInts.srv srv/AddTwoInts.srv# Do not just add this line to your CMakeLists.txt, modify the existing line
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
message_generation)10.3.2 使用 rossrv
Last updated