第二章 认识ROS 课后作业 代码包课后作业1、运行海龟仿真器,并使用命令行工具新产生2只海龟运行roscore和turtlesim节点后,调用spawn服务创建新海龟turtle2:rosservice call /spawn "x: 5.0 y: 3.0 theta: 0.0 name: 'turtle2'" (x和y的值代表海龟的位置)之后再调用spawn服务创建另一只新海龟turtle3:rosservice call /spawn "x: 6.0 y: 6.0 theta: 0.0 name: 'turtle3'" 2、查看3只海龟的计算图结构利用rqt_graph 3、使用命令行工具控制一只海龟做圆周运动,并显示位置曲线控制turtle2圆周运动显示位置曲线:rqt_plot 代码包 所有代码已上传至github网站: github链接: https://github.com/YuemingBi/ros_practice/tree/master 课后作业 1、运行海龟仿真器,并使用命令行工具新产生2只海龟 运行roscore和turtlesim节点后,调用spawn服务创建新海龟turtle2:rosservice call /spawn “x: 5.0 y: 3.0 theta: 0.0 name: ‘turtle2’” (x和y的值代表海龟的位置) 之后再调用spawn服务创建另一只新海龟turtle3:rosservice call /spawn “x: 6.0 y: 6.0 theta: 0.0 name: ‘turtle3’” 2、查看3只海龟的计算图结构 利用rqt_graph 3、使用命令行工具控制一只海龟做圆周运动,并显示位置曲线 控制turtle2圆周运动 显示位置曲线:rqt_plot