turtlebot学习1

1.bring up启动指令
机器人端:
roslaunch turtlebot3_bringup turtlebot3_robot.launch
PC端:
roscore
roslaunch turtlebot3_bringup turtlebot3_model.launch(启动RViz观察机器人传感器内容)

2.键盘遥控机器人
机器人端:同上
PC端:
roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch
3.机器人SLAM
首先利用VNC远程登录机器人(摆脱各种有线电缆的束缚)
(1)vinagre
(2)按“connect”,
(3)Protocol:VNC
(4)Host:192.168.1.9:5900(机器人的IP地址)
(5)按“connect”,输入对方密码
之后,利用VNC远程登录机器人在机器人端运行:
roslaunch turtlebot3_bringup turtlebot3_robot.launch
之后在PC端运行:
roslaunch turtlebot3_slam turtlebot3_slam.launch(SLAM主程序)
rosrun rviz rviz -d `rospack find turtlebot3_slam`/rviz/turtlebot3_slam.rviz(打开rviz环境)
roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch(遥控机器人)
rosrun map_server map_saver -f ~/map(保存地图map.pgmmap.yaml将保存在/home目录中
目前实验发现地图构建的精度很差,当机器人存在掉头运动时,来和回的地图不能很好的重合在一起,需要进一步研究
4.机器人巡航
机器人端:
roslaunch turtlebot3_bringup turtlebot3_robot.launch
PC端:
roslaunch turtlebot3_navigation turtlebot3_navigation.launch map_file:=$HOME/map.yaml(巡航主程序)
rosrun rviz rviz -d `rospack find turtlebot3_navigation`/rviz/turtlebot3_nav.rviz(打开rviz)
  • Click the 2D Pose Estimate button.
  • Click on the approxtimate point in the map where the TurtleBot3 is located and drag the cursor to indicate the direction where TurtleBot3 faces.
  • Click the 2D Nav Goal button.
  • Click on a specific point in the map to set a goal position and drag the cursor to the direction where TurtleBot should be facing at the end.

实验发现机器人的定位和路径规划比较准确,但控制方法蔽障策略落后,一些已经规划出的路径机器人无法沿着路径完成运动

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值