Add childclass support to frames.

PiperOrigin-RevId: 615487831
Change-Id: I0e4d2efd52211701b4286a0b0de84424470a3a47
This commit is contained in:
Alessio Quaglino
2024-03-13 11:29:50 -07:00
committed by Copybara-Service
parent 0d16587135
commit bda03af49a
17 changed files with 195 additions and 46 deletions
+3 -1
View File
@@ -156,7 +156,7 @@ typedef struct _mjmPlugin { // plugin specification
typedef struct _mjmBody { // body specification
mjElement element; // internal, do not modify
mjString name; // name
mjString classname; // childclass name
mjString childclass; // childclass name
// body frame
double pos[3]; // frame position
@@ -183,6 +183,8 @@ typedef struct _mjmBody { // body specification
typedef struct _mjmFrame { // frame specification
mjElement element; // internal, do not modify
mjString name; // name
mjString childclass; // childclass name
double pos[3]; // position
double quat[4]; // orientation
mjmOrientation alt; // alternative orientation