yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
RDK S600 Developer Kit📖
1.RDK S600 board introduction
  • 1.1 RDK S600 board introduction
  • 1.2 System Flashing
  • 1.3 Hardware Interface Description
  • 1.4 Accessory Installation
  • 1.5 Camera Expansion Board
  • 1.6 MCU Interface Expansion Board
  • 1.7 Precautions for Using the 15.6-inch Screen
  • 1.8 System Boot Modes
2.RDK S600 basic course
  • 2.1 Network Configuration
  • 2.2 Remote Login
  • 2.3 System Update
  • 2.4 Boot Auto-Start Configuration
  • 2.5 RDK Exclusive Command Usage
  • 2.6 Linux Command Usage
  • 2.7 Examples of GPIO Read and Write Operations
  • 2.8 Using the USB Camera
  • 2.9 Solid-state mounting
  • 2.10 SSD expansionnew
3.TogetheROS.Bot Vision Applications
  • 1. About TogetheROS. Bot
  • 2. System Installation
  • 3. Object Detection(YOLO)
  • 4. Image Classification(mobilenetv2)
  • 5. Image Segmentation(mobilenet_unet)
  • 6. Perception Algorithm(BEV)
  • 7. Human Detection and Tracking (Ultralytics YOLO Pose)
4. Offline AI Large Model Development
Offline large model (Text Interaction)
  • 1. AI large model environment deployment
  • 2. Install large model dialogue platform
  • 3. Meta AI Llama 3.2 model
  • 4. Alibaba Cloud Qwen3 model
  • 5. Microsoft Phi-4 mini model
  • 6. DeepSeek - DeepSeek-R1 model
  • 7. Alibaba Cloud Qwen2.5vl Visual Multimodal Large Model
  • 8. Google Gemma3 Visual Multimodal Large Model
  • 9. Lava Visual Multimodal Large Model
  • 10. MiniCPM-V Visual Multimodal Large Model
  • 11. Multimodal visual understand application
  • 12. Multimodal text image application
  • 13. Multimodal visual localization application
  • 14. Multimodal table scanning application
  • 15. Multimodal Autonomous Agent Applications
Offline large model (Voice Interaction)
  • 0. Voice Interaction Hardware Connection (Must Read)
  • 1. Offline speech-to-text (ASR)
  • 2. Offline Text-to-Speech (TTS)
  • 3. AI large model voice interaction
  • 4. Multimodal visual understanding voice interaction
  • 5. Multimodal Text-to-Image application
  • 6. Multimodal video analytics application
  • 7. Multimodal visual localization application
  • 8. Multimodal table scanning application
  • 9. Multimodal autonomous agent application
  • 10. AI Large Model Offline Voice Assistant
5. Online AI Large Model Development
Online large model (Text Interaction)
  • 1.OpenRouter large model API aggregation platform
  • 2.Multimodal visual understand application
  • 3.Multimodal visual localization application
  • 4.Multimodal table scanning application
  • 5.Multimodal autonomous proxy application
Online large model (Voice Interaction)
  • 0.Voice interaction hardware connection (ReadMe)
  • 1.Online speech to text (ASR)
  • 2.Online text to speech (TTS)
  • 3.AI large model voice interaction
  • 4.Multimodal visual understand speech interaction
  • 5.Multimodal visual localization application
  • 6.Multimodal table scanning application
  • 7.Multimodal autonomous proxy application
  • 8.AI large model online voice assistant
6.YOLO26 tutorials
  • 01.YOLO26 environment
  • 02.CLI use
  • 03.Object detection
  • 04.Instance segmentation
  • 05.Pose estimation
  • 06.Image classification
  • 07.Oriented object detection
  • 08.Model conversion
  • 09.Dataset annotation
  • 10.Model training - conversion
  • 11.Model prediction
7.OpenClaw Advanced Development
  • 1. OpenClaw Deployment
  • 2. OpenClaw and WhatsApp Plugin Application
  • 3. OpenClaw TUI Interaction
  • 4. OpenClaw WebChat Interaction
  • 5. OpenClaw Gate Gateway Operation Manual
  • 6. OpenClaw Plugin Function Introduction
  • 7. OpenClaw Tools Introduction
  • 8. OpenClaw ClawHub Introduction (skill Installation)
  • 9.OpenClaw Application - File Management
  • 10.OpenClaw Application - Browser Control
  • 11.OpenClaw Application - Camera
  • 12.OpenClaw Application - Script Execution
  • 13.OpenClaw Application - AI Programming (Peripheral & GPIO Control)
  • 14. OpenClaw Application - Dedicated AI Assistant
  • 15. OpenClaw Configure Web Search Capability
8.ROS2 basic course
  • 1.Introduction to ROS2
  • 2.ROS2 install Jazzy
  • 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
  • System_File
  • Code
  • 3D_Model_File
  • Tools_Software
Download ZIP

Welcome to RDK S600 Developer Kit repository

22.ROS2 Gazebo simulation platform

22. ROS2 Gazebo Simulation Platform

Note: The accompanying reference video uses the ROS Humble version, for reference only

1. Gazebo Overview

Gazebo is the most commonly used 3D physics simulation platform in the ROS system. It supports dynamics engines and can achieve high-quality graphics rendering. It can not only simulate robots and their surrounding environment but also add physical properties such as friction coefficients and elasticity.

For example, if we want to develop a Mars rover, we can simulate the Mars surface environment in Gazebo. Another example is drone development. Due to limited battery life and flight restrictions, we can't frequently conduct experiments with physical drones. At this time, we might as well use Gazebo for simulation first. Once the algorithm development is mostly complete, deploy it to the physical device for operation.

Therefore, simulation platforms like Gazebo can help us verify robot algorithms, optimize robot design, and test robot application scenarios, providing more possibilities for robot development.

Note: This section is only for learning. The environment is not configured in the tutorial because we directly use physical device debugging here.

2. Installation and Running

  • Install gazebo via apt command:

sudo apt install gz-harmonic
xxxxxxxxxx
sudo apt install ros-jazzy-ros-gz
  • Run gazebo:

  • Start via the following command or directly through the desktop icon:

xxxxxxxxxx
gz sim

image-20250905185527569

After running, you can see the following page:

image-20260710120858155

3. Create Package

  • Create your own working directory. In the src directory of the workspace, create a myrobot package to store our SDF model files and launch files:

xxxxxxxxxx
ros2 pkg create myrobot --build-type ament_cmake
  • Go to the myrobot directory and create launch and sdf folders. Create a demo01_base.sdf file in the sdf folder. This file is a simple demonstration file with only a basic cube.

​x
<sdf version='1.11'>
  <model name='myrobot'>
    <link name='base_link'>
      <inertial>
        <pose>0 0 0 0 0 0</pose>
        <mass>0.10000000000000001</mass>
        <inertia>
          <ixx>0.00019041666666700001</ixx>
          <ixy>0</ixy>
          <ixz>0</ixz>
          <iyy>0.00019039999999999999</iyy>
          <iyz>0</iyz>
          <izz>0.00036000000000000002</izz>
        </inertia>
      </inertial>
      <collision name='base_link_collision'>
        <pose>0 0 0 0 0 0</pose>
        <geometry>
          <box>
            <size>0.20000000000000001 0.20000000000000001 0.20000000000000001</size>
          </box>
        </geometry>
        <surface>
          <contact>
            <ode/>
          </contact>
          <friction>
            <ode/>
          </friction>
        </surface>
      </collision>
      <visual name='base_link_visual'>
        <pose>0 0 0 0 0 0</pose>
        <geometry>
          <box>
            <size>0.20000000000000001 0.20000000000000001 0.20000000000000001</size>
          </box>
        </geometry>
        <material>
          <script>
            <name>Gazebo/Red</name>
            <uri>file://media/materials/scripts/gazebo.material</uri>
          </script>
        </material>
      </visual>
    </link>
  </model>
</sdf>

 

4. Write Launch File

For writing launch files, the launch file mainly starts two parts: starting the Gazebo file and loading the robot model into Gazebo.

xxxxxxxxxx
start_gazebo = ExecuteProcess(
    cmd=['ros2', 'launch', 'ros_gz_sim', 'gz_sim.launch.py', 'gui:=true'],
    output='screen')

This command's purpose is to start the new version Gazebo (Harmonic) simulation server and graphical interface. It is equivalent to gazebo --verbose -s ... in classic Gazebo, but no longer requires manually loading ROS plugins because the new version's communication with ROS is entirely handled by independent "bridge nodes". The simulator itself is completely decoupled. gui:=true will open Gazebo's visualization window at the same time, convenient for us to observe the simulation scene.

xxxxxxxxxx
 load_model = ExecuteProcess(
    cmd=['ros2', 'run', 'ros_gz_sim', 'create',
         '-file', sdf_model_path,
         '-name', robot_name],
    output='screen')

This line is equivalent to the spawn_entity.py node in classic Gazebo. Its function is to generate a prepared robot model (in SDF format) into the simulation world. The -file parameter specifies the model's SDF file path, and the -name parameter sets the unique name of the model in the simulation world.

Create a bringup_model.launch.py file in the launch directory. The complete launch file is as follows:

xxxxxxxxxx
import os
from launch import LaunchDescription
from launch.actions import ExecuteProcess, TimerAction
from launch_ros.substitutions import FindPackageShare

def generate_launch_description():
    robot_name = 'myrobot'
    package_name = 'myrobot'
    sdf_name = "demo01_base.sdf"   #SDF file

    pkg_share = FindPackageShare(package=package_name).find(package_name)
    sdf_model_path = os.path.join(pkg_share, f'sdf/{sdf_name}')

    # 1. Start Gazebo simulation (with GUI)
    start_gazebo = ExecuteProcess(
        cmd=['ros2', 'launch', 'ros_gz_sim', 'gz_sim.launch.py', 'gui:=true'],
        output='screen'
    )

    # 2. Load model into simulation (delay a few seconds to ensure Gazebo is ready)
    load_model = ExecuteProcess(
        cmd=['ros2', 'run', 'ros_gz_sim', 'create',
             '-file', sdf_model_path,
             '-name', robot_name],
        output='screen'
    )

    delayed_load = TimerAction(
        period=3.0,
        actions=[load_model]
    )

    ld = LaunchDescription()
    ld.add_action(start_gazebo)
    ld.add_action(delayed_load)

    return ld
  • In CMakeLists.txt, add the following to install our sdf and launch folders into the install directory:

xxxxxxxxxx
install(
    DIRECTORY sdf launch
    DESTINATION share/${PROJECT_NAME}
)
  • Then build and run the package:

xxxxxxxxxx
colcon build --packages-select myrobot

image-20260710141017426

  • Refresh environment variables and run the launch file:

xxxxxxxxxx
source install/setup.bash
xxxxxxxxxx
ros2 launch myrobot bringup_model.launch.py

After starting, you can see the following Gazebo model:

image-20260710141190431

You can see the red model.

ROS2 URDF model
ROS2 TF2 coordinate transformation

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/中文