Skip to content

Commit 58f23c7

Browse files
author
Victor Lopez
committed
Tune a bit physics to avoid joint slippage, specially in TIAGo
1 parent 29f18fe commit 58f23c7

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

pmb2_description/urdf/wheels/caster.gazebo.xacro

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,31 @@
1616

1717
<gazebo reference="caster_${side}_1_link">
1818
<kp>100000000.0</kp>
19-
<kd>10.0</kd>
19+
<kd>100000.0</kd>
2020
<friction>
2121
<ode>
2222
<mu>1.0</mu>
2323
<mu2>1.0</mu2>
2424
</ode>
2525
</friction>
2626
<!--<fdir1>1 0 0</fdir1>-->
27-
<max_vel>10.0</max_vel>
28-
<min_depth>0.0005</min_depth>
27+
<max_vel>1.0</max_vel>
28+
<min_depth>0.005</min_depth>
2929
<material>Gazebo/DarkGrey</material>
3030
</gazebo>
3131

3232
<gazebo reference="caster_${side}_2_link">
3333
<kp>100000000.0</kp>
34-
<kd>10.0</kd>
34+
<kd>100000.0</kd>
3535
<friction>
3636
<ode>
3737
<mu>1.0</mu>
3838
<mu2>1.0</mu2>
3939
</ode>
4040
</friction>
4141
<!--<fdir1>1 0 0</fdir1>-->
42-
<max_vel>10.0</max_vel>
43-
<min_depth>0.0005</min_depth>
42+
<max_vel>1.0</max_vel>
43+
<min_depth>0.005</min_depth>
4444
<material>Gazebo/DarkGrey</material>
4545
</gazebo>
4646

pmb2_description/urdf/wheels/caster.urdf.xacro

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,15 @@
6464
<child link="caster_${side}_1_link"/>
6565
<origin xyz="${offset_x + separation_x / 2} ${offset_y - separation_y / 2} ${offset_z}" rpy="0 0 0"/>
6666
<axis xyz="0 0 1"/>
67-
<dynamics damping="0.005" friction="0.0"/>
67+
<dynamics damping="0.015" friction="0.0"/>
6868
</joint>
6969

7070
<joint name="caster_${side}_2_joint" type="continuous">
7171
<parent link="caster_${side}_1_link"/>
7272
<child link="caster_${side}_2_link"/>
7373
<origin xyz="-0.016 0.0000 -0.040" rpy="${-90.0 * deg_to_rad} 0 0"/>
7474
<axis xyz="0 0 1"/>
75+
<dynamics damping="0.015" friction="0.0"/>
7576
</joint>
7677

7778
<!-- Gazebo extensions -->

pmb2_description/urdf/wheels/wheel.urdf.xacro

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041
7272
<origin xyz="0 ${-separation / 2 * reflect} 0.0" rpy="${-90.0 * deg_to_rad} 0 0"/>
7373
<axis xyz="0 0 1"/>
7474
<limit effort="${torque}" velocity="${velocity / radius}"/>
75+
<dynamics damping="1.0" friction="0.0"/>
7576
</joint>
7677

7778
<!-- Gazebo extensions -->

0 commit comments

Comments
 (0)