Hi,
I want to use OpenSim to visualize movements in real-time using joint angles that have been sent to OpenSim from an external application (via TCP/IP) etc. Can this be done? I have a stream of joint angles being generated in MATLAB/Python and I would like to send it over to the GUI for visualization in real-time. Is there a way to do this using either C++ API or by scripting in the GUI itself?
Thank you,
Regards,
Rejin John Varghese
Real-Time Forward Kinematics Visualization in OpenSim GUI ??
- Rejin Varghese
- Posts: 14
- Joined: Tue Feb 13, 2018 12:22 pm
- Ayman Habib
- Posts: 2238
- Joined: Fri Apr 01, 2005 12:24 pm
Re: Real-Time Forward Kinematics Visualization in OpenSim GUI ??
Hello,
If you could write a jython script in the GUI shell and have it "listen" to updates to coordinates then you can apply these changes to the current model in the GUI using the standard API call to setCoordinate. If you can create/update the state under the model in the API visualizer then you can use show(state) to update the visualization. Depends on what tools you're comfortable with.
Best regards and please let us know how it goes if it can help other users on the forum.
-Ayman
If you could write a jython script in the GUI shell and have it "listen" to updates to coordinates then you can apply these changes to the current model in the GUI using the standard API call to setCoordinate. If you can create/update the state under the model in the API visualizer then you can use show(state) to update the visualization. Depends on what tools you're comfortable with.
Best regards and please let us know how it goes if it can help other users on the forum.
-Ayman