Fix "actrange" parsing for "intvelocity" actuators.
PiperOrigin-RevId: 468759706 Change-Id: I1d9eeb723d28cccb64a6112b103345fcf451700f
This commit is contained in:
committed by
Copybara-Service
parent
ee6fed1230
commit
0b2f19bbe7
@@ -1509,10 +1509,6 @@ void mjXReader::OneActuator(XMLElement* elem, mjCActuator* pact) {
|
||||
pact->biastype = mjBIAS_AFFINE;
|
||||
pact->actlimited = 1;
|
||||
pact->biasprm[1] = -pact->gainprm[0];
|
||||
// require actrange
|
||||
if (!ReadAttr(elem, "actrange", 2, pact->actrange, text)) {
|
||||
throw mjXError(elem, "actrange is required for an intvelocity actuator", type.c_str());
|
||||
}
|
||||
}
|
||||
|
||||
// damper
|
||||
|
||||
Reference in New Issue
Block a user