Can I control a body movement by giving information about the position of each node

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
POST REPLY
User avatar
hiram qu
Posts: 5
Joined: Wed Apr 28, 2021 5:52 am

Can I control a body movement by giving information about the position of each node

Post by hiram qu » Sat Aug 07, 2021 4:15 am

Hi everyone
I have done some experiments and obtained the spatial coordinate information of the joint nodes in the process of human motion. I want to input the information to the corresponding joint nodes so that the model can move. Is this possible?

User avatar
Nicholas Bianco
Posts: 1051
Joined: Thu Oct 04, 2012 8:09 pm

Re: Can I control a body movement by giving information about the position of each node

Post by Nicholas Bianco » Sat Aug 07, 2021 6:18 pm

Hi Hiram,

What do you mean by "joint nodes"? The 3D position of the joint centers? Or something else?

Best,
-Nick

User avatar
hiram qu
Posts: 5
Joined: Wed Apr 28, 2021 5:52 am

Re: Can I control a body movement by giving information about the position of each node

Post by hiram qu » Fri Aug 13, 2021 7:45 am

Sorry the last problem has been solved but the following error message occurred when I was running MOCO Could you please help me to analyze the cause Thank you very much

Java exception occurred
java.lang.RuntimeException This trajectory is sealed, to force you to acknowledge the solver failed;call unseal to gain access.
Thrown at MocoTrajectory.cpp:1347 in ensureUnsealed

User avatar
Nicholas Bianco
Posts: 1051
Joined: Thu Oct 04, 2012 8:09 pm

Re: Can I control a body movement by giving information about the position of each node

Post by Nicholas Bianco » Fri Aug 13, 2021 11:48 am

Hi Hiram,

That error message means the problem failed for some reason (e.g., did not converge). You can call "unseal()" to access the solution:

Code: Select all

solution = study.solve();
solutionUnsealed = solution.unseal();

POST REPLY