Clean up mj_id2name and mj_name2id.
PiperOrigin-RevId: 514340647 Change-Id: Idf895b2d7a4a8833725afbe5c71c777081b42d9e
This commit is contained in:
committed by
Copybara-Service
parent
222ee00a66
commit
49dd6b4193
@@ -400,10 +400,10 @@ MJAPI void mj_jacSite(const mjModel* m, const mjData* d, mjtNum* jacp, mjtNum* j
|
||||
MJAPI void mj_jacPointAxis(const mjModel* m, mjData* d, mjtNum* jacPoint, mjtNum* jacAxis,
|
||||
const mjtNum point[3], const mjtNum axis[3], int body);
|
||||
|
||||
// Get id of object with specified name, return -1 if not found; type is mjtObj.
|
||||
// Get id of object with the specified mjtObj type and name, returns -1 if id not found.
|
||||
MJAPI int mj_name2id(const mjModel* m, int type, const char* name);
|
||||
|
||||
// Get name of object with specified id, return 0 if invalid type or id; type is mjtObj.
|
||||
// Get name of object with the specified mjtObj type and id, returns NULL if name not found.
|
||||
MJAPI const char* mj_id2name(const mjModel* m, int type, int id);
|
||||
|
||||
// Convert sparse inertia matrix M into full (i.e. dense) matrix.
|
||||
|
||||
Reference in New Issue
Block a user