yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
MicroROS V2 Robot Car📖
01.Introduction
  • 0.Unboxing Video
  • 1. Readme Learning Route
  • 2. Must Read Before Use
  • 3. Introduction to MicroROS V2 Control Board
  • 4. Introduction to LiDAR
  • 5. Introduction to ESP32 Camera Module
  • 6. FAQ
  • 7. About Charging
02.Assembly course
  • Assembly Video
03.Preparation
  • 1. Quickly Start
  • 2. Write Firmware
  • 3. Install VM and Start System
  • 4. Configure VM and Connect Robot
  • 5. Connect to MicroROS Agent
04.Quick start control course
  • 1. VM Keyboard Remote Control
  • 2. VM Handle Remote Control
  • 3. USB Handle Control
05.Robot control course
  • 1. Robot Information Release
  • 2. Robot Keyboard Control
  • 3. Robot Handle Control
  • 4. Robot State Estimation
  • 5. Linear Speed Calibration
  • 6. Angular Velocity Calibration
  • 7. Robot URDF Model
06.Lidar course
  • 1. Precautions for LiDAR Mapping and Navigation
  • 2. Lidar Avoid
  • 3. Lidar Following
  • 4. Lidar Guard
  • 5. Lidar Patrol
  • 6. Gmapping Mapping
  • 7. Cartographer Mapping
  • 8. Cartographer Quickly Repositioning Navigation
  • 9. Slam Toolx Mapping
  • 10. Navigation2 Single Point Navigation
  • 11. Navigation2 Multi Point Navigation
  • 12. Ros Robot App Mapping And Navigation
07.Road network planning
  • 1. Introduction to Road Network Planning and Quick Start
  • 2. Build a Pose Map
  • 3. Road Network Annotation
  • 4. Planning and Navigation Between Road Networks
  • 5. Road Network Navigation in Any Pose
  • 6. Path Replanning
08.Vision basic course
OpenCV Image Processing
  • 1. Introduction to OpenCV Source CV
  • 2. Open Source CV Geometric Transformation
  • 3. Open Source CV Image Processing and Drawing Text Line Segments
  • 4. Open Source CV Image Beautification
09.Visual General Course (For Standard&Superior version)
4. Yolov11&26 Visual Recognition
  • 1. YOLO Environment Setup
  • 2. CLI Usage
  • 3. Object Detection
  • 4. Instance Segmentation
  • 5. Pose Estimation
  • 6. Image Classification
  • 7. Oriented Bounding Boxes Object Detection
  • 8. Model Prediction
1. ESP32 Visual Recognition Module Configuration
  • 1. Serial Port Configuration WiFi Instructions
  • 2. Use ESP32 Camera Module in Robot Car
  • 3. Servo PTZ Calibration
2. OpenCV Visual Recognition
  • 1. Human Pose Estimation
  • 2. Object Detection
  • 3. AR Vision
  • 4. QR Code
  • 5. Color Recognition
  • 6. Facial Recognition
  • 7. AprilTag Machine Code Recognition
3. Mediapipe Visual Recognition
  • 1. Hand Detection
  • 2. Pose Detection
  • 3. Holistic Detection
  • 4. Facial Detection
  • 5. Facial Recognition
  • 6. Facial Special Effects
  • 7. 3D Object Recognition
  • 8. Brush
  • 9. Gesture Recognition
  • 10. Palm Target Localization
  • 11. Fingertip Trajectory Recognition
10.Visual Advanced Course (Just for Standard version)
1. Visual Control
  • 1. QR Code Recognition Control Action
  • 2. AprilTag Control Car Action Group
  • 3. Gesture Control Car Action Group
  • 4. Visual Line Tracking
2. Visual Tracking
  • 1. Color Tracking
  • 2. Facial Tracking
  • 3. QR Code Tracking
  • 4. Object Recognition And Tracking
  • 5. Mediapipe Palm Tracking
  • 6. Mediapipe Gesture Tracking
  • 7. Mediapipe Human Pose Tracking
  • 8. KCF Object Tracking
  • 9. AprilTag Machine Code Tracking
3. Visual Following
  • 1. Color Follow
  • 2. Face Follow
  • 3. QR Code Follow
  • 4. Mediapipe Palm Follow
  • 5. Mediapipe Gesture Follow
  • 6. Mediapipe Human Posture Follow
  • 7. AprilTag Machine Code Follow
  • 8. Object Follow
11.Visual Advanced Course (Just for Superior version)
1. Visual Control
  • 1. QR Code Recognition Control Action
  • 2. AprilTag Control Car Action Group
  • 3. Gesture Control Car Action Group
  • 4. Visual Line Tracking
2. Visual Tracking
  • 1. Color Tracking
  • 2. Facial Tracking
  • 3. QR Code Tracking
  • 4. YOLO Object Recognition and Tracking
  • 5. Mediapipe Palm Tracking
  • 6. Mediapipe Gesture Tracking
  • 7. Mediapipe Human Pose Tracking
  • 8. KCF Object Tracking
  • 9. AprilTag Machine Code Tracking
3. Visual Follow
  • 1. Color Follow
  • 2. Face Follow
  • 3. QR Code Follow
  • 4. Mediapipe Palm Follow
  • 5. Mediapipe Gesture Follow
  • 6. Mediapipe Human Pose Follow
  • 7. AprilTag Machine Code Follow
  • 8. Object Follow
12.AI Large Model Basic and Applications Course
1. AI Large Model Preparation
  • 1.AI Large Model Preparation
2. AI Large Model Basic Course
  • 1. AI Large Model Types and Principles
  • 2. RAG Retrieval Augmented and Training Samples
  • 3. Embodied Intelligent System Architecture
  • 4. Embodied Intelligence Core Source Code
3. AI Large Model Development
  • 1. Register Model Service Account
  • 2. Configure API KEY
  • 3. Dify Introduction
  • 4. Dify Basic Features
  • 5. RAG Knowledge Base Deployment
  • 6. AI Application Development Chatbot
  • 7. RAG Knowledge Base and Chatbot
  • 8. AI Agent Workflow
4. AI Large Model (Text Version)
  • 1. Semantic Understanding and Instruction Following
  • 2. Multimodal Visual Understanding
  • 3. Multimodal Visual Understanding + Basic Control
  • 4. Multimodal Visual Understanding + Object Following
  • 5. Multimodal Visual Understanding + Visual Line Following
  • 6. Multimodal Visual Understanding + SLAM Navigation
  • 7. Multimodal Visual Understanding + SLAM Navigation + Visual Line Following
  • 8. Multimodal Visual Understanding + SLAM Navigation + Object Following
  • 9. Intent Inference + Multimodal Visual Understanding + SLAM Navigation
13.Openclaw Basics Course
  • 1. Openclaw Introduction
  • 2. Openclaw Core Concepts
  • 3. Openclaw Api-Key Configuration
  • 4. Openclaw Switching Models
  • 5. Openclaw System Prompt
  • 6. Openclaw Common CLI Command
14. Openclaw Interaction Course
  • 1. Openclaw Webchat Interaction
  • 2. Openclaw Tui Interaction
  • 3. Openclaw Whatsapp Interaction
15.Openclaw Development Course
  • 1. Openclaw Robot Mcp Service Integration
  • 2. Robot CLI Command Tools
  • 3. Robot-Control Plugin Tools
  • 4. Openclaw Skills Development
  • 5. Openclaw Scheduled Tasks
  • 6. Openclaw Multi Agent System
  • 7. Openclaw Proactive Interaction
  • 8. Openclaw Vector Memory
16.Openclaw Embodied Intelligence Course
  • 1. OpenClaw Natural Interaction + Basic Control
  • 2. OpenClaw Natural Interaction + Slam Navigation
  • 3. OpenClaw Natural Interaction + Multimodal Visual Understand
  • 4. OpenClaw Natural Interaction + Multimodal Visual Understand + Slam Navigation + Visual Follow
  • 5. OpenClaw Natural Interaction + Multimodal Visual Understand + Slam Navigation + Visual Track
17.Multi-machine Course
  • 1. Multi Machine Handle Control
  • 2. Multi Machine Keyboard Control
  • 3. Multi Machine Navigation
18.MicroROS-V2 Control Board Development Environment
  • 1. Set Up the ESP32-IDF Development Environment
  • 2. ESP32-IDF Configuration Tool
  • 3. ESP Flash Tool Flashing Firmware
  • 4. Install ESP32 Microros Components
  • 5. Install And Start Microros Agent
19.MicroROS-V2 Control Board ESP32 Basic Course
  • 1. Led Light Up
  • 2. Button Function
  • 3. Drive Buzzer
  • 4. Oled
  • 5. Usb Host Function
  • 6. Serial Communication
  • 7. Battery Voltage Detection
  • 8. Drive Pwm Servo
  • 9. Drive Motors
  • 10. Read Motor Encoder Data
  • 11. Pid Motor Speed Control
  • 12. Robot Kinematics Analysis Theory
  • 13. Read Imu Data
  • 14. Read Lidar Data
  • 15. Flash Data Storage
  • 16. Custom Partition Table
  • 17. Bluetooth Communication
  • 18. Wifi Connection
  • 19. ESP32 Visual Recognition Module
20.MicroROS-V2 Control Board Micro_ros Basic Course
  • 1. Publish Topics
  • 2. Subscribe To Topics
  • 3. Multi Topic Subscription And Publishing
  • 4. Subscribe To Buzzer Topic
  • 5. Subscribe To Pwm Servo Topic
  • 6. Subscribe To Speed Control Topic
  • 7. Publish Odometry Topic
  • 8. Publish Imu Data Topic
  • 9. Publish Lidar Data Topic
21. Linux System Course
  • 1.Introduction to Linux system
  • 2.Ubuntu file system
  • 3.Ubuntu common commands
  • 4.Ubuntu common editors
  • 5.Ubuntu software operation commands
  • 6.Virtual machine installation
  • 7.SSH remote control
  • 8.VNC remote control
  • 9.Transfer files remotely
  • 10.Driver library and communication
  • 11.Static IP and hotspot mode
  • 12.Bind device ID
  • 13.Capacity expansion and resource allocation
  • 14.Update system software sources
  • 15.Set root user password
  • 16.sudo free password
  • 17.Connect to WiFi network
  • 18.View system version
  • 19.Customized service management
  • 20.Back up system image
22.Docker Course
  • 1.Docker overview and docker installation
  • 2.Common commands for docker image containers
  • 3.Docker images deeply understand and publish images
23.ROS 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
Download
  • Mapping_APP(iOS_Android)
  • Code
  • Software_Tools
  • VM_System_File
  • 3D_Model_File
  • ESP32_Firmware
  • Dify LLM Base
  • Instruction_Manual
  • VMware
Download ZIP

Welcome to MicroROS V2 Robot Car repository

3. Embodied Intelligent System Architecture

Multi-Agent Embodied Architecture

Multi-Agent Embodied Architecture1. Course Content2. multi_brains Introduction3. Multi-layer Reasoning Architecture3.1 Advantages of Layered Reasoning3.1.1 Decoupling of Task Decision and Action Conversion3.1.2 Improving the Success Rate of Long-Flow Tasks3.2 Decision-Layer AI3.3 Execution-Layer AI3.4 Box-Selection-Layer AI4. Task Cycle5. Historical Context6. Map Mapping7. Action Function Library

1. Course Content

Understand the multi_brains framework of the microros_v2 multi-agent embodied architecture.

2. multi_brains Introduction

  • multi_brains is an embodied intelligence framework developed by Yahboom that adapts to general-purpose AI large models. It avoids the situations where VLA models and end-to-end models require dedicated hardware, local computing power support, and long data collection and training times. Simply by connecting to general-purpose AI models from cloud model providers, edge robots can obtain powerful embodied intelligence effects.

  • multi_brains extends training samples through the RAG knowledge base, allowing robots to quickly adapt to different scenario tasks. It can be deployed on most small main control devices, placing the massive model inference in the cloud or on a local server.

  • The core idea of multi_brains is to decouple different stages of a task through multiple AI models at different layers. Currently, the package uses terminal text interaction as the default entry point, with terminal_client.py publishing user text and llm_agent_node.py handling Dify calls, action execution, and feedback loops. Its main improvements include:

    • A more stable text debugging entry point that does not depend on microphones, wake words, or ASR/TTS services, suitable for development, teaching, and reproducible experiments.
    • A more flexible decision mechanism with task routing added, allowing the AI agent to autonomously choose between multi-layer reasoning or simplified reasoning based on task difficulty, giving AI higher autonomy and better user experience.
    • An easy-to-understand visual architecture flow. multi_brains builds visual agents through Dify, allowing users to observe the data flow of the AI agent in real time during debugging, making it easier to intuitively understand the specific process of multi-layer reasoning.
    • A fully localized RAG knowledge base, so there is no need to worry about data sensitivity issues.
    • Seamless access to most AI models worldwide. Through Dify's model provider plugins, hundreds of AI models can be quickly and seamlessly integrated (if you have local model deployment needs, you can also connect local models).
    • Traceable history records. By querying Dify's backend access history, users can query all the steps and history of task instruction execution.
    • Terminal-trackable interaction process. terminal_client.py will display progress, final replies, and executed actions, making it easy to verify whether Dify's decisions and the robot's actions are consistent.
    • A complete testing toolbox that can quickly verify core functional modules.
    • Simpler getting-started steps, simplifying most operations and providing convenient commands.

3. Multi-layer Reasoning Architecture

  • The current workflow mainly consists of the decision layer and the execution layer, with a new box-selection layer added to the visual tracking tasks. Normal actions still run in the closed loop of "decision layer -> execution layer -> ROS action feedback"; when a task needs to track a target in the image, a visual branch of "box-selection layer -> execution layer starts tracking" is added.
  • The design of layered reasoning and dynamic feedback reasoning provides stronger system robustness compared to single-model architectures.

image-20251224110437939

3.1 Advantages of Layered Reasoning

3.1.1 Decoupling of Task Decision and Action Conversion

  • The decision-layer AI focuses on thinking, planning, and decomposing task instructions.
  • The execution-layer AI focuses on chat replies and converting task steps into JSON text.
  • The box-selection-layer AI is only responsible for outputting bbox coordinates based on images and target descriptions, and does not participate in task planning or action control.

3.1.2 Improving the Success Rate of Long-Flow Tasks

When using a single-model approach for reasoning, "natural language understanding + environment perception + process decomposition + bbox estimation + action function output" must all be done simultaneously, which can easily lead to modal interference (language ambiguity or overly long instructions causing understanding errors). Layered reasoning processes tasks in stages, allowing the decision layer to focus on task planning, the execution layer to focus on action execution, and the box-selection layer to focus on visual target localization.

3.2 Decision-Layer AI

  • The decision-layer large model is mainly responsible for task planning. It can understand complex human instructions and decompose them into specific task steps. For example, when receiving the instruction "Can you help me get a bottle of mineral water from the kitchen?", the large language model will decompose it into several tasks, as shown in the figure below.

image-20251224110448175

3.3 Execution-Layer AI

  • The execution-layer large model is mainly responsible for chat replies and converting task steps into JSON text. It continuously receives feedback (success/failure) on the results of robot action execution and images, and gives the next action instruction based on whether the action execution succeeded.
  • The execution-layer large model acts as a supervisor, continuously monitoring the progress of the robot's task steps, and thinking and judging which action to execute next based on the feedback from the robot's action results and environmental information, until the task is successfully completed or is ended early due to special circumstances.

3.4 Box-Selection-Layer AI

  • The box-selection-layer AI only works when visually tracking, locking onto, or following targets. It receives the current image, the user's original instruction, and the current step of the decision layer, and outputs whether the target is found, the target name, bbox coordinates, confidence, and a brief reason.
  • The box-selection layer output format is strict JSON, for example:
{"found":true,"target":"green block","bbox":[120,80,360,300],"confidence":0.86,"reason":"target clearly visible"}
  • After the execution layer reads the box-selection layer output, it will only output track_kcf(x1,y1,x2,y2) if found=true and the bbox is valid; if there is no box-selection result or the target is unclear, the execution layer will end the task and explain the reason to the user.

image-20251224110453011

4. Task Cycle

  • After the user inputs a natural language instruction in the terminal client, a task cycle begins. During this cycle, the user instruction, action result feedback, and image feedback will all continue reasoning in the same Dify conversation_id, which acts as the robot's temporary memory, allowing it to "remember" what has happened during this round of tasks.
  • When the execution layer outputs finishtask(), or the user inputs reset in the terminal to reset the conversation, the robot will reset the AI model's historical context, equivalent to the robot "losing its memory" and forgetting what happened before.
  • If a new instruction is input during execution, llm_agent_node will prioritize the new instruction and cancel the current navigation, line-following, or tracking actions as soon as possible.

image-20251224110459173

5. Historical Context

  • The robot's conversation history is stored in Dify's AI application variables, with a default maximum of 50 rounds of conversation memory.

image-20251224110509358

6. Map Mapping

  • The robot uses a grid map for navigation. If the robot needs to understand location areas in the real world, a mapping relationship must be established between the grid map and the real environment areas. This relationship is called map mapping.
  • Suppose we use the robot to perform SLAM mapping in a factory environment to generate a grid map. In the real factory, there are several artificially divided areas, as shown in the figure below.

image-20251224110526592

We establish a one-to-one correspondence between these real environment areas and letter symbols:

A: "Zone 1", B: "Zone 2", C: "Zone 3", D: "Zone 4", E: "Zone 5", F: "Zone 6", G: "Zone 7", H: "Zone 8", I: "Zone 9"

Then write the map coordinates for the letter symbols in the yaml file, for example:

xxxxxxxxxx
A: 
  name: 'Zone 1'
  position:
    x: 4.4034953117370605
    y: 0.4879316985607147
  orientation:
    x: 0.0
    y: 0.0
    z: 0.701498621044694
    w: 0.7126708108744126

When we ask the robot to go to an actual area, we only need to have the large model convert it into the corresponding letter symbol, so that the robot can understand the locations of areas in the real environment.

7. Action Function Library

  • The API functions in the robot's action function library are the bridge for the large model to control the robot to interact with the real world.
  • These API functions define the smallest actions that the physical robot can perform in the physical world.
  • The AI large model converts the actions to be performed into JSON text and sends it to the robot, which then parses the JSON text to execute the corresponding actions.

image-20251224110537553

All action functions and their corresponding functions are shown in the following table:

Car functions

Function NameParametersImplemented FunctionInvocation Instruction
move_forward(speed, duration)speed: linear velocity, duration: durationControl the car to move forwardMove forward x meters / move forward for a few seconds
move_backward(speed, duration)speed: linear velocity, duration: durationControl the car to move backwardMove backward
turn_left(angle, angular_speed)angle: rotation angle, angular_speed: angular velocityTurn left angle degrees / rotate counterclockwiseTurn left x degrees
turn_right(angle, angular_speed)angle: rotation angle, angular_speed: angular velocityTurn right angle degrees / rotate clockwiseTurn right x degrees
stop()-Stop the chassis, line following, and visual trackingStop / park
navigation(x)x: the symbol corresponding to the target point in map mappingControl the robot to navigate to the target pointNavigate to a location
navigation(zero)zero: the recorded coordinate pointNavigate back to the previously recorded coordinate pointReturn to origin, the starting position
get_current_pose()-Record the current coordinates in the global map into the zero parameterRemember the current position
seewhat()-Take a photo of the robot's current perspective and upload it to the execution-layer large modelObserve the environment
observe_surroundings()-Control the pan-tilt to take photos in multiple directions and feed multiple images back to the execution-layer large modelLook around
finishtask()-Automatically called after the robot completes a task, used to stop feeding status back to the execution-layer model-
servo_nod()-Pan-tilt servo nodsNod your head
servo_shake()-Pan-tilt servo shakesShake your head
servo1_move(x)x represents the angle to rotateControl servo 1 to rotate back and forth by the set angleRotate servo 1 to x degrees
servo2_move(x)x represents the angle to rotateControl servo 2 to rotate back and forth by the set angleRotate servo 2 to x degrees
servo_init()-Initialize the pan-tilt positionServo initial position, return to initial position, reset pan-tilt position
follow_line(color)Automatically follow the specified color, color values: 'red', 'green', 'blue', 'yellow'Color line-following functionStart following the green line
track_kcf(x1,y1,x2,y2)Pass the top-left and bottom-right coordinates of the objectCall the external KCF tracking service and control the pan-tilt and chassis to followStart tracking the green block
RAG Retrieval Augmented and Training Samples
Embodied Intelligence Core Source Code

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