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 » Turtlebot4快速入门教程_视频版 » TurtleBot4快速入门教程-远程PC安装

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

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

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

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

说明:

  • 本教程主要介绍如何远程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文件

请输入图片描述

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

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

$ ros2 topic list
/parameter_events
/rosout
  • 方式二:使用传统方式安装

安装Turtlebot4相关软件

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

  • 启动ROS命令管理器

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

请输入图片描述

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

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

  • 安装相关依赖

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

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

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


标签: none