4.URDF model

 

1. Program function description

After the program is started, the URDF model file of the vehicle model will be displayed in rviz. There will also be a GUI debugging tool window. By sliding the progress bar, the model file can be moved.

2. Program code reference path

The source code of this function is located at:

Among them, the path of the URDF model file is:

 

3. Program startup

After entering the docker container, according to the actual car model, enter the terminal:

You can also choose to start it on the virtual machine side. The command is the same as above.

image-20230809091359642

 

 

You can view the TF tree and docker terminal input,

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

image-20230809091541628

4. URDF introduction

URDF, the full name is Unified Robot Description Format, which is translated into Chinese as Unified Robot Description Format. It is a kind of

Robot model file described in xml format, similar to D-H parameters.

The first line is a required item for XML and describes the version information of 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 through joints. Imagine that an arm has a forearm (link) and an upper arm (link) connected through an elbow joint (joint).

  1. Introduction

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

Links can also describe the size, color, shape, inertial matrix, collision parameters, etc. Each Link will become a coordinate system.

2.Sample code

  1. Label introduction

4.1.2. joints

  1. Introduction

Describe the relationship between two joints, motion position and speed limits, kinematic and dynamic properties.

Joint type:

  1. Sample code

In the [joint] tag, the name attribute is required, which describes the name of the joint and is unique.

In the type attribute of the [joint] tag, fill in the six joint types correspondingly.

3.tag introduction