DAIRLab / dairlib

MIT License
76 stars 27 forks source link

Remove context creation from DIRCON constraints #147

Closed mposa closed 4 years ago

mposa commented 4 years ago

DirconDynamicConstraint was creating a new MultibodyPlant context inside the evaluation loop. On the Cassie squatting test, this was ~15% of total runtime. Removed this to make use of a single context.

Also added a helper function (setContext) to support this.l