Accessing states during a forward dynamic simulation
Posted: Sat Jul 07, 2018 3:24 am
Hello,
I have been running forward dynamic simulations via the API through MATLAB. I wish to access the states of a model during a forward dynamic simulation in real-time (i.e., at the end of each integration time-step), so that I can use this information to update the model (e.g., modify applied forces) or decide wether to stop a simulation or not (e.g., if the body COM has fallen below a certain height, the simulation should abort).
I am aware of the "TriggeredEventHandler", "PeriodicEventReporter" and "Controller" classes in C++, but am not sure how to access and use these via the MATLAB interface.
Many thanks in advance for any suggestions!
Peter Bishop.
I have been running forward dynamic simulations via the API through MATLAB. I wish to access the states of a model during a forward dynamic simulation in real-time (i.e., at the end of each integration time-step), so that I can use this information to update the model (e.g., modify applied forces) or decide wether to stop a simulation or not (e.g., if the body COM has fallen below a certain height, the simulation should abort).
I am aware of the "TriggeredEventHandler", "PeriodicEventReporter" and "Controller" classes in C++, but am not sure how to access and use these via the MATLAB interface.
Many thanks in advance for any suggestions!
Peter Bishop.