Page 1 of 1

Multi Phase Motion

Posted: Wed Jun 09, 2021 10:36 pm
by vinaym815
I read in the forums that multi phase optimization is on back burner. But if one were to implement it using OpenSim Moco how would you suggest going about it.
I am interested in sit-to-stand motion.

-Vinay

Re: Multi Phase Motion

Posted: Thu Jun 10, 2021 8:58 pm
by aafox
Hi Vinay,

I guess it's tricky to provide too much without knowing your problem, but whenever I think of incorporating multi-phase activities my initial idea is to break the motion up and constrain the initial states of the 'second phase' to the final states of the 'initial phase.' This doesn't take into account the fact that the overall movement and movement within phases could be impacted by the other phase - but rather considers them two separate problems. Nonetheless this is the best I could think of within the current framework Moco offers.

Aaron

Re: Multi Phase Motion

Posted: Fri Jun 11, 2021 10:47 am
by nbianco
Hi Vinay,

Adding multi-phase problem support to Moco is a complicated development task that would affect most of Moco's internals down to each OCP solver. It's not something I could easily summarize in a post here.

If this is something you are seriously interested in implementing, then ideally would make other smaller additions to Moco first to familiarize yourself with the codebase (this advice applies to any large development task in Moco, for any others reading this post). Even then, me or one of the other OpenSim developers would be heavily involved in making this change.

We eventually would like to add multi-phase support, but for now I think Aaron's advice is the way to go.

Best,
Nick