Fix typo, improve error message.

PiperOrigin-RevId: 498473694
Change-Id: I9b04df14f4afbe7148c3083da26451020bd2ebc9
This commit is contained in:
Yuval Tassa
2022-12-29 17:14:27 -08:00
committed by Copybara-Service
parent 68ffbffc53
commit 95b9a0f215
+3 -3
View File
@@ -1393,7 +1393,7 @@ void mjCGeom::Compile(void) {
else {
const char* err = alt.Set(quat, inertia, model->degree, model->euler);
if (err) {
throw mjCError(this, "alternative specification error '%s' in geom %d", err, id);
throw mjCError(this, "orientation specification error '%s' in geom %d", err, id);
}
}
@@ -1569,7 +1569,7 @@ void mjCSite::Compile(void) {
else {
const char* err = alt.Set(quat, 0, model->degree, model->euler);
if (err) {
throw mjCError(this, "alternative specification error '%s' in site %d", err, id);
throw mjCError(this, "orientation specification error '%s' in site %d", err, id);
}
}
@@ -1628,7 +1628,7 @@ void mjCCamera::Compile(void) {
// process orientation specifications
const char* err = alt.Set(quat, 0, model->degree, model->euler);
if (err) {
throw mjCError(this, "alternative specification error '%s' in site %d", err, id);
throw mjCError(this, "orientation specification error '%s' in camera %d", err, id);
}
// normalize quaternion