Set default body position to (0, 0, 0).

The "undefined" body position is a remnant of the now-removed `compiler/coordinate` attribute, see [documentation in version 2.3.3](https://mujoco.readthedocs.io/en/2.3.3/modeling.html#cframe) (or older).

PiperOrigin-RevId: 676361485
Change-Id: I104c8da2a988a0430eb85fff8b9b60f8c1e08582
This commit is contained in:
Yuval Tassa
2024-09-19 04:35:34 -07:00
committed by Copybara-Service
parent 3839ad186e
commit f161b63a22
2 changed files with 1 additions and 18 deletions
-1
View File
@@ -78,7 +78,6 @@ void mjs_defaultBody(mjsBody* body) {
memset(body, 0, sizeof(mjsBody));
// body frame
body->pos[0] = mjNAN;
body->quat[0] = 1;
// inertial frame