6. URDF model

1. Program function description

When the program starts, it will show the URDF model file of the vehicle in rviz, and there will also be a GUI debugging tool window, by sliding the progress bar, you can make the model file move.

2. Program code reference path

Take the X3 model for example, after entering the docker container, the location of the source code of this function is located at.

where the path to the URDF model file is.

3. Program startup

After entering the docker container, depending on the actual model, the terminal input, the

image-20230605161145506

You can view the TF tree, docker terminal by typing.

will generate a frame.pdf file in the terminal directory, and then we open the following command to view the

image-20230420150341435

4. Introduction to URDF

URDF, which is called Unified Robot Description Format, translated into Chinese as Unified Robot Descriptive Format, is a way to use the xml format to describe robot model files, similar to D-H parameters.

robot model file in xml format, similar to the D-H parameter.

The first line is a mandatory xml field that describes the version information of the xml.

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

4.1. Components

The relationship between link and joint: two links are connected by a joint, imagine an arm with a small arm (link) and a big arm (link) connected by an elbow joint (joint).

4.1.1, link

1), Introduction

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

Links can also describe link size, color, shape, inertial matrix, collision properties, and so on.

Properties) and so on, each Link will become a coordinate system.

2), sample code (yahboomcar_R2.urdf)

3) Introduction of Tags

4.1.2, joints

(1), Introduction

Describes the relationship between two joints, motion position and velocity constraints, kinematic and kinetic properties.

Joint type:

2), sample code (yahboomcar_X3.urdf)

 

The name attribute in the [joint] tag is required and describes the name of the joint and is unique.

The type attribute in the [joint] tag corresponds to the six joint types.

3) Label introduction