yahboom
HomeTutorialsProduct
Solution
Blog
Online Store
About Us
EN/中文
Store
ROSMASTER A1 PRO📖
00.Configuration and Operation Guide
  • 0. Unboxing and Review
  • 1.Assembly Videos
  • 2.User Manual
  • 3.Enter Docker (For Raspberry Pi)
  • 4.A1Pro Front Wheel Servo Calibration
  • 5.USB Camera Calibration
  • 6.Depth Camera Calibration
  • 7.FAQ
  • 8.Desktop Configuration Center and Remote Control Guide
01.Chassis Control Course
  • 1.Robot Information Publishing
  • 2.Robot Handle Control
  • 3.Robot Keyboard Control
  • 4.Linear Velocity Calibration
  • 5.Angular Velocity Calibration
  • 6.Robot URDF Model
  • 7.Robot EKF State Estimation
02.Lidar Course
  • 1.Lidar Introduction and Use
  • 2.Lidar Obstacle Avoidance
  • 3.Lidar Following
  • 4.Lidar Patrol
  • 5.GMapping-SLAM Mapping
  • 6.Cartographer-SLAM Mapping
  • 7.Slam-Toolbox Mapping
  • 8.Lifelong Mode Mapping
  • 9.Navigation2 Single Point Navigation
  • 10.Navigation2 Multi Point Navigation
  • 11.Cartographer Relocalization Navigation
  • 12.Slam-Toolbox Localization Navigation
  • 13.Synchronous Mapping And Navigation
  • 14.Aruco Visual Relocalization Navigation
  • 15.Mobile App Mapping And Navigation
  • 16.AprilTag Transport
  • 17.Color Block Transport
03.USB Camera-Depth Camera Course
  • 1.USB Camera Introduction
  • 2.USB Camera Intrinsic Calibration
  • 3.Nuwa-HP60C Camera Introduction (Depth Camera Only)
  • 4.Depth Camera Distance Measurement (Depth Camera Only)
  • 5.Depth Pseudo Color Image (Depth Camera Only)
  • 6.Block Volume Calculation (Depth Camera Only)
  • 7.Edge Detection (Depth Camera Only)
  • 8.RTAB-Map SLAM Mapping (Depth Camera Only)
  • 9.RTAB-Map Navigation (Depth Camera Only)
04.Robotic Arm and 3D Space Gripping Course
  • 0.Robotic Arm Basic Usage
  • 1.Robotic Arm Kinematics
  • 2.Robotic Arm Chassis Coordination Control
  • 3.AprilTag ID Sorting
  • 4.AprilTag Height Anomaly Sorting
  • 5.AprilTag Tracking and Grasping
  • 6.Color Block Sorting
  • 7.Color Block Height Anomaly Sorting
  • 8.Color Block Tracking and Grasping
  • 9.Wood Block Shape Sorting
  • 10.KCF Tracking and Grasping Objects
  • 11.Mediapipe Gesture ID Sorting AprilTag
  • 12.Mediapipe Gesture Height Sorting AprilTag
  • 13.Desktop Tracking and Grasping AprilTag
  • 14.3D Spatial Tracking AprilTag
  • 15.Line Following Obstacle Clearing
  • 16.Transformer Model Tracking Algorithm
05.Road Network Planning and Navigation
  • 1.Introduction To Road Network Planning
  • 2.Road Network Annotation
  • 3.Planning And Navigation Between Waypoints
  • 4.Road Network Navigation In Any Pose
  • 5.Path Re-planning
06.OpenClaw Basic Course
  • 1.Introduction to OpenClaw
  • 2.OpenClaw Core Concepts
  • 3.OpenClaw API-KEY Configuration
  • 4.OpenClaw Switch Models
  • 5.OpenClaw System Prompt Words
  • 6.OpenClaw Common CLI Commands
07.OpenClaw Interaction Method
  • 1.OpenClaw Webchat Interaction
  • 2.OpenClaw Tui Interaction
  • 3.OpenClaw Voice Dialogue Interaction
  • 4.OpenClaw WhatsApp Interaction
08.OpenClaw Development
  • 1.OpenClaw Connecting to Robot MCP Service
  • 2.Robot CLI Command Tool
  • 3.robot-control plugin tool
  • 4.reply-bridge plugin tool
  • 5.OpenClaw Multimodal Vision
  • 6.OpenClaw Chassis Control
  • 7.OpenClaw Robotic Arm Control
  • 8.OpenClaw Skills Development
  • 9.OpenClaw Scheduled Tasks
  • 10.OpenClaw Multi-Agent Intelligent Agent
  • 11.OpenClaw Active Interaction
  • 12.OpenClaw Vector Memory
09.OpenClaw Embodied Intelligent Application
  • 1.OpenClaw Target Tracking
  • 2.OpenClaw Arm Tracking And Grasping
  • 3.OpenClaw Arm Fixed-point Placement
  • 4.OpenClaw Waste Sorting
  • 5.OpenClaw SLAM Mapping And Navigation
  • 6.OpenClaw Navigation Transport
  • 7.OpenClaw AprilTag Grasping
  • 8.OpenClaw Color Line Patrol
  • 9.OpenClaw Visual Distance Measurement
10.OpenClaw Scenario Sandbox
  • 1.Map Description and Prop Placement
  • 2.Build Sand Table Map
  • 3.Visual Relocation Markers
  • 4.Map Mapping Markers
  • 5.OpenClaw Scenario Sandbox Comprehensive Case
11.AI Model Basics
  • 1.AI Large Model Types and Principles
  • 2.RAG Retrieval Enhancement and Model Training Samples
  • 3.Embodied Intelligent Robot System Architecture
  • 4.Embodied Intelligent Functions Core Source Code
12.AI Model Development
  • 1.Register a Model Service Provider Aaccount
  • 2.Configuring API-KEY
  • 3.Introduction to Dify
  • 4.Basic Dify Features
  • 5.AI Large Model Development - chatbot
  • 6.Deploy the RAG Knowledge Base
  • 7.RAG Knowledge Base + chatbot
  • 8.AI Agent Workflow
  • 9.Custom Wake-up Response
13.AI Model - Text Version
  • 1.Semantic Understand and Command Follow
  • 2.Multimodal Visual Understand
  • 3.Multimodal Visual Understand + Robotic Arm Gripping
  • 4.Multimodal Visual Understand+SLAM Navigation
  • 5.Robotic Arm Gripping+Multimodal Visual Understand+SLAM Navigation
  • 6.Intention Estimation
14.AI Model - Voice Version
  • 1.Semantic Understand and Command Follow
  • 2.Multimodal Visual Understand
  • 3. Multimodal Large Model+Robotic Arm Gripping
  • 4.Multimodal Visual Understand+SLAM Navigation
  • 5.Robotic Arm Gripping+Multimodal Visual Understand+SLAM Navigation
  • 6.Intention Estimation
15.Mediapipe Visual Course
  • 1.Hand Detection
  • 2.Posture Detection
  • 3.Overall Detection
  • 4.Facial Landmark Detection
  • 5.Face Detection
  • 6.Face Special Effects
  • 7.3D Object Recognition
  • 8.Brush
  • 9.Finger Control
  • 10.Palm Target Positioning
  • 11.Fingertip Trajectory Recognition
  • 12.Fingertip Gesture Control Cobotic Arm
  • 13.Gesture Grabbing and Releasing Objects
  • 14.Finger Control Robotic Arm
  • 15.Medipipe Gesture Control Robotic arm Cction Group
16.MoveIt2 Simulation Course
  • 1.MovelT2 Configuration
  • 2.MovelT2 Simulation-Reality Linkage
  • 3.Random Movement
  • 4.Forward Kinematics Design
  • 5.Inverse Kinematics Design
  • 6.Cartesian Path
  • 7.Scene Design
  • 8.Trajectory Planning
  • 9.Collision Detection
  • 10.3D Perception Obstacle‑Avoidance
17.Multi-vehicle Course
  • 1.Multi-vehicle Control
  • 2.Multi-vehicle Navigation
  • 3.Multi-vehicle Formation
18.YOLO26 Development
  • 1.CLI Use
  • 2.Object Detection
  • 3.Instance Segmentation
  • 4.Pose Estimation
  • 5.Image Classification
  • 6.Oriented Object Detection
  • 7.YOLOv26 + DeepSORT Tracking
  • 8.Monocular Depth Estimation
19.Control Board STM32 Driver Course
  • 0.Notes (Must Read)
  • 1.About Expansion Board
  • 2.STM32 Development Environment
  • 3.Button Control
  • 4.FreeRTOS Application
  • 5.Serial Communication
  • 6.SBUS Model Aircraft Remote Control
  • 7.CAN Bus Communication
  • 8.RGB Colorful Light Bar
  • 9.Timer Interrupt to Control PWM Servo
  • 10.Control Serial Port Servos
  • 11.Nine-axis Attitude Sensor to Obtain Data
  • 12.Control Motor
  • 13.Timer Captures the Encoder Data
  • 14.1 Kinematic Analysis of Mecanum Wheel
  • 14.2 Kinematic Analysis of Ackerman
  • 14.3 Kinematic Analysis of 4WD
  • 15.PID Control Robot Movement
20.Docker Course
  • 1.Docker Introduction and Installation
  • 2.Docker Basic Commands
  • 3.Docker Submission and Multi-Terminal Access
  • 4. Docker Startup Script
  • 5.Docker-Vscode Environment Construction
21.Image Processing Basics Course
  • 1. Introduction to Open Source CV
  • 2. Image reading and display
  • 3. Image writing
  • 4. Image quality
  • 5. Pixel Operation
  • 6. Image zoom
  • 7. Image cutting
  • 8. Image translation
  • 9. Image Mirroring
  • 10. Affine Transformation
  • 11. Image Rotation
  • 12. Perspective Transformation
  • 13. Grayscale processing
  • 14. Image Binarization
  • 15. Edge Detection
  • 16. Line drawing
  • 17. Rectangle and circle drawing
  • 18. Drawing text and pictures
22.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
23.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
24.Main Control Course
Jetson Orin Nano_NX
  • 1.Jetson Orin board introduction
  • 2.Restore the factory image system
  • 3.Backup SSD system
  • 4.SSD expansion
  • 5.Network configuration
  • 6.SSH remote login
  • 7.VNC remote control
  • 8.Remote file transfer
  • 9.Jtop tool
  • 10.Exchange space expansion
Raspberry Pi
  • 1. Introduction to Raspberry PI 5
  • 2. Raspberry PI system installation and backup
  • 3. Powering the Raspberry PI 5
  • 4. Startup of Raspberry PI 5
  • 5. Update and upgrade operating system
  • 6. Introduction to raspi-config tool
  • 7. config.txt file description
  • 8. Network Configuration
  • 9. remote access
  • 10. Transfer files remotely
  • 11. Set display resolution and rotation
  • 12. Set screen to sleep
  • 13. Play audio and video
  • 14. Using USB camera
  • 15. Using MIPI camera
  • 16. Get real-time temperature of Raspberry Pi
RDKX5
  • 1.Introduction to RDK X5 board
  • 2.Write system file
  • 3.Hardware interface description
  • 4.Install case and other accessories
  • 5.Network configuration
  • 6.Remote login
  • 7.Update system
  • 8.srpi-config user guide
  • 9.config. txt configuration file
  • 10.Self-startup setting
  • 11.RDK exclusive command usage
  • 12.Linux command usage
  • 13.GPIO readwrite operation
  • 14.Image classification algorithm
  • 15.Use USB camera
  • 16.Use MIPI camera
  • 17.Binocular camera depth algorithm
  • 18. Controlling RGB Cooling Fans
Download
  • SystemFile
  • Code
  • 3D_Model_File
  • Software_Tools
  • Hardware_Info
  • Introduction_Manual
  • Script_File
  • Dify AI Agent
Download ZIP

Welcome to ROSMASTER A1 PRO repository

3. Multimodal Large Model+Robotic Arm Gripping

3. Multimodal Visual Understanding + Robotic Arm Gripping (Voice Version)

1. Course Content

  1. Learn how the multimodal large model integrates speech recognition, 2D visual perception, spatial geometric reasoning, and 3D inverse-kinematics control of the robotic arm;

  2. Through voice dialogue interaction, experience the large model autonomously recognizing target objects, computing their relative spatial positions, and controlling a 6-DOF robotic arm to perform precise spatial grasping (pick);

  3. Learn how the large model reasons about the relative pose between targets and completes relative placement (place);

  4. Learn AprilTag-based 3D elevation perception filtering and automated sorting removal (apriltag_remove_higher);

  5. Deeply analyze the underlying spatial coordinate solving logic of the embodied large model's decision layer and the action service side.

  6. This case uses the matching 3 * 3 * 3 blocks and 3 * 3 * 3 machine-code wooden blocks


2. Preparation

2.1 Description

This lesson is applicable to controllers such as Raspberry Pi 5, Jetson Orin NANO, and D-Robotics RDK X5:

  • Raspberry Pi 5: You need to first enter the Docker container before executing ROS 2 related commands. Refer to [3.Enter Docker (For Raspberry Pi)] in [Robot Configuration and Operation Guide];

  • Orin / RDK X5: Directly run the commands in the vehicle terminal; there is no need to enter Docker.

2.2 Start the Dify Local Large Model Environment

Enter the following command in the host terminal to start the Dify service:

sh ~/bringup_dify.sh

The terminal prints the following information, indicating that the Dify service is connected successfully:

image-20260905120908013


3. Running the Cases

3.1 Start the Embodied Intelligence Master Control Service (Voice Mode)

Open a terminal on the vehicle and enter the following command to start the large model embodied control hub (microphone voice interaction mode is enabled by default):

xxxxxxxxxx
ros2 launch multi_brains llm_agent_control.launch.py

After the system initialization is complete, the action service and multimodal perception nodes are ready:

image-20260905164449987

3.2 Voice Interaction Specification

Voice interaction does not require opening an additional text interaction terminal; simply talk through the microphone:

  1. First clearly call the wake word: "Hi,yahboom" (or "yahboom, yahboom");

  2. Listen for the car's voice response: "I'm here, please give me instructions" or various personalized wake-up voices;

  3. After the response ends, you can speak the test instruction to the robot.

image-20260905164238188


3.3 Classic Test Cases

Recommended props for testing:

  • Basic block test: 30 × 30 × 30 mm building blocks (solid color blocks such as red, green, yellow, and blue);

  • Elevation and tag test: 30 × 30 × 30 mm building blocks affixed with AprilTag codes (they can be stacked in multiple layers to form different heights).

Case 1: Target Object Recognition and Precise Gripping

  1. After waking up yahboom, speak the test instruction to the car:

    xxxxxxxxxx
    Find the yellow block in front of you and pick it up.
  2. The terminal prints the steps planned by the large model and the bounding box parameters. The save path of the photo with the boxed recognition result is: ~/yahboomcar_ros2_ws/yahboomcar_ws/cache/bbox_result.png

Execution Process and Phenomena:

  1. After receiving the voice instruction, the large model first issues the seewhat instruction to obtain the current color image from the camera;

  2. The multimodal model precisely locates the pixel bounding box coordinates [x1, y1, x2, y2] of the yellow block and assembles the pick action;

  3. The robot executes the underlying spatial inverse solution, automatically adjusts the robotic arm angle and opens the gripper, and swoops down to grasp the target block;

  4. After a successful grasp, the robotic arm lifts and maintains the current holding pose, and a voice announcement reports that the grasp is complete:

image-20260905121657514

Note
Robotic arm reset methods:

  • Method 1: After waking up yahboom, say: "Put down the block that was just picked up", and the robotic arm will put the block down at a safe position;

  • Method 2: After waking up yahboom, say: "Go take a rest" (or "End the current task"), and the current task cycle ends.


Case 2: Relative Spatial Relationship Placement Between Targets

  1. Place a red block and a yellow block on the tabletop;

  2. After waking up yahboom, speak the test instruction to the car:

    xxxxxxxxxx
    Put the red block in front of you to the right of the yellow block.
  3. The terminal prints the 4-stage task plan parsed by the large model:

    image-20260905122214338

Execution Process and Phenomena:

  1. The multimodal large model simultaneously detects the pixel coordinates of the "red block" and the "yellow block" in the current field of view;

  2. The robot first calls pick to grasp the red block in front of it:

    image-20260905122241604

    The detection and localization image is saved at: ~/yahboomcar_ros2_ws/yahboomcar_ws/cache/bbox_result.png

    image-20260905122258927

  3. Next, based on the coordinates of the yellow block and the geometric topological relationship of "on the right", the large model calls the place instruction; the robotic arm rotates to the right side of the base, safely releases the gripper, completes precise positioning, and gives a voice prompt that the task is complete:

    image-20260905122329540

    The spatial drop-point calculation diagram is saved at: ~/yahboomcar_ros2_ws/yahboomcar_ws/cache/place_point_result.png

    image-20260905122401052

  4. After the task is completed, wake up yahboom and say "Go take a rest" to reset the robotic arm and start a new round of interaction:


Case 3: 3D Elevation Perception and Automated Sorting Removal

  1. Place several wooden blocks with AprilTag tags in the field of view, and raise one of the blocks to more than 5 centimeters;

  2. After waking up yahboom, speak the test instruction to the car:

    xxxxxxxxxx
    Please help me remove the machine code in front of you that is higher than 5 centimeters.
  3. The terminal prints the apriltag_remove_higher action parsed by the large model:

    image-20260905122538548

Execution Process and Phenomena:

  1. The robot calls the camera to perceive the pose and spatial height of the AprilTag tags, and the window marks the 3D relative height of each tag in real time;

  2. When a tag with a height exceeding 5 centimeters (0.05 m) is detected, the robotic arm automatically locates its spatial center and reaches down to grasp it:

    image-20260905124441988

  3. To put down the grasped machine code, wake up yahboom and say to the car "Put down the machine code in your hand":


4. Core Source Code Analysis

Source code package path: ~/yahboomcar_ros2_ws/yahboomcar_ws/src/multi_brains

The system provides two independent action execution service sides for different hardware configurations, and adaptively switches through the environment variable CAMERA_TYPE (nuwa or usb):

  • 3D depth camera scheme (default): Provided by action_service_nuwa.py, using the 3D point cloud and depth map to achieve physical-space back-projection inverse-solution grasping;

  • USB monocular camera scheme: Provided by action_service_usb.py, combining visual servoing (Visual Servoing) and KCF tracking for closed-loop approach grasping.

4.1 Scheme One: 3D Depth Camera Spatial Inverse-Solution Grasping (action_service_nuwa.py)

In the depth camera scheme, the image captured by the camera is overlaid with a pixel grid, and the multimodal large model outputs a 2D bounding box [x1, y1, x2, y2]:

In the ActionController.pick() method, the process of solving from 2D pixels to the real physical coordinates of the robotic arm is completed:

xxxxxxxxxx
def pick(self, x1, y1, x2, y2):
    # 1. Normalize the pixel bounding box to prevent coordinates from going out of bounds
    x1, y1, x2, y2 = self.normalize_bbox(x1, y1, x2, y2, 640, 480)
    
    # 2. Extract the valid foreground distance Z of the target bounding box in the depth map
    depth = self.get_dist(int((x1 + x2) / 2.0), int((y1 + y2) / 2.0))
    
    # 3. Combine with camera intrinsics to back-project into a 3D point in the camera coordinate frame (cam_x, cam_y, cam_z)
    point_cam = self.pixel_to_3d_ray(u_c, v_c, depth)
    
    # 4. Use TF transforms to convert the camera point into the robotic arm base coordinate frame (arm_base_link)
    point_arm = self.tf_buffer.transform(point_cam, "arm_base_link")
    
    # 5. Call the 6-DOF robotic arm inverse kinematics (IK) to solve the target servo angle for each joint
    target_angles = self.solve_ik(point_arm.point.x, point_arm.point.y, point_arm.point.z)
    
    # 6. Safely drive the servos downward and close the gripper
    self.pubSix_Arm(target_angles, runtime=2000)
    self.pubSingle_Arm(joint_id=6, joint_angle=30, runtime=1000)  # Close the gripper

Spatial relative placement (place)

When the large model understands "put it to the right/left of a certain object", the decision hub first generates the target placement point (place_x, place_y, place_z) based on the reference target's BBox and relative orientation, and ActionController.place() executes:

  1. The robotic arm raises the held object to a safe transfer height;

  2. The base rotates to the lateral unloading point in the target direction;

  3. It slowly descends and opens the gripper to release the object;

  4. The robotic arm withdraws to the standby pose to ensure it does not scrape or collide with the placed item.


4.2 Scheme Two: USB Monocular Camera Visual Servoing Grasping (action_service_usb.py)

A monocular USB camera cannot directly read the 3D physical depth of a pixel. Therefore, action_service_usb.py adopts a closed-loop guided grasping scheme based on visual servoing (Visual Servoing):

​x
def grasp_obj(self, x1, y1, x2, y2) -> bool | None:
    """ Start tracking and grasp the target based on the 640x480 BBox given by the large model """
    normalized = self.normalize_bbox(x1, y1, x2, y2)
    if normalized is None:
        self.get_logger().error("[BBOX] 归一化边界框失败")
        return False
    x1, y1, x2, y2 = normalized
    self.save_bbox_result(normalized, "grasp_obj")

    # Start the visual detection and servo tracking child node
    self.grasp_obj_future = Future()
    command = [
        "ros2", "run", "dofbot_pro_usb_voice", "KCF_detect",
        "--ros-args",
        "-p", f"x1:={x1}",
        "-p", f"y1:={y1}",
        "-p", f"x2:={x2}",
        "-p", f"y2:={y2}",
    ]
    return self._run_usb_grasp_action(
        "grasp_obj",
        self.grasp_obj_future,
        command,
        cancel_after=False,
    )
  • Closed-loop servo flow:

    1. After receiving the object pixel box returned by the large model, the system starts the KCF_detect visual tracking node to lock onto the target;

    2. Under the closed-loop control of visual feedback, the robotic arm and the car chassis dynamically fine-tune their pose and distance, keeping the target object centered and approaching the optimal grasping working range of the robotic arm;

    3. After ranging and alignment converge, the grasping action sequence is triggered to descend and close the gripper, completing highly robust grasping under a monocular camera.


4.3 Tag Elevation Perception and Sorting (apriltag_remove_higher)

Both schemes support the tag recognition and sorting action apriltag_remove_higher(target_high):

  • Traverse all AprilTag machine-code tags detected in the field of view;

  • Extract the vertical height of each tag relative to the reference plane;

  • When a tag height greater than the set threshold (such as 0.05m) is detected, it automatically triggers spatial alignment grasping and moves it to the side, realizing intelligent visual elevation sorting.

Multimodal Visual Understand
Multimodal Visual Understand+SLAM Navigation

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