6、URDF model

1、Program function description

After the program starts, the URDF model file of the model will be displayed in rviz and there will be a GUI debugging tool window, which can be moved by sliding the progress bar.

2、Program code reference path

Taking the X3 model as an 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、The program starts

After entering the docker container, according to the actual model, the terminal input,

image-20230420145657881

You can view TF tree, docker terminal input,

A frame.pdf file will be generated in the terminal directory, and then we will open it with the following command,

image-20230420150341435

4、Introduction to URDF

URDF, full name Unified Robot Description Format, translated as Chinese Unified Robot Descriptive Format, is a kind of make

A robot model file described in xml format, similar to the D-H parameters.

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

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

4.1、components

The relationship between link and joint: The two links are connected by joints, imagine that the arm has a small arm (link) and a large arm (link) connected by the elbow (joint).

  1. Introduction

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

Links can also describe connecting rod size color shape inertial matrix collision parameters

properties), etc., each link will become a coordinate system.

  1. Sample code (yahboomcar_X3.urdf)

  1. Label introduction

Describes pose information; The xyz attribute describes the coordinate position in the larger environment, and the rpy attribute describes its own posture.

Describes the quality of Link.

The inertial reference frame, due to the symmetry of the rotational inertia matrix, only 6 upper triangular elements ixx, ixy, ixz, iyy, iyz, izz are required as genera

Sex.

Labels describe shapes; The main function of the mesh attribute is to load texture files, and the filename attribute texture path file is file

Address.

The label describes the material; The name attribute is required, can be empty, can be repeated. Via the RGBA genus in the [color] tag

Sex describes red, green, blue, transparency, separated by spaces. The range of colors is [0-1].

4.1.2、joints

  1. Introduction

Describe the relationship between two joints, position of movement and speed limit, kinematic and kinetic properties.

Joint Type:

  1. Sample code (yahboomcar_X3.urdf)

In the Joint tab, the name attribute is required, describes the name of the joint, and is unique.

In the [joint] tab, fill in the type attribute, corresponding to the six joint types.

  1. Label introduction

A subtag that refers to the relative position of the rotating joint in the coordinate system of the parent.

parent, the child subtag represents the two links to be connected; Parent is the reference object, and Child revolves around Praent.

The sublabels indicate which axis (xyz) the corresponding link of Child rotates around and the amount of rotation around a fixed axis.

Subtags are primarily restrictive for child. The lower property and the upper property limit the range of radians of rotation, and the effort property restricts it

It is the range of force during rotation. (plus or minus value, in Ox or N), the velocity property limits the speed at turning,

The unit is meters per second or m/s.

Describe the relationship of the joint to an existing joint.

Describes the safety controller parameters. Protect the movement of the robot's joints.