Skip to content

SimulationUtilities::analyze(): apply accelerations from Moco implicit mode solutions to model  #3399

Open
@nickbianco

Description

@nickbianco

We need to apply the acceleration variables from an implicit dynamics solution in Moco to the model when computing quantities in SimulationUtilities::analyze().

This should be similar to how we apply discrete variables to the state for variables for models with implicit auxiliary dynamics.

For this we need to grab the AccelerationMotion from the model and call setUDot():

if (stageDep >= SimTK::Stage::Acceleration && getNumAccelerations()) {

Metadata

Metadata

Assignees

Labels

MocoThis label identifies bugs or desired features to aid Moco developmentbug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions