Move mjtConstraintState from mjmodel.h to mjdata.h.
This is the correct location, this enum is only used in `mjData`, not `mjModel`. PiperOrigin-RevId: 798860951 Change-Id: I48b9a2afc831bd9a6966cc9586429fd03605bdd2
This commit is contained in:
committed by
Copybara-Service
parent
1c1bb14e1c
commit
d77ecb3f06
@@ -51,6 +51,15 @@ typedef enum mjtState_ { // state elements
|
||||
} mjtState;
|
||||
|
||||
|
||||
typedef enum mjtConstraintState_ { // constraint state
|
||||
mjCNSTRSTATE_SATISFIED = 0, // constraint satisfied, zero cost (limit, contact)
|
||||
mjCNSTRSTATE_QUADRATIC, // quadratic cost (equality, friction, limit, contact)
|
||||
mjCNSTRSTATE_LINEARNEG, // linear cost, negative side (friction)
|
||||
mjCNSTRSTATE_LINEARPOS, // linear cost, positive side (friction)
|
||||
mjCNSTRSTATE_CONE // squared distance to cone cost (elliptic contact)
|
||||
} mjtConstraintState;
|
||||
|
||||
|
||||
typedef enum mjtWarning_ { // warning types
|
||||
mjWARN_INERTIA = 0, // (near) singular inertia matrix
|
||||
mjWARN_CONTACTFULL, // too many contacts in contact list
|
||||
|
||||
@@ -303,15 +303,6 @@ typedef enum mjtConstraint_ { // type of constraint
|
||||
} mjtConstraint;
|
||||
|
||||
|
||||
typedef enum mjtConstraintState_ { // constraint state
|
||||
mjCNSTRSTATE_SATISFIED = 0, // constraint satisfied, zero cost (limit, contact)
|
||||
mjCNSTRSTATE_QUADRATIC, // quadratic cost (equality, friction, limit, contact)
|
||||
mjCNSTRSTATE_LINEARNEG, // linear cost, negative side (friction)
|
||||
mjCNSTRSTATE_LINEARPOS, // linear cost, positive side (friction)
|
||||
mjCNSTRSTATE_CONE // squared distance to cone cost (elliptic contact)
|
||||
} mjtConstraintState;
|
||||
|
||||
|
||||
typedef enum mjtSensor_ { // type of sensor
|
||||
// common robotic sensors, attached to a site
|
||||
mjSENS_TOUCH = 0, // scalar contact normal forces summed over sensor zone
|
||||
|
||||
Reference in New Issue
Block a user