turtlebot3-burger_150.png
turtlebot3-waffle-pi_150.png
turtlebot3-arm_150.png
walking-y2_150.png
turbot3-multi_150.png
turbot3-dl-ros1_150.png
turbot3-ai.png
turbot3-dl-ros2_150.png
turbot3-slam_150.png
turbot3-arm_150.png
turtlebot4-lite_150.png
turtlebot4-pro_150.png
turbot4-dl_150.png
turbot4-ai_150.png
aidriving-racebot_150.png
aidriving-autodrive_150.png
turtlebot-arm_150.png
openmanipulator-x_150.png
Home » ROS2与Gazebo11入门教程 » ROS2与Gazebo11入门教程-多机器人移动仿真

ROS2与Gazebo11入门教程-多机器人移动仿真

纠错,疑问,交流: 请进入讨论区请点击进入页面,扫码加入微信群或Q群进行交流

获取最新文章: 扫一扫加入“创客智造”公众号

ROS2与Gazebo11入门教程-搭建多机器人仿真环境

说明:

  • 介绍如何搭建一个多机器人仿真环境
  • 环境: ubuntu22.04 + humble

步骤:

  • 安装RCM
rm online.sh ; wget https://gitee.com/ncnynl/commands/raw/master/online.sh ; sudo chmod +x ./online.sh; ./online.sh
  • 通过RCM安装box_bot仿真包
cs -s install_box_bot

测试:

  • 启动仿真
ros2 launch box_bot_gazebo main.launch.xml
  • 效果图

请输入图片描述

  • 启动rviz
ros2 launch box_bot_description start_rviz.launch.xml
  • 效果图

请输入图片描述

  • 启动键盘控制
ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args --remap cmd_vel:=/box_bot_1/cmd_vel
ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args --remap cmd_vel:=/box_bot_2/cmd_vel
ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args --remap cmd_vel:=/box_bot_3/cmd_vel
  • 查看话题
ros2 topic list
  • 查看里程
ros2 topic echo /box_bot_1/odom
  • 查看速度话题
ros2 topic echo /box_bot_1/cmd_vel
  • 查看TF
ros2 run rqt_tf_tree rqt_tf_tree

参考:

纠错,疑问,交流: 请进入讨论区请点击进入页面,扫码加入微信群或Q群进行交流

获取最新文章: 扫一扫加入“创客智造”公众号


标签: ros2与gazebo11入门教程