Fix a bug with PID actuators, when plugin definition order differs from actuator order.
PiperOrigin-RevId: 587729879 Change-Id: If71c7e374f36ef08c5147e7316066d6f5365925f
This commit is contained in:
committed by
Copybara-Service
parent
c0b7b9873d
commit
236dcb4ffd
@@ -322,10 +322,6 @@ TEST_F(PidTest, ITerm) {
|
||||
<mujoco>
|
||||
<extension>
|
||||
<plugin plugin="mujoco.pid">
|
||||
<instance name="pid1">
|
||||
<config key="kp" value="40.0"/>
|
||||
<config key="kd" value="4"/>
|
||||
</instance>
|
||||
<instance name="pid2">
|
||||
<config key="kp" value="40.0"/>
|
||||
<config key="ki" value="40"/>
|
||||
@@ -337,6 +333,14 @@ TEST_F(PidTest, ITerm) {
|
||||
<config key="kd" value="4"/>
|
||||
<config key="imax" value="5"/>
|
||||
</instance>
|
||||
<!-- intentionally put the plugin instances out of order, to test
|
||||
any accidentaly dependency on the plugin definition order matching
|
||||
the actuator order.
|
||||
-->
|
||||
<instance name="pid1">
|
||||
<config key="kp" value="40.0"/>
|
||||
<config key="kd" value="4"/>
|
||||
</instance>
|
||||
</plugin>
|
||||
</extension>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user