This commit is contained in:
Quella777
2025-08-25 16:30:02 +08:00
commit 32cc2a8e96
1633 changed files with 289456 additions and 0 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<model>
<name>Demo Joint Damping</name>
<version>1.0</version>
<sdf version="1.6">model.sdf</sdf>
<author>
<name>Shane Loretz</name>
<email>sloretz@openrobotics.org</email>
</author>
<description>An demo of joints with varying damping parameters.</description>
</model>

View File

@@ -0,0 +1,190 @@
<?xml version='1.0'?>
<sdf version='1.6'>
<model name='demo_joint_damping'>
<pose>0 0 0.06 0 0 0</pose>
<link name='link_base'>
<inertial>
<mass>100</mass>
<inertia>
<ixx>1.2</ixx>
<ixy>0</ixy>
<ixz>0</ixz>
<iyy>3.64</iyy>
<iyz>0</iyz>
<izz>4.6</izz>
</inertia>
</inertial>
<gravity>1</gravity>
<self_collide>0</self_collide>
<kinematic>0</kinematic>
<enable_wind>0</enable_wind>
<visual name='visual_base'>
<geometry>
<mesh>
<uri>model://demo_joint_damping/meshes/base_model.dae</uri>
<scale>0.001 0.001 0.001</scale>
</mesh>
</geometry>
<cast_shadows>1</cast_shadows>
</visual>
<collision name='collision_base'>
<geometry>
<box>
<size>0.65 0.36 0.12</size>
</box>
</geometry>
</collision>
</link>
<link name='link_over_damping'>
<gravity>0</gravity>
<pose>0.12 0 0.15 0.7853981633974483 0 0</pose>
<inertial>
<pose>0 0 0.12 0 0 0</pose>
<mass>1</mass>
<inertia>
<ixx>0.0051</ixx>
<ixy>0</ixy>
<ixz>0</ixz>
<iyy>0.0051</iyy>
<iyz>0</iyz>
<izz>0.0006</izz>
</inertia>
</inertial>
<visual name='visual_over_damping'>
<pose>0 0 -0.15 0 0 0</pose>
<geometry>
<mesh>
<uri>model://demo_joint_damping/meshes/arm.stl</uri>
<scale>0.001 0.001 0.001</scale>
</mesh>
</geometry>
<material>
<lighting>1</lighting>
<script>
<uri>file://media/materials/scripts/gazebo.material</uri>
<name>Gazebo/Orange</name>
</script>
</material>
<cast_shadows>1</cast_shadows>
</visual>
</link>
<joint name='joint_over_damping' type='revolute'>
<parent>link_base</parent>
<child>link_over_damping</child>
<pose>0 0 0 -0.15 0 0</pose>
<axis>
<xyz>1 0 0</xyz>
<dynamics>
<!--
Damping coefficient
The damping coefficient causes a torque (force for prismatic
joints) to be applied based on the current joint velocity.
The direction of the torque opposes the velocity.
When the velocity is 0 rad/s the torque applied is 0 N*m.
torque = -damping * joint_velocity
-->
<damping>5</damping>
<friction>0</friction>
<!-- Spring stiffess and reference set to add movement to demonstration -->
<spring_reference>-0.7853981633974483</spring_reference>
<spring_stiffness>7</spring_stiffness>
</dynamics>
</axis>
</joint>
<link name='link_critical_damping'>
<gravity>0</gravity>
<pose>0 0 0.15 0.7853981633974483 0 0</pose>
<inertial>
<pose>0 0 0.12 0 0 0</pose>
<mass>1</mass>
<inertia>
<ixx>0.0051</ixx>
<ixy>0</ixy>
<ixz>0</ixz>
<iyy>0.0051</iyy>
<iyz>0</iyz>
<izz>0.0006</izz>
</inertia>
</inertial>
<visual name='visual_critical_damping'>
<pose>0 0 -0.15 0 0 0</pose>
<geometry>
<mesh>
<uri>model://demo_joint_damping/meshes/arm.stl</uri>
<scale>0.001 0.001 0.001</scale>
</mesh>
</geometry>
<material>
<lighting>1</lighting>
<script>
<uri>file://media/materials/scripts/gazebo.material</uri>
<name>Gazebo/Orange</name>
</script>
</material>
<cast_shadows>1</cast_shadows>
</visual>
</link>
<joint name='joint_critical_damping' type='revolute'>
<parent>link_base</parent>
<child>link_critical_damping</child>
<pose>0 0 0 -0.15 0 0</pose>
<axis>
<xyz>1 0 0</xyz>
<dynamics>
<damping>0.7</damping>
<friction>0</friction>
<spring_reference>-0.7853981633974483</spring_reference>
<spring_stiffness>7</spring_stiffness>
</dynamics>
</axis>
</joint>
<link name='link_under_damping'>
<gravity>0</gravity>
<pose>-0.12 0 0.15 0.7853981633974483 0 0</pose>
<inertial>
<pose>0 0 0.12 0 0 0</pose>
<mass>1</mass>
<inertia>
<ixx>0.0051</ixx>
<ixy>0</ixy>
<ixz>0</ixz>
<iyy>0.0051</iyy>
<iyz>0</iyz>
<izz>0.0006</izz>
</inertia>
</inertial>
<visual name='visual_under_damping'>
<pose>0 0 -0.15 0 0 0</pose>
<geometry>
<mesh>
<uri>model://demo_joint_damping/meshes/arm.stl</uri>
<scale>0.001 0.001 0.001</scale>
</mesh>
</geometry>
<material>
<lighting>1</lighting>
<script>
<uri>file://media/materials/scripts/gazebo.material</uri>
<name>Gazebo/Orange</name>
</script>
</material>
<cast_shadows>1</cast_shadows>
</visual>
</link>
<joint name='joint_under_damping' type='revolute'>
<parent>link_base</parent>
<child>link_under_damping</child>
<pose>0 0 0 -0.15 0 0</pose>
<axis>
<xyz>1 0 0</xyz>
<dynamics>
<damping>0.05</damping>
<friction>0</friction>
<spring_reference>-0.7853981633974483</spring_reference>
<spring_stiffness>7</spring_stiffness>
</dynamics>
</axis>
</joint>
<allow_auto_disable>1</allow_auto_disable>
</model>
</sdf>

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB