diff --git a/doc/APIreference/APItypes.rst b/doc/APIreference/APItypes.rst index 28486655..85d50af8 100644 --- a/doc/APIreference/APItypes.rst +++ b/doc/APIreference/APItypes.rst @@ -34,8 +34,7 @@ MuJoCo defines a large number of types: Primitive types ^^^^^^^^^^^^^^^ -The two types below are defined in `mjtnum.h `_ -and `mjmodel.h `_, respectively. +The two types below are defined in `mjtnum.h `_. .. _mjtNum: diff --git a/include/mujoco/mjmodel.h b/include/mujoco/mjmodel.h index ed3e1055..45258575 100644 --- a/include/mujoco/mjmodel.h +++ b/include/mujoco/mjmodel.h @@ -40,10 +40,7 @@ #define mjNSOLVER 1000 // size of mjData.solver_XXX arrays -//---------------------------------- primitive types (mjt) ----------------------------------------- - -typedef unsigned char mjtByte; // used for true/false - +//---------------------------------- enum types (mjt) ---------------------------------------------- typedef enum mjtDisableBit_ { // disable default feature bitflags mjDSBL_CONSTRAINT = 1<<0, // entire constraint solver diff --git a/include/mujoco/mjtnum.h b/include/mujoco/mjtnum.h index 27595a44..b9d78ea1 100644 --- a/include/mujoco/mjtnum.h +++ b/include/mujoco/mjtnum.h @@ -15,7 +15,7 @@ #ifndef MUJOCO_INCLUDE_MJTNUM_H_ #define MUJOCO_INCLUDE_MJTNUM_H_ -//---------------------------------- floating-point definitions ------------------------------------ +//---------------------------------- floating-point definition ------------------------------------- // compile-time configuration options #define mjUSEDOUBLE // single or double precision for mjtNum @@ -31,4 +31,11 @@ #endif + +//-------------------------------------- byte definition ------------------------------------------- + +typedef unsigned char mjtByte; // used for true/false + + + #endif // MUJOCO_INCLUDE_MJTNUM_H_