opensim-org / opensim-core

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

Add tryGet/UpdSocket and tryGet/UpdOutput to the Component interface #3673

Closed adamkewley closed 8 months ago

adamkewley commented 8 months ago

Fixes having to use a try {} catch (...) {} to find a socket/output on a Component.

Brief summary of changes

Testing I've completed

CHANGELOG.md (choose one)


This change is Reviewable

adamkewley commented 8 months ago

Note: can't merge this until I ensure the manual merge commit was ok: there are merge conflicts related to adding list sockets to parts of the API that this PR also touches (line-wise: functionally, not).