Rename mjSpec.euler to eulerseq to match MJCF.

PiperOrigin-RevId: 649007737
Change-Id: Iedb53c1d8a6e6a082a6ba30a1fb2bb4516839fa1
This commit is contained in:
Yuval Tassa
2024-07-03 03:09:01 -07:00
committed by Copybara-Service
parent df7ea3ed33
commit 8f16b72f44
8 changed files with 19 additions and 18 deletions
+5 -5
View File
@@ -1388,7 +1388,7 @@ void mjCBody::Compile(void) {
}
// check and process orientation alternatives for body
const char* err = ResolveOrientation(quat, model->degree, model->euler, alt);
const char* err = ResolveOrientation(quat, model->degree, model->eulerseq, alt);
if (err) {
throw mjCError(this, "error '%s' in frame alternative", err);
}
@@ -1650,7 +1650,7 @@ void mjCFrame::Compile() {
}
CopyFromSpec();
const char* err = ResolveOrientation(quat, model->spec.degree, model->spec.euler, alt);
const char* err = ResolveOrientation(quat, model->spec.degree, model->spec.eulerseq, alt);
if (err) {
throw mjCError(this, "orientation specification error '%s' in site %d", err, id);
}
@@ -2394,7 +2394,7 @@ void mjCGeom::Compile(void) {
// not 'fromto': try alternative
else {
const char* err = ResolveOrientation(quat, model->degree, model->euler, alt);
const char* err = ResolveOrientation(quat, model->degree, model->eulerseq, alt);
if (err) {
throw mjCError(this, "orientation specification error '%s' in geom %d", err, id);
}
@@ -2643,7 +2643,7 @@ void mjCSite::Compile(void) {
// alternative orientation
else {
const char* err = ResolveOrientation(quat, model->degree, model->euler, alt);
const char* err = ResolveOrientation(quat, model->degree, model->eulerseq, alt);
if (err) {
throw mjCError(this, "orientation specification error '%s' in site %d", err, id);
}
@@ -2754,7 +2754,7 @@ void mjCCamera::Compile(void) {
userdata_.resize(model->nuser_cam);
// process orientation specifications
const char* err = ResolveOrientation(quat, model->degree, model->euler, alt);
const char* err = ResolveOrientation(quat, model->degree, model->eulerseq, alt);
if (err) {
throw mjCError(this, "orientation specification error '%s' in camera %d", err, id);
}