BEGIN_PUBLIC

Zero all of act_dot when there are custom actuator dynamics, but no callback.
END_PUBLIC

PiperOrigin-RevId: 564712105
Change-Id: I107481727a42eb2577d62e29ac4e1496c56bb634
This commit is contained in:
Nimrod Gileadi
2023-09-12 07:13:25 -07:00
committed by Copybara-Service
parent 48eb75ae92
commit fbcd96d03f
+1 -1
View File
@@ -264,7 +264,7 @@ void mj_fwdActuation(const mjModel* m, mjData* d) {
mjcb_act_dyn(m, d, i);
}
} else {
d->act_dot[j] = 0;
mju_zero(d->act_dot + j, m->actuator_actnum[i]);
}
}
}