Set actuator limits correctly.
PiperOrigin-RevId: 879012913 Change-Id: I3f03d09a98236ae9a4dc069564d14437ff5d0a2b
This commit is contained in:
committed by
Copybara-Service
parent
35c0a25cf4
commit
45c7376ab4
@@ -914,7 +914,7 @@ void ControlsGui(const mjModel* model, const mjData* data,
|
|||||||
|
|
||||||
double min = -1.0;
|
double min = -1.0;
|
||||||
double max = 1.0;
|
double max = 1.0;
|
||||||
if (!model->actuator_ctrllimited[i]) {
|
if (model->actuator_ctrllimited[i]) {
|
||||||
min = model->actuator_ctrlrange[2 * i + 0];
|
min = model->actuator_ctrlrange[2 * i + 0];
|
||||||
max = model->actuator_ctrlrange[2 * i + 1];
|
max = model->actuator_ctrlrange[2 * i + 1];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user