01-ROS入门-06 ROS消息和服务
2016-05-26 本文已影响82人
joey_zhou
1.ROS消息
1.1新建ros消息
cd ~/workspace/src/package_name
mkdir msg
echo "int64 num" > msg/num.msg
2.ROS服务
2.1新建ros服务
cd ~/workspace/src/package_name
mkdir srv
roscp rospy_tutorials AddTwoInts.srv srv/sum.srv