ROS初识
作者:
提着木剑走天下 | 来源:发表于
2019-07-24 22:00 被阅读0次1. 启动核心服务点和仿真节点
roscore #核心服务点
rosrun turtlesim turtlesim_node #仿真节点

node.png
2.创建新的海龟turtle3
rosservice call /spawn "x: 5.0
y: 0.0
theta: 0.5
name: 'turtle3'"
3.控制海龟turtle3原地做圆周运动
rostopic pub -r 10 /turtle3/cmd_vel geometry_msgs/Twist "linear:
x: 0.5
y: 0.0
z: 0.0
angular:
x: 0.0
y: 0.0
z: 1.0"

result.png
4.查看海龟仿真系统的计算图
rqt_graph

计算图.png
5.查看 /turtle2/pose的可视化信息
rqt_plot

topic可视化.png
6.查看 /turtle2/pose的实时信息
rostopic echo /turtle2/pose
本文标题:ROS初识
本文链接:https://www.haomeiwen.com/subject/lwhllctx.html
网友评论