Automated g4 rollback of changelist 604607692.
*** Reason for rollback *** breakage resulting in "inertia must have positive eigenvalues" when parsing URDF's *** Original change description *** Move fullinertia from mjCAlternative to mjCBody. *** PiperOrigin-RevId: 604677400 Change-Id: Iab8263b5b0aee310bd75404e314f3b707ce3300e
This commit is contained in:
committed by
Copybara-Service
parent
737342bdfe
commit
84f20ffb66
@@ -3021,11 +3021,7 @@ void mjXReader::Body(XMLElement* section, mjCBody* pbody, mjCFrame* frame) {
|
||||
ReadQuat(elem, "quat", pbody->iquat, text);
|
||||
ReadAttr(elem, "mass", 1, &pbody->mass, text, true);
|
||||
ReadAttr(elem, "diaginertia", 3, pbody->inertia, text);
|
||||
bool alt = ReadAlternative(elem, pbody->ialt);
|
||||
bool full = ReadAttr(elem, "fullinertia", 6, pbody->fullinertia, text);
|
||||
if (alt && full) {
|
||||
throw mjXError(elem, "multiple orientation specifiers are not allowed");
|
||||
}
|
||||
ReadAlternative(elem, pbody->ialt);
|
||||
}
|
||||
|
||||
// joint sub-element
|
||||
|
||||
Reference in New Issue
Block a user