官术网_书友最值得收藏!

Adding physical and collision properties to a URDF model

Before simulating a robot in a robot simulator, such as Gazebo, V-REP, and so on, we need to define the robot link's physical properties such as geometry, color, mass, and inertia, and the collision properties of the link.

We will only get good simulation results if we define all these properties inside the robot model. URDF provides tags to include all these parameters and code snippets of base_link contained in theses properties as given here:

<link>
......    
<collision>
      <geometry>
      <cylinder length="0.03" radius="0.2"/>
      </geometry>
      <origin rpy="0 0 0" xyz="0 0 0"/>
    </collision>

    <inertial>
    <mass value="1"/>
    <inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/>
    </inertial>
...........
</link>

Here, we define the collision geometry as cylinder and the mass as 1 Kg, and we also set the inertial matrix of the link.

The collision and inertia parameters are required in each link; otherwise, Gazebo will not load the robot model properly.

主站蜘蛛池模板: 紫金县| 拉孜县| 兴山县| 怀来县| 兰坪| 太原市| 武宣县| 曲靖市| 海原县| 岳普湖县| 湄潭县| 周口市| 连江县| 东至县| 昌乐县| 南平市| 皋兰县| 玉树县| 和硕县| 璧山县| 巴里| 屯门区| 太白县| 临沭县| 广宗县| 松溪县| 三门峡市| 万源市| 旅游| 义乌市| 永善县| 洪洞县| 平阴县| 襄城县| 冷水江市| 商洛市| 镇康县| 赤水市| 扎鲁特旗| 佳木斯市| 西乌珠穆沁旗|