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
cd ~/workspace/src/package_name
mkdir msg
echo "int64 num" > msg/num.msg
cd ~/workspace/src/package_name
mkdir srv
roscp rospy_tutorials AddTwoInts.srv srv/sum.srv
本文标题:01-ROS入门-06 ROS消息和服务
本文链接:https://www.haomeiwen.com/subject/oyszrttx.html
网友评论