1.   利用matlab 控制小乌龟运动

  1) 终端下启动小乌龟: 

roscore

 rosrun turtlesim turtlesim_node

 rostopic pub /turtle1/cmd_vel geometry_msgs/Twist -r 1 -- '[2.0, 0.0, 0.0]' '[0.0, 0.0, -1.8]'

2) 在matlab下    第一步   rosinit

   第二步编写文件ros_mat2.m          链接: https://pan.baidu.com/s/1eSGQDjk 密码: me16

    ROS 下与matlab2016b matlab程序控制运动(一)

     第三步运行   run  

可以看到小乌龟已经动起来了

ROS 下与matlab2016b matlab程序控制运动(一)

      



                                    

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
  • 2022-01-20
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
猜你喜欢
  • 2022-12-23
  • 2021-08-12
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2021-10-11
相关资源
相似解决方案