yahboom
HomeLearn
Solution
Blog
Online Store
About Us
EN/中文
Raspbot V2📖
1.About Raspbot V2
  • 1. First trial
  • 2. Expansion board interface distribution
  • 3. About battery and charging
  • 4. Install servo PTZ
  • 5.Servo Gimbal Installation
  • 6. Important Notes (Read Before Starting)
2.Assembly
  • Installation Video
3.Car basic course
  • 0. Preparation before development
  • 1.Buzzer control
  • 2.Key reading
  • 3.RGB control
  • 4.Servo control (PTZ control)
  • 5.Motor control
  • 6.Printing ultrasonic data
  • 7.Tracking module status printing
  • 8.IR control key value printing
4.Car motion control course
  • 0.Mecanum wheel motion principle
  • 1.Car vertical movement
  • 2.Car diagonal movement
  • 3.Car sideways movement
  • 4.Car rotation movement
  • 5.Car patrol
5.Car advanced courses
  • 1.Infrared patrol car
  • 2.Ultrasonic avoid
  • 3.Ultrasonic follow
  • 4.Infrared tracking+ ultrasonic avoid
  • 5.Restricting
  • 6.Infrared remote control car
6.OpenCV courses
A. Getting Started with OpenCV
  • 1. Introduction to OpenCV
  • 2.OpenCV image reading and display
  • 3. OpenCV image writing
  • 4. OpenCV Image Quality
  • 5.OpenCV pixel operations
B. OpenCV geometric transformation
  • 1. Image scaling
  • 2. Image cutting
  • 3. Image translation
  • 4. Image mirroring
  • 5. Affine Transformation
  • 6. Image Rotation
  • 7. Perspective Transformation
C. OpenCV image processing and text line drawing
  • 1. Grayscale processing
  • 2. Image Binarization
  • 3. Edge Detection
  • 4. Line drawing
  • 5. Rectangle and circle drawing
  • 6. Text and image drawing
D. Image beautification
  • 1. Color Image Histogram
  • 2. Histogram Equalization
  • 3. Image repair
  • 4. Brightness enhancement
  • 5. Smooth and whiten
  • 6. Gaussian mean filtering
  • 7. Median Filter
E. Machine Learning
  • 1. KNN
  • 2. SVM
7.AI vision recognition course
  • 1.Camera driver tutorial
  • 2.Color recognition
  • 3.HSV value test
  • 4.Object Recognition
  • 5.QR code recognition
  • 6.Face recognition
  • 7.License Plate Recognition
  • 8. Human Pose Estimation
  • 9. Target detection
  • 10.yolov5-lite
  • 11. Gesture Recognition
  • 12. Face Detection
  • 13. Face effects
  • 14. 3D Object Recognition
  • 15. Paintbrush
  • 16. Finger control
8.AI vision interaction module
  • 1. Color tracking
  • 2. Color follows
  • 3. QR code recognition to control movement
  • 4. Face tracking
  • 5. Face following
  • 6. Visual tracking
  • 7. Garbage identification
  • 8. Track map Autopilot(purchased separately)
  • 9. Gesture following
9.Voice control basic course(For Superior Kit)new
  • 1.Voice control car movement
  • 2.Voice control RGB light
  • 3.Voice control color recognition
  • 4.Voice control autonomous driving
  • 5.Voice control car tracking
10.AI large model knowledge(For Superior Kit)new
  • 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
  • 5.Configure AI large model(Required)
11.AI Large Model Development(For Superior Kit & Reference)new
  • 1.Register a model service provider account
  • 2. Configuring API-KEY(Optional)
  • 3. Introduction to Dify
  • 4. Basic Dify Features
  • 5. Deploy the RAG knowledge base
  • 6. AI Large Model Development - chatbot
  • 7. RAG knowledge base + chatbot
  • 8. AI agent workflow
  • 9. Custom wake-up response
  • 10. Core module testing tools
12.AI large basic course(For Superior Kit)new
  • 1.Free conversation
  • 2.Text-to-picture
  • 3.Scene description
  • 4.Video description
  • 5.Intelligent action choreography
  • 6.Dual-model agent application
13.ROS2-Robot chassis control course
  • 1. Robot information release
  • 2. Robot keyboard control
  • 3. URDF Model
14.ROS2-OpenCV course
  • 1.ROS+Opencv application
  • 2. AR Vision
  • 3. Mediapipe fun gameplay
  • 4. Gesture control car movement
  • 5. Gesture control car actions
  • 6. Palm control car movement
  • 7. Palm control servo PTZ
  • 8. Visual tracking
  • 9. AprilTag code recognition
  • 10. AprilTag tag code tracking
  • 11. AprilTag tag code follow
15.Development environment course
  • 1. Introduction to Raspberry Pi 5
  • 2. Image writing and backup
  • 3. Start the Raspberry Pi 5
  • 4. Remote Access
  • 5. Remote file transfer
  • 6. Common Linux commands and use of vim editor
  • 7. Install Raspbot V2 driver library
  • 8. Jupyter Lab environment construction
  • 9. Jupyter Lab plugin installation
  • 10. Basic use of Jupyter Widgets
16.Raspberry Pi basic settings
  • 1.Update and upgrade the operating system
  • 2. Introduction to raspi-config tool
  • 3. config.txt file description
  • 4. Network Configuration
  • 5. Set display resolution and rotation
  • 6. Set screen sleep
  • 7. Get real-time temperature of RPi
  • 8. Play audio and video
  • 9. Use USB Camera
  • 10.Use MIPI camera
17.Docker course
  • 1. Overview and installation
  • 2. Common commands
  • 3. Understand and publish images
  • 4. Docker data processing
  • 5. Enter docker container
18.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
Download
  • APP(iOS/Android)
  • Code
  • System_File
  • Instruction Manual
  • Hardware_Info
  • 3D_Model_File
  • ROS2_Basic_VM
Download ZIP

Welcome to Raspbot V2 repository

当製品の日本語版マニュアル資料は、こちらからご取得ください。

3. URDF Model

URDF Model

1. Program function description

Start the car, run the program in the terminal, and the URDF model will be displayed in rviz.

2. Enter the car docker

Open the terminal and enter the following command to enter the docker,

./docker_ros2.sh

The following interface appears, which means that you have successfully entered Docker. Now you can control the car through commands.

image-20240814152903441

4. Program startup

Load URDF and generate a simulation controller and start rviz, input in the terminal,

xxxxxxxxxx
ros2 launch yahboomcar_description display_launch.py

image-20240815161831838

Then, use the mouse to adjust the viewing angle and slide the simulated controller just created, and you can see the tires/camera of the car changing.

image-20240814194923976

l1_Joint: Control the left front wheel

l2_Joint: Control the left rear wheel

r1_Joint: Control the right front wheel

r2_Joint: Control the right rear wheel

arm1_Joint: Control gimbal 1

arm2_Joint: Control gimbal 2

Randomize: Randomly publish values to each joint

Center: All joints return to the center

5. Code analysis

Code location,

xxxxxxxxxx
/root/yahboomcar_ws/src/yahboomcar_description/launch

display_launch.py

​x
from ament_index_python.packages import get_package_share_path

from launch import LaunchDescription
from launch.actions import DeclareLaunchArgument
from launch.substitutions import Command, LaunchConfiguration

from launch_ros.actions import Node
from launch_ros.parameter_descriptions import ParameterValue

def generate_launch_description():
    urdf_tutorial_path = get_package_share_path('yahboomcar_description')
    default_model_path = urdf_tutorial_path / 'urdf/Raspbot-V2.urdf'
    default_rviz_config_path = urdf_tutorial_path / 'rviz/raspbotv2.rviz'

    model_arg = DeclareLaunchArgument(name='model', default_value=str(default_model_path),
                                      description='Absolute path to robot urdf file')
    robot_description = ParameterValue(Command(['xacro ', LaunchConfiguration('model')]),
                                       value_type=str)
    rviz_arg = DeclareLaunchArgument(name='rvizconfig', default_value=str(default_rviz_config_path),
                                     description='Absolute path to rviz config file')
    
    robot_state_publisher_node = Node(
        package='robot_state_publisher',
        executable='robot_state_publisher',
        parameters=[{'robot_description': robot_description}]
    )

    joint_state_publisher_gui_node = Node(
        package='joint_state_publisher_gui',
        executable='joint_state_publisher_gui'
    )

    
    tf_base_footprint_to_base_link = Node(
        package='tf2_ros',
        executable='static_transform_publisher',
        arguments=['0', '0', '0.05', '0.0', '0.0', '0.0', 'base_footprint', 'base_link'],
    )
    
    rviz_node = Node(
        package='rviz2',
        executable='rviz2',
        name='rviz2',
        output='screen',
        arguments=['-d', LaunchConfiguration('rvizconfig')],
    )
    return LaunchDescription([
        model_arg,
        joint_state_publisher_gui_node,
        robot_state_publisher_node,
        tf_base_footprint_to_base_link,
        rviz_arg,
        rviz_node
    ])

  • model_arg: load model parameters, the loaded model is Raspbot-V2.urdf, the location is /root/yahboomcar_ws/src/yahboomcar_description/urdf/Raspbot-V2.urdf
  • joint_state_publisher_gui_node: publish sensor_msgs/JointState message
  • robot_state_publisher_node: robot state publishing
  • tf_base_footprint_to_base_link: publish static transformation from base_footprint to base_link

6. URDF model

URDF, the full name is Unified Robot Description Format, translated into Chinese as Unified Robot Description Format, is a robot model file described in XML format, similar to D-H parameters.

xxxxxxxxxx
<?xml version="1.0" encoding="utf-8"?>

The first line is a required field for XML and describes the version information of XML.

xxxxxxxxxx
<robot
  name="RaspbotV2">
</robot>

The second line describes the current robot name; all information about the current robot is included in the [robot] tag.

6.1. Components

  • Link, connecting rod, can be imagined as a human arm
  • Joint, joint, can be imagined as a human elbow joint

Relationship between link and joint: two links are connected by joints, imagine that the arm has a forearm (link) and an upper arm (link) connected by an elbow joint (joint).

6.1.1. Link

1), Introduction

In the URDF descriptive language, link is used to describe physical properties,

  • Describe visual display, label.
  • Describe collision properties, label.
  • Describe physical inertia, label is not commonly used.

Links can also describe the size of the connecting rod (size)\color (color)\shape (shape)\inertial matrix (inertial matrix)\collision parameters (collision properties), etc. Each Link will become a coordinate system.

2), Sample code

xxxxxxxxxx
<link
    name="base_link">
    <inertial>
      <origin
        xyz="0.013209067968915 0.000305835286849597 0.034565647785585"
        rpy="0 0 0" />
      <mass
        value="0.315736522899678" />
      <inertia
        ixx="0.000126930677782624"
        ixy="-1.93570093947537E-07"
        ixz="-3.2159760519397E-08"
        iyy="0.000217028578454845"
        iyz="3.16386759318505E-07"
        izz="0.000309637617387382" />
    </inertial>
    <visual>
      <origin
        xyz="0 0 0"
        rpy="0 0 0" />
      <geometry>
        <mesh
          filename="package://yahboomcar_description/meshes/base_link.STL" />
      </geometry>
      <material
        name="">
        <color
          rgba="0.203921568627451 0.203921568627451 0.203921568627451 1" />
      </material>
    </visual>
    <collision>
      <origin
        xyz="0 0 0"
        rpy="0 0 0" />
      <geometry>
        <mesh
          filename="package://yahboomcar_description/meshes/base_link.STL" />
      </geometry>
    </collision>
  </link>
  1. Tag introduction
  • origin: describes the position information; the xyz attribute describes the coordinate position in the environment, and the rpy attribute describes its own posture.
  • mess: describes the quality of the link.
  • inertia: inertial reference system. Due to the symmetry of the rotational inertia matrix, only 6 upper triangular elements ixx, ixy, ixz, iyy, iyz, izz are required as attributes.
  • geometry: the tag describes the shape; the main function of the mesh attribute is to load the texture file, and the filename attribute is the file address of the texture path
  • material: the tag describes the material; the name attribute is a required item, which can be empty and can be repeated. The rgba attribute in the [color] tag is used to describe red, green, blue, and transparency, separated by spaces.
6.1.2, joints
  1. Introduction

Describes the relationship between two joints, motion position and speed limits, kinematic and dynamic properties. There are several types of joints:

  • fixed: fixed joints. No movement is allowed, it serves as a connection.
  • continuous: revolute joint. It can rotate continuously, without rotation angle limit.
  • revolute: revolute joint. Similar to continuous, with rotation angle limit.
  • prismatic: sliding joint. It moves along a certain axis, with position limit.
  • floating: floating joint. It has six degrees of freedom, 3T3R.
  • planar: planar joint. It allows translation or rotation above the plane orthogonal to the plane.

2), sample code

xxxxxxxxxx
 <joint
    name="arm1_Joint"
    type="revolute">
    <limit effort="100" velocity="1" lower="-1.57" upper="1.57"/>
    <origin
      xyz="0.058 0 0.0575"
      rpy="0 0 0" />
    <parent
      link="base_link" />
    <child
      link="arm1_Link" />
    <axis
      xyz="0 0 1" />
    <limit
      lower="0"
      upper="0"
      effort="0"
      velocity="0" />
  </joint>
  • In the [joint] tag, the name attribute is a required item, describing the name of the joint, and it is unique. In the [joint] tag, the type attribute is filled in with the six major joint types.

    3), Tag introduction

    • origin: sub-tag, refers to the relative position of the rotation joint in the parent coordinate system.
    • parent, child: parent, child sub-tags represent two links to be connected; parent is a reference object, and child rotates around the parent.
    • axis: sub-tag indicates which axis (xyz) the link corresponding to the child rotates around and the amount of rotation around the fixed axis.
    • limit: sub-tag is mainly used to limit the child. The lower attribute and upper attribute limit the range of rotation, and the effort attribute limits the force range during the rotation process. (positive and negative value, in Newton or N), the velocity attribute limits the speed of rotation, in meters/second or m/s.
    • mimic: describes the relationship between this joint and the existing joints.
    • safety_controller: describes the safety controller parameters. Protect the movement of the robot joints.
Robot keyboard control
ROS+Opencv application

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
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文