Remove mjCAlternative and user_objects dependency from xml_urdf.

PiperOrigin-RevId: 618832482
Change-Id: I626bb956cd3eb35317811b9b577cc7db128262ea
This commit is contained in:
Alessio Quaglino
2024-03-25 07:20:01 -07:00
committed by Copybara-Service
parent 7875e93fea
commit 357ff8bbdc
8 changed files with 50 additions and 59 deletions
+2 -1
View File
@@ -73,6 +73,7 @@ mjCFlexcomp::mjCFlexcomp(void) {
centered = false;
mjs_defaultPlugin(plugin);
mjs_defaultOrientation(alt);
plugin_name = "";
plugin_instance_name = "";
plugin.name = (mjString)&plugin_name;
@@ -131,7 +132,7 @@ bool mjCFlexcomp::Make(mjSpec* spec, mjsBody* body, char* error, int error_sz) {
}
// compute orientation
const char* alterr = alt.Set(quat, model->spec.degree, model->spec.euler);
const char* alterr = mjs_resolveOrientation(quat, model->spec.degree, model->spec.euler, &alt);
if (alterr) {
return comperr(error, alterr, error_sz);
}