当前位置:   article > 正文

TurtleBot4快速入门教程-远程PC安装

turtlebot4

说明:

  • 本教程主要介绍如何远程PC安装相关的软件

相关设备

安装操作系统

安装ROS2 Galactic Desktop

  • 方式一:使用ROS命令管理器快速安装

  • 首先安装ROS命令管理器

$ rm online.sh ; wget https://gitee.com/ncnynl/commands/raw/master/online.sh ; sudo chmod +x ./online.sh; ./online.sh
  • 启动ROS命令管理器
$ commands
  • 从下方目录栏选择ros2目录,导入install_ros2_galactic.jsonconfig_ros2_galatic_to_bashrc.json文件

  • 按照以上图片序号顺序依次运行对应的脚本,需要等待上一个脚本完成后再,再运行下一脚本

  • 测试是否成功安装,新终端运行以下命令

  1. $ ros2 topic list
  2. /parameter_events
  3. /rosout

安装Turtlebot4相关软件

  • 方式一:使用命令管理器快速安装

  • 启动ROS命令管理器

$ commands
  • 从下方目录栏选择ros2目录,导入install_ros2_tb4.jsoninstall_ros2_tb4_sourceconfig_ros2_to_CycloneDDS.json文件

  • 按照以上图片序号顺序依次运行对应的脚本,需要等待上一个脚本完成后再,再运行下一脚本

  • 方式二:使用传统方式安装

  • 安装相关依赖

  1. $ sudo apt update && sudo apt install -y \
  2. build-essential \
  3. cmake \
  4. git \
  5. python3-colcon-common-extensions \
  6. python3-flake8 \
  7. python3-pip \
  8. python3-pytest-cov \
  9. python3-rosdep \
  10. python3-setuptools \
  11. python3-vcstool \
  12. wget
  • 添加CycloneDDS配置
$ echo "export CYCLONEDDS_URI='<CycloneDDS><Domain><General><DontRoute>true</></></></>'" >> ~/.bashrc
  • apt安装相关包
  1. $ sudo apt update
  2. $ sudo apt install ros-galactic-turtlebot4-description \
  3. ros-galactic-turtlebot4-msgs \
  4. ros-galactic-turtlebot4-navigation \
  5. ros-galactic-turtlebot4-node \
  6. ros-galactic-turtlebot4-robot \
  7. ros-galactic-turtlebot4-desktop \
  8. ros-galactic-turtlebot4-simulator \
  9. ros-galactic-irobot-create-nodes
  • 源码安装相关包
  1. $ mkdir -p ~/ros2_tb4_ws/src
  2. $ cd ~/ros2_tb4_ws/src
  3. $ git clone -b galactic https://ghproxy.com/https://github.com/turtlebot/turtlebot4.git
  4. $ git clone -b galactic https://ghproxy.com/https://github.com/iRobotEducation/create3_sim.git
  5. $ git clone -b galactic https://ghproxy.com/https://github.com/iRobotEducation/irobot_create_msgs.git
  6. $ git clone -b galactic https://ghproxy.com/https://github.com/turtlebot/turtlebot4_robot.git
  7. $ git clone -b main https://ghproxy.com/https://github.com/luxonis/depthai-ros
  8. $ git clone -b main https://ghproxy.com/https://github.com/luxonis/depthai-ros-examples.git
  9. $ git clone -b galactic https://ghproxy.com/https://github.com/turtlebot/turtlebot4_desktop.git
  10. $ git clone -b galactic https://ghproxy.com/https://github.com/turtlebot/turtlebot4_simulator.git
  11. $ cd ~/ros2_tb4_ws
  12. $ rosdep install --from-path src -yi
  13. $ source /opt/ros/galactic/setup.bash
  14. $ colcon build --symlink-install
  15. $ echo "source ~/ros2_tb4_ws/install/local_setup.bash" >> ~/.bashrc

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/179501
推荐阅读
相关标签
  

闽ICP备14008679号