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
@@ -1950,7 +1950,7 @@ void mjCModel::CopyObjects(mjModel* m) {
|
||||
m->eq_type[i] = peq->type;
|
||||
m->eq_obj1id[i] = peq->obj1id;
|
||||
m->eq_obj2id[i] = peq->obj2id;
|
||||
m->eq_active[i] = peq->active;
|
||||
m->eq_active0[i] = peq->active;
|
||||
copyvec(m->eq_solref+mjNREF*i, peq->solref, mjNREF);
|
||||
copyvec(m->eq_solimp+mjNIMP*i, peq->solimp, mjNIMP);
|
||||
copyvec(m->eq_data+mjNEQDATA*i, peq->data, mjNEQDATA);
|
||||
|
||||
Reference in New Issue
Block a user