5. Robot URDF model

5.1. URDF overview

Function package reference path:

5.1.1. Introduction

URDF, the full name of 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.

The first line is a required XML field, describing the XML version information.

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

5.1.2, Components

1), link, connecting rod, can be imagined as a human arm.

2), joint, joint, can be imagined as a human elbow.

Relationship between link and joint: two links are connected by joints.

5.1.3, links

1), Introduction

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

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: /home/yahboom/YBAMR-COBOT-EDU-00001/src/yahboom_navrobo_description/scout_description/urdf/scout_mini.urdf.xacro ``xml

The tag describes the material; the name attribute is required, 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. The color range is [0-1].

5.1.4, joints

1), Introduction

Describes the relationship between two joints, movement position and speed restrictions, kinematic and dynamic properties.

Joint types:

2) Sample code

In the [joint] tag, the name attribute is a required item, describing the name of the joint, and is unique.

In the [joint] tag, the type attribute is filled in with the six major joint types.

3) Tag introduction

The sub-tag refers to the relative position of the rotation joint in the coordinate system of parent.

The parent, child sub-tags represent the two links to be connected; parent is a reference object, and child rotates around praent.

The subtag indicates which axis (xyz) the link corresponding to child rotates around and the amount of rotation around the fixed axis.

The subtag is mainly used to limit child. The lower and upper attributes limit the range of rotation, the effort attribute limits the force range during the rotation. (positive and negative value, in Newton or N), and the velocity attribute limits the speed of rotation, in meters per second or m/s.

Describes the relationship between this joint and existing joints.

Describes the safety controller parameters. Protects the movement of robot joints.

5.2, URDF visualization

5.2.1, Startup

Stop the self-starting chassis service

Startup

5.2.2, Example image

The red axis is X axis; the green axis is Y axis; the blue axis is Z axis; the coordinate system formed by the three axes is called base coordinate system. Adjusting the [joint_state_publisher_gui] component can control the rotation of the wheel.

image-20240618191556536