Add automatic free-joint alignment.

PiperOrigin-RevId: 671010083
Change-Id: Ib7d60f75c7f545b1886703715663db8de77feeef
This commit is contained in:
Yuval Tassa
2024-09-04 10:06:29 -07:00
committed by Copybara-Service
parent ae4987026c
commit 8954a088ce
18 changed files with 308 additions and 13 deletions
+3
View File
@@ -924,6 +924,9 @@ void mjXWriter::Compiler(XMLElement* root) {
if (model->boundinertia) {
WriteAttr(section, "boundinertia", 1, &model->boundinertia);
}
if (model->alignfree) {
WriteAttrTxt(section, "alignfree", "true");
}
if (!model->autolimits) {
WriteAttrTxt(section, "autolimits", "false");
}