Skip to content

Commit d9f3355

Browse files
committed
MotorPlugin: use MotorPlugin in iris_with_gimbal
- Configure one motor to use the new MotorPlugin. Signed-off-by: Rhys Mainwaring <rhys.mainwaring@me.com>
1 parent 45f5f4a commit d9f3355

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

models/iris_with_gimbal/model.sdf

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,25 @@
311311
</plugin> -->
312312
<!-- //////////////////////////////////////////////// -->
313313

314+
<plugin name="MotorPlugin" filename="MotorPlugin">
315+
<joint_name>iris_with_standoffs::rotor_0_joint</joint_name>
316+
<use_actuator_msg>0</use_actuator_msg>
317+
<disable_braking>0</disable_braking>
318+
<topic>/rotor_0_joint/cmd_vel</topic>
319+
<p_gain>0.20</p_gain>
320+
<i_gain>0</i_gain>
321+
<d_gain>0</d_gain>
322+
<i_max>0</i_max>
323+
<i_min>0</i_min>
324+
<cmd_max>2.5</cmd_max>
325+
<cmd_min>-2.5</cmd_min>
326+
<!-- T-Motor 2216 920KV as used on a Hexsoon 450 -->
327+
<voltage_max>16.8</voltage_max>
328+
<speed_constant>920</speed_constant>
329+
<coil_resistance>1.5e-3</coil_resistance>
330+
<no_load_current>0.8</no_load_current>
331+
</plugin>
332+
314333
<!-- <plugin
315334
filename="gz-sim-joint-controller-system"
316335
name="gz::sim::systems::JointController">
@@ -327,7 +346,7 @@
327346
<i_min>0</i_min>
328347
<cmd_max>2.5</cmd_max>
329348
<cmd_min>-2.5</cmd_min>
330-
</plugin>
349+
</plugin> -->
331350
<plugin
332351
filename="gz-sim-joint-controller-system"
333352
name="gz::sim::systems::JointController">
@@ -378,7 +397,7 @@
378397
<i_min>0</i_min>
379398
<cmd_max>2.5</cmd_max>
380399
<cmd_min>-2.5</cmd_min>
381-
</plugin> -->
400+
</plugin>
382401

383402
<plugin
384403
filename="gz-sim-joint-position-controller-system"

0 commit comments

Comments
 (0)