Move mjtByte definition from mjmodel.h to mjtnum.h.
PiperOrigin-RevId: 516193927 Change-Id: Idbba21119ef2f7da3ab6f6f21611a757658aad23
This commit is contained in:
committed by
Copybara-Service
parent
b4d29abfc1
commit
c16d4d0d25
@@ -34,8 +34,7 @@ MuJoCo defines a large number of types:
|
||||
Primitive types
|
||||
^^^^^^^^^^^^^^^
|
||||
|
||||
The two types below are defined in `mjtnum.h <https://github.com/deepmind/mujoco/blob/main/include/mujoco/mjtnum.h>`_
|
||||
and `mjmodel.h <https://github.com/deepmind/mujoco/blob/main/include/mujoco/mjmodel.h>`_, respectively.
|
||||
The two types below are defined in `mjtnum.h <https://github.com/deepmind/mujoco/blob/main/include/mujoco/mjtnum.h>`_.
|
||||
|
||||
.. _mjtNum:
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user