opensim-org / opensim-core

SimTK OpenSim C++ libraries and command-line applications, and Java/Python wrapping.
https://opensim.stanford.edu
Apache License 2.0
800 stars 323 forks source link

Allow two Outputs in 'MocoOutputBase' class #3851

Closed AllisonJohn closed 4 months ago

AllisonJohn commented 4 months ago

Fixes issue #3848

Brief summary of changes

Updated MocoOutputBase to support 2 Outputs. So any OutputGoal can add, subtract, multiply, divide two Outputs to create a new goal.

Testing I've completed

Added new tests to testMocoGoals.cpp

Looking for feedback on...

CHANGELOG.md (choose one)


This change is Reviewable

nickbianco commented 4 months ago

Great work @AllisonJohn! I'll merge after tests are passing.