pi-puck在ROS下的使用
1.前进
rostopic pub -1 /mobile_base/cmd_vel geometry_msgs/Twist -- '[4.0,0.0,0.0]' '[0.0,0.0,0.0]'
2.后退
rostopic pub -1 /mobile_base/cmd_vel geometry_msgs/Twist -- '[-4.0,0.0,0.0]' '[0.0,0.0,0.0]'
3.顺时针旋转
rostopic pub -1 /mobile_base/cmd_vel geometry_msgs/Twist -- '[1.0,0.0,0.0]' '[0.0,0.0,-0.5]'
4.逆时针旋转
rostopic pub -1 /mobile_base/cmd_vel geometry_msgs/Twist -- '[1.0,0.0,0.0]' '[0.0,0.0,0.5]'
作者:kay 出处:https://www.cnblogs.com/kay2018/ 本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。 如果文中有什么错误,欢迎指出。以免更多的人被误导。 |