yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
RDK X5 MagicBox📖
1.RDK MagicBox
  • 1. RDK MagicBox Official Materials
  • 2. Troubleshooting boot failure
  • 3. Linux memory query
2.RDK MagicBox Introduction
  • 1. Introduction to RDK MagicBox
  • 2. Write System File
  • 3. Hardware Interface Description
3.RDK MagicBox User Guide
1. Quick Start
  • Quick Start
2. Basic Peripheral Usage
  • Basic Peripheral Usage
3. Algorithm Development
  • 1. Stereo Depth Estimation
  • 2. Gesture Interaction
  • 3. Voice Interaction
4.RDK MagicBox Basic Settings
  • 1.Network configuration
  • 2.Remote login
  • 3.Update system
  • 4.srpi-config user guide
  • 5.config. txt configuration file
  • 6.Self-startup setting
  • 7.RDK exclusive command usage
  • 8.Linux command usage
  • 9.GPIO readwrite operation
  • 10.Image classification algorithm
  • 11.Use USB camera
  • 12.MIPI Camera Usage
5.RDKX5 Magicbox Basic Development Course
For C language
  • 1. Camera Image Acquisition and Display
  • 2. Camera Image Local Saving
  • 3. Camera Image Acquisition and Encoding
  • 4. Video File Decoding and Display
  • 5. RTSP Stream Decoding
  • 6. VPS Scaling Example
  • 7. Target Detection Algorithm — focs
  • 8. Target Detection Algorithm — YOLOv5s
  • 9. Using CAN
For Python language
  • 1. Prerequisites Before Using Pin Functions
  • 2. Using GPIO
  • 3. Using PWM
  • 4. Use serial port
  • 5. Using I2C
  • 6. Using SPI
For Linux Development
  • Linux Development Guide
6.Online AI Model Course
Online AI Model Course(Text Interaction)
  • 0. Preparation before use
  • 1. OpenRouter Large Model API Aggregation Platform
  • 2. Multimodal Visual Understanding Application
  • 3. Multimodal Visual Positioning Application
  • 4. Multimodal Table Scanning Application
  • 5. Multimodal Autonomous Agent Application
Online AI Model Course(Voice Interaction)
  • 1. Online Speech‑to‑Text (ASR)
  • 2. Online Text‑to‑Speech (TTS)
  • 3. AI Large Model Voice Interaction
  • 4. Multimodal Visual Voice Interaction
  • 5. Multimodal Visual Positioning Application
  • 6. Multimodal Table Scanning Application
  • 7. Multimodal Autonomous Agent Application
  • 8. AI Large Model Online Voice Assistant
7.OpenClaw Embodied AI Development
  • 1. Introduction to OpenClaw
  • 2. OpenClaw Deployment
  • 3. OpenClaw Whatsapp Plugin Application
  • 4. OpenClaw WebChat Interaction
  • 5. OpenClaw TUI Interaction
  • 6. OpenClaw Tool Introduction
  • 7. OpenClawGate Gateway User Manual
  • 8. OpenClaw Plugin Feature Introduction
  • 9. OpenClaw ClawHub Introduction (skill installation)
  • 10. OpenClaw Application - File Management
  • 11. OpenClaw Application - Camera
  • 12. OpenClaw Application - Browser Control
  • 13. OpenClaw Application - Script Execution
  • 14. OpenClaw Application - AI‑programmed Status Light Control
  • 15. OpenClaw Application - AI‑programmed Servo Control
  • 16. OpenClaw Application - Dedicated AI Assistant
8.ROS2 Basic Tutorial
  • 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
Download
  • Code
  • Software_tools
  • SystemFile
Download ZIP

Welcome to RDK X5 MagicBox 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/中文