add wishlist add wishlist show wishlist add compare add compare show compare preloader icon-theme-126 icon-theme-161 icon-theme-138 icon-theme-027 electro-thumb electro-return-icon electro-brands-icon electro-payment
  • +1 (857) 226-1305
  • +86 18825289328

MentorPi Setting Up a Custom ROS2 Workspace on the Robot

1. Introduction

In this ROS 2 basic tutorial, when attempting to create a custom ROS workspace on the robot, the steps in the tutorial may not work as expected. This is because the tutorial is performed in a virtual machine, and the system environment differs from the robot’s operating system.

2. Operation Step

This tutorial uses the creation of a simple ROS workspace as an example.

  1. Double-click the remote desktop icon to open a new command-line terminal, then enter the command mkdir ros2_ws.
mkdir mydemo_ros
  1. Enter the command cd ros2_ws/ && mkdir src to create a new src folder.
cd ros2_ws/ && mkdir src
  1. Enter the command colcon build to build the workspace.
colcon build
  1. Enter the command source ~/ros2_ws/install/setup.zsh to load the workspace environment in ROS2. This step differs from the procedure used in the virtual machine.
source ~/ros2_ws/install/setup.zsh

3. Important Note

To download the package, a network connection is required.

Light
Dark