Skip to content

Commit 29f18fe

Browse files
author
Victor Lopez
committed
Correct physic property names for newer gazebo
1 parent 146f0a0 commit 29f18fe

File tree

2 files changed

+40
-20
lines changed

2 files changed

+40
-20
lines changed

pmb2_description/urdf/wheels/caster.gazebo.xacro

+27-11
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,46 @@
1717
<gazebo reference="caster_${side}_1_link">
1818
<kp>100000000.0</kp>
1919
<kd>10.0</kd>
20-
<mu1>0.1</mu1>
21-
<mu2>0.1</mu2>
20+
<friction>
21+
<ode>
22+
<mu>1.0</mu>
23+
<mu2>1.0</mu2>
24+
</ode>
25+
</friction>
2226
<!--<fdir1>1 0 0</fdir1>-->
23-
<maxVel>10.0</maxVel>
24-
<minDepth>0.0005</minDepth>
27+
<max_vel>10.0</max_vel>
28+
<min_depth>0.0005</min_depth>
2529
<material>Gazebo/DarkGrey</material>
2630
</gazebo>
2731

2832
<gazebo reference="caster_${side}_2_link">
29-
<kp>10000000.0</kp>
33+
<kp>100000000.0</kp>
3034
<kd>10.0</kd>
31-
<mu1>0.1</mu1>
32-
<mu2>0.1</mu2>
35+
<friction>
36+
<ode>
37+
<mu>1.0</mu>
38+
<mu2>1.0</mu2>
39+
</ode>
40+
</friction>
3341
<!--<fdir1>1 0 0</fdir1>-->
34-
<maxVel>10.0</maxVel>
35-
<minDepth>0.0005</minDepth>
42+
<max_vel>10.0</max_vel>
43+
<min_depth>0.0005</min_depth>
3644
<material>Gazebo/DarkGrey</material>
3745
</gazebo>
3846

3947
<gazebo reference="caster_{side}_1_joint">
40-
<implicitSpringDamper>0</implicitSpringDamper>
48+
<physics>
49+
<ode>
50+
<implicit_spring_damper>0</implicit_spring_damper>
51+
</ode>
52+
</physics>
4153
</gazebo>
4254
<gazebo reference="caster_{side}_2_joint">
43-
<implicitSpringDamper>0</implicitSpringDamper>
55+
<physics>
56+
<ode>
57+
<implicit_spring_damper>0</implicit_spring_damper>
58+
</ode>
59+
</physics>
4460
</gazebo>
4561

4662
</xacro:macro>

pmb2_description/urdf/wheels/wheel.gazebo.xacro

+13-9
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,23 @@
1616
<gazebo reference="wheel_${side}_link">
1717
<kp>1000000.0</kp>
1818
<kd>100.0</kd>
19-
<!--
20-
<mu1>10.0</mu1>
21-
<mu2>10.0</mu2>
22-
-->
23-
<mu1>100000000000000.0</mu1>
24-
<mu2>100000000000000.0</mu2>
19+
<friction>
20+
<ode>
21+
<mu>1.0</mu>
22+
<mu2>1.0</mu2>
23+
</ode>
24+
</friction>
2525
<!--<fdir1>1 0 0</fdir1>-->
26-
<maxVel>1.0</maxVel>
27-
<minDepth>0.002</minDepth>
26+
<max_vel>1.0</max_vel>
27+
<min_depth>0.002</min_depth>
2828
<material>Gazebo/DarkGrey</material>
2929
</gazebo>
3030
<gazebo reference="wheel_{side}_joint">
31-
<implicitSpringDamper>1</implicitSpringDamper>
31+
<physics>
32+
<ode>
33+
<implicit_spring_damper>1</implicit_spring_damper>
34+
</ode>
35+
</physics>
3236
</gazebo>
3337
</xacro:macro>
3438

0 commit comments

Comments
 (0)