Added mjData.eq_active user input variable, for enabling/disabling the state of equality constraints.
Renamed `mjModel.eq_active` to `mjModel.eq_active0`, which now has the semantic of "initial value of `mjData.eq_active`". Fixes #876. PiperOrigin-RevId: 570410643 Change-Id: Id03171e751377c7cc453f143abee64239ee2e2ed
This commit is contained in:
committed by
Copybara-Service
parent
177aec68dc
commit
ee78b8f76b
@@ -78,14 +78,14 @@
|
||||
X( mjtNum, cam_, ipd, ncam, 1 ) \
|
||||
X( mjtNum, cam_, user, ncam, MJ_M(nuser_cam) )
|
||||
|
||||
#define MJMODEL_EQUALITY \
|
||||
X( int, eq_, type, neq, 1 ) \
|
||||
X( int, eq_, obj1id, neq, 1 ) \
|
||||
X( int, eq_, obj2id, neq, 1 ) \
|
||||
X( mjtByte, eq_, active, neq, 1 ) \
|
||||
X( mjtNum, eq_, solref, neq, mjNREF ) \
|
||||
X( mjtNum, eq_, solimp, neq, mjNIMP ) \
|
||||
X( mjtNum, eq_, data, neq, mjNEQDATA )
|
||||
#define MJMODEL_EQUALITY \
|
||||
X( int, eq_, type, neq, 1 ) \
|
||||
X( int, eq_, obj1id, neq, 1 ) \
|
||||
X( int, eq_, obj2id, neq, 1 ) \
|
||||
X( mjtByte, eq_, active0, neq, 1 ) \
|
||||
X( mjtNum, eq_, solref, neq, mjNREF ) \
|
||||
X( mjtNum, eq_, solimp, neq, mjNIMP ) \
|
||||
X( mjtNum, eq_, data, neq, mjNEQDATA )
|
||||
|
||||
#define MJMODEL_EXCLUDE \
|
||||
X( int, exclude_, signature, nexclude, 1 )
|
||||
|
||||
Reference in New Issue
Block a user