yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
RDK X5 Robot📖
01. RDK-X5-Robot Introduction
  • 1.Introduction
  • 2.Common Problem Analysis
  • 3.Battery and charger usage precautions
  • 4.TF card expand capacity
02. Assembly Tutorial
  • Assembly Tutorial
  • Assembly Video-1
  • Assembly Video-2
  • Assembly Video-3
  • Assembly Video-4
03. Remote Control Course
  • 1.Mobile APP remote control
  • 2.USB Wireless Controller Remote Control
04. ROS Driver Board Course
  • 1. Introduction of extension board
  • 2. Set up STM32 development environment
  • 3. Key control buzzer sound
  • 4. FreeRTOS application
  • 5. Serial communication
  • 6. SBUS model remote control
  • 7. CAN bus communication
  • 8. RGB color light strip
  • 9. Timer interrupt control PWM servo
  • 10. Control serial steering gear
  • 11. Nine-axis attitude sensor to obtain data
  • 12. Control motor forward and reverse
  • 13. The timer captures encoder data
  • 14. Theory of robot kinematics analysis
  • 15. PID control robot motion
05. Basic Control Course
  • 1.Update expansion board firmware
  • 2.Install Python driver library
  • 3.Set the car type
  • 4.Open and close APP program control
  • 5.Turn hotspot mode on and off
  • 6.Buzzer sound
  • 7.Control the motor to rotate forward and reverse
  • 8.Controlling robot movement
  • 9.OLED display
  • 10.Control fans and lighting effects
06. Development Environment
  • 1. Virtual machine installation and use
  • 2. Linux Basics
  • 3. Remote connection
  • 4. Multi-machine communication configuration
  • 5. Bind device ID
  • 6. Image installation and backup
07. ROS2 Basic Course
  • 1. Introduction to ROS2
  • 2. ROS2 install Humble
  • 3. ROS2 development environment
  • 4. ROS2 workspace
  • 5. ROS2 function package
  • 6. ROS2 node
  • 7. ROS2 topic communication
  • 8. ROS2 service communication
  • 9. ROS2 action communication
  • 10. ROS2 custom interface message
  • 11. ROS2 parameter service case
  • 12. ROS2 meta-function package
  • 13. ROS2 distributed communication
  • 14. ROS2 DDS
  • 15. ROS2 time related API
  • 16. ROS2 common command tools
  • 17. ROS2 rviz2 use
  • 18. ROS2 rqt toolbox
  • 19. ROS2 Launch startup file configuration
  • 20. ROS2 recording and playback tool
  • 21. ROS2 URDF model
  • 22. ROS2 Gazebo simulation platform
  • 23. ROS2 TF2 coordinate transformation
08. Robot Chassis Control Course
  • 1. PID algorithm theory
  • 2. Robot information release
  • 3. Robot control
  • 4. Robot state estimation
  • 5. Robot calibration
  • 6. Robot trajectory tracking
  • 7. URDF Model
09. LiDAR Course
  • 1. Introduction and use of lidar
  • 2. Lidar obstacle avoidance
  • 3. Lidar tracking
  • 4. Lidar guard
  • 5. Lidar patrol
  • 6. gmapping mapping algorithm
  • 7. Cartographer mapping algorithm
  • 8. Navigation and obstacle avoidance
  • 9. App Mapping and Navigation
10. OpenCV Course
  • 1. Getting started with OpenCV
  • 2. OpenCV geometric transformation
  • 3. OpenCV Image Processing
  • 4. OpenCV image beautification
  • 5. QR code creation and recognition
11. Mipi Camera Course
  • 1. Camera driver
  • 2. Adjust the color HSV value
  • 3. Color recognition
  • 4. Color Tracking
  • 5. Color Follow
  • 6. QR code instructions
  • 7. Face Detection
  • 8. Object Detection
  • 9. Visual line patrol-OpenCV
  • 10. Visual line patrol-deep learning
  • 11. Human body tracking
  • 12. Gesture control
12. Depth Camera Course
  • 1. Use of Depth Camera
  • 2. Camera intrinsic calibration
  • 3. ROS+OpenCV Basics
  • 4. AR Vision
  • 5. Color Tracking
  • 6. Object Tracking
  • 7. RTAB-Map 3D Mapping Navigation
13. Multi-robot Synchronous Control
  • Multi-vehicle synchronous control
Remote login control
  • 1. VNC and SSH remote login
  • 2. Jupyter lab login and case code running
Download
  • System_File
  • Code
  • VM_File
  • Software_Tools
  • Hardware_Info
  • Firmware
  • Instruction_Manual
  • ROS2_Basic_VM
Download ZIP

Welcome to RDK X5 Robot repository

3. ROS2 development environment

3. ROS2 development environment

In theory, you can write basic ROS2 programs in Notepad, but to improve development efficiency, you can install the integrated development environment (VSCode).

1. Using the VSCode development environment

  • Search for "VSCode" in your browser, select the installation package for your platform, download and install it.

image-20250814155106188

  • Install commonly used plug-ins to improve work efficiency.

image-20250814155201019

image-20250814155255572

image-20250814155341084

2. Using the Terminal

In ROS2, you'll frequently use the terminal. We recommend a relatively easy-to-use terminal: Terminator. The results are as follows:

image-20231023123012987

2.1. Installation

xxxxxxxxxx
sudo apt install terminator

2.2. Launching

xxxxxxxxxx
Shortcut `Ctrl+Alt+T` to launch

2.3. Common Terminator Shortcuts

About operations within the same tab:

Alt+Up                          // Move to the upper terminal
Alt+Down                        // Move to the lower terminal
Alt+Left                        // Move to the left terminal
Alt+Right                       // Move to the right terminal
Ctrl+Shift+O                    // Split terminal horizontally
Ctrl+Shift+E                    // Split terminal vertically
Ctrl+Shift+Right                // Move the splitter bar to the right in a vertically split terminal
Ctrl+Shift+Left                 // Move the splitter bar to the left in a vertically split terminal
Ctrl+Shift+Up                   // Move the splitter bar up in a horizontally split terminal
Ctrl+Shift+Down                 // Move the splitter bar down in a horizontally split terminal
Ctrl+Shift+S                    // Hide/Show scroll bars
Ctrl+Shift+F                    //Search
Ctrl+Shift+C                    //Copy the selected content to the clipboard
Ctrl+Shift+V                    //Paste the clipboard content here
Ctrl+Shift+W                    //Close the current terminal
Ctrl+Shift+Q                    //Exit the current window, all terminals in the current window will be closed
Ctrl+Shift+X                    //Maximize the current terminal
Ctrl+Shift+Z                    //Maximize the current terminal and enlarge the font
Ctrl+Shift+N or Ctrl+Tab        //Move to the next terminal
Ctrl+Shift+P or Ctrl+Shift+Tab  //Crtl+Shift+Tab moves to the previous terminal

About operations between tabs:

F11                             //Full screen switch
Ctrl+Shift+T                    //Open a new tab
Ctrl+PageDown                   //Move to the next tab
Ctrl+PageUp                     //Move to the previous tab
Ctrl+Shift+PageDown             //Exchange the current tab with the tab after it
Ctrl+Shift+PageUp               //Exchange the current tab with the tab before it
Ctrl+Plus (+)                   //Increase the font
Ctrl+Minus (-)                  //Decrease the font
Ctrl+Zero (0)                   // Restore the font to its original size
Ctrl+Shift+R                    // Reset the terminal state
Ctrl+Shift+G                    // Reset the terminal state and clear the screen
Super+g                         // Bind all terminals so that input into one terminal is automatically input into all terminals
Super+Shift+G                   // Unbind
Super+t                         // Bind all terminals in the current tab so that input into one terminal is automatically input into the other terminals
Super+Shift+T                   // Unbind
Ctrl+Shift+I                    // Open a new window; the new window will use the same process as the original window
Super+i                         // Open a new window; the new window will use a different process than the original window

3. Using Git

3.1. Installation

Since daily work involves teamwork and version management, Git is an essential skill. Git is a free and open source distributed version control system. To install Git in Ubuntu:

xxxxxxxxxx
sudo apt install git

3.2. Basic Git Operations

Git's job is to create and save snapshots of your project and compare them with subsequent snapshots.

This chapter introduces commands for creating and committing your project snapshots.

Git uses the following six commands: git clone, git push, git add, git commit, git checkout, and git pull. We'll explain them in detail later.

img

Description:

  • workspace: Workspace
  • staging area: Staging area
  • local repository: Repository or local repository
  • remote repository: Remote repository

A simple step-by-step guide:

xxxxxxxxxx
$ git init
$ git add .
$ git commit
  • git init - Initializes the repository.
  • git add . - Adds files to the staging area.
  • git commit - Adds the contents of the staging area to the repository.

3.2.1. Repository Creation Commands

The following table lists the Git commands for creating repositories:

CommandDescription
git initInitializes a repository
git cloneMakes a copy of a remote repository, essentially downloading a project.

3.2.2. Committing and Modifying

Git's job is to create and save snapshots of your project and compare them with subsequent snapshots.

The following table lists the commands for creating and committing snapshots of your project:

CommandDescription
git addAdds files to the staging area
git statusViews the current status of the repository, showing modified files.
git diffCompares file differences, that is, the differences between the staging area and the working directory.
git commitCommits the staging area to the local repository.
git resetRoll back a revision.
git rmRemove a file from the staging area and the working directory.
git mvMove or rename a file in the working directory.
git checkoutSwitch branches.
git switch (introduced in Git 2.23)Switch branches more cleanly.
git restore (introduced in Git 2.23)Revert or undo changes to a file.

3.2.3. Commit Log

CommandDescription
git logView historical commits
git blame <file>View the modification history of a specified file in list form

3.2.4. Remote Operations

CommandDescription
git remoteRemote repository operations
git fetchRetrieve code from a remote repository
git pullDownload and merge remote code
git pushUpload and merge remote code

For more information on using the Git tool, enter git --help in the terminal to view the help documentation.

ROS2 install Humble
ROS2 workspace

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文