Skip to content

Commit cac1e9f

Browse files
committed
Helicopter: set physics params in detachable joints
- Use gazebosim/gz-physics#754 - Use gazebosim/gz-sim#2960 Signed-off-by: Rhys Mainwaring <[email protected]>
1 parent 14db6fe commit cac1e9f

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed

Gazebo/models/rotor_head_ccw/model.sdf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,27 +1771,43 @@ limitations in the DetachableJoint plugin.
17711771
<child_link>blade_rod_2b_link</child_link>
17721772
<child_model>rotor_head_ccw</child_model>
17731773
<joint_type>fixed</joint_type>
1774+
<physics>
1775+
<cfm>1.0e-6</cfm>
1776+
<erp>0.8</erp>
1777+
</physics>
17741778
</plugin>
17751779
<plugin name="gz::sim::systems::DetachableJoint"
17761780
filename="libgz-sim-detachable-joint-system.so">
17771781
<parent_link>blade_rod_1a_link</parent_link>
17781782
<child_link>blade_rod_1b_link</child_link>
17791783
<child_model>rotor_head_ccw</child_model>
17801784
<joint_type>fixed</joint_type>
1785+
<physics>
1786+
<cfm>1.0e-6</cfm>
1787+
<erp>0.8</erp>
1788+
</physics>
17811789
</plugin>
17821790
<plugin name="gz::sim::systems::DetachableJoint"
17831791
filename="libgz-sim-detachable-joint-system.so">
17841792
<parent_link>lever_rod_1a_link</parent_link>
17851793
<child_link>lever_rod_1b_link</child_link>
17861794
<child_model>rotor_head_ccw</child_model>
17871795
<joint_type>fixed</joint_type>
1796+
<physics>
1797+
<cfm>1.0e-6</cfm>
1798+
<erp>0.8</erp>
1799+
</physics>
17881800
</plugin>
17891801
<plugin name="gz::sim::systems::DetachableJoint"
17901802
filename="libgz-sim-detachable-joint-system.so">
17911803
<parent_link>lever_rod_2a_link</parent_link>
17921804
<child_link>lever_rod_2b_link</child_link>
17931805
<child_model>rotor_head_ccw</child_model>
17941806
<joint_type>fixed</joint_type>
1807+
<physics>
1808+
<cfm>1.0e-6</cfm>
1809+
<erp>0.8</erp>
1810+
</physics>
17951811
</plugin>
17961812

17971813
<!-- servo links -->
@@ -1801,20 +1817,32 @@ limitations in the DetachableJoint plugin.
18011817
<child_link>servo_rod_3b_link</child_link>
18021818
<child_model>rotor_head_ccw</child_model>
18031819
<joint_type>fixed</joint_type>
1820+
<physics>
1821+
<cfm>1.0e-6</cfm>
1822+
<erp>0.8</erp>
1823+
</physics>
18041824
</plugin>
18051825
<plugin name="gz::sim::systems::DetachableJoint"
18061826
filename="libgz-sim-detachable-joint-system.so">
18071827
<parent_link>servo_rod_2a_link</parent_link>
18081828
<child_link>servo_rod_2b_link</child_link>
18091829
<child_model>rotor_head_ccw</child_model>
18101830
<joint_type>fixed</joint_type>
1831+
<physics>
1832+
<cfm>1.0e-6</cfm>
1833+
<erp>0.8</erp>
1834+
</physics>
18111835
</plugin>
18121836
<plugin name="gz::sim::systems::DetachableJoint"
18131837
filename="libgz-sim-detachable-joint-system.so">
18141838
<parent_link>servo_rod_1a_link</parent_link>
18151839
<child_link>servo_rod_1b_link</child_link>
18161840
<child_model>rotor_head_ccw</child_model>
18171841
<joint_type>fixed</joint_type>
1842+
<physics>
1843+
<cfm>1.0e-6</cfm>
1844+
<erp>0.8</erp>
1845+
</physics>
18181846
</plugin>
18191847

18201848
<!-- guide link (weld joint at child origin -->
@@ -1824,6 +1852,10 @@ limitations in the DetachableJoint plugin.
18241852
<child_link>guide_v_link</child_link>
18251853
<child_model>rotor_head_ccw</child_model>
18261854
<joint_type>fixed</joint_type>
1855+
<physics>
1856+
<cfm>1.0e-6</cfm>
1857+
<erp>0.8</erp>
1858+
</physics>
18271859
</plugin>
18281860

18291861
<plugin name="gz::sim::systems::JointStatePublisher"

Gazebo/models/rotor_head_cw/model.sdf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,27 +2147,43 @@ Command motor angular velocity
21472147
<child_link>blade_rod_1b_link</child_link>
21482148
<child_model>rotor_head_cw</child_model>
21492149
<joint_type>fixed</joint_type>
2150+
<physics>
2151+
<cfm>1.0e-6</cfm>
2152+
<erp>0.8</erp>
2153+
</physics>
21502154
</plugin>
21512155
<plugin name="gz::sim::systems::DetachableJoint"
21522156
filename="libgz-sim-detachable-joint-system.so">
21532157
<parent_link>blade_rod_2a_link</parent_link>
21542158
<child_link>blade_rod_2b_link</child_link>
21552159
<child_model>rotor_head_cw</child_model>
21562160
<joint_type>fixed</joint_type>
2161+
<physics>
2162+
<cfm>1.0e-6</cfm>
2163+
<erp>0.8</erp>
2164+
</physics>
21572165
</plugin>
21582166
<plugin name="gz::sim::systems::DetachableJoint"
21592167
filename="libgz-sim-detachable-joint-system.so">
21602168
<parent_link>lever_rod_1a_link</parent_link>
21612169
<child_link>lever_rod_1b_link</child_link>
21622170
<child_model>rotor_head_cw</child_model>
21632171
<joint_type>fixed</joint_type>
2172+
<physics>
2173+
<cfm>1.0e-6</cfm>
2174+
<erp>0.8</erp>
2175+
</physics>
21642176
</plugin>
21652177
<plugin name="gz::sim::systems::DetachableJoint"
21662178
filename="libgz-sim-detachable-joint-system.so">
21672179
<parent_link>lever_rod_2a_link</parent_link>
21682180
<child_link>lever_rod_2b_link</child_link>
21692181
<child_model>rotor_head_cw</child_model>
21702182
<joint_type>fixed</joint_type>
2183+
<physics>
2184+
<cfm>1.0e-6</cfm>
2185+
<erp>0.8</erp>
2186+
</physics>
21712187
</plugin>
21722188

21732189
<!-- servo links -->
@@ -2177,20 +2193,32 @@ Command motor angular velocity
21772193
<child_link>servo_rod_3b_link</child_link>
21782194
<child_model>rotor_head_cw</child_model>
21792195
<joint_type>fixed</joint_type>
2196+
<physics>
2197+
<cfm>1.0e-6</cfm>
2198+
<erp>0.8</erp>
2199+
</physics>
21802200
</plugin>
21812201
<plugin name="gz::sim::systems::DetachableJoint"
21822202
filename="libgz-sim-detachable-joint-system.so">
21832203
<parent_link>servo_rod_2a_link</parent_link>
21842204
<child_link>servo_rod_2b_link</child_link>
21852205
<child_model>rotor_head_cw</child_model>
21862206
<joint_type>fixed</joint_type>
2207+
<physics>
2208+
<cfm>1.0e-6</cfm>
2209+
<erp>0.8</erp>
2210+
</physics>
21872211
</plugin>
21882212
<plugin name="gz::sim::systems::DetachableJoint"
21892213
filename="libgz-sim-detachable-joint-system.so">
21902214
<parent_link>servo_rod_1a_link</parent_link>
21912215
<child_link>servo_rod_1b_link</child_link>
21922216
<child_model>rotor_head_cw</child_model>
21932217
<joint_type>fixed</joint_type>
2218+
<physics>
2219+
<cfm>1.0e-6</cfm>
2220+
<erp>0.8</erp>
2221+
</physics>
21942222
</plugin>
21952223

21962224
<!-- guide link (weld joint at child origin -->
@@ -2200,6 +2228,10 @@ Command motor angular velocity
22002228
<child_link>guide_v_link</child_link>
22012229
<child_model>rotor_head_cw</child_model>
22022230
<joint_type>fixed</joint_type>
2231+
<physics>
2232+
<cfm>1.0e-6</cfm>
2233+
<erp>0.8</erp>
2234+
</physics>
22032235
</plugin>
22042236

22052237
<plugin name="gz::sim::systems::JointStatePublisher"

0 commit comments

Comments
 (0)