Hi,
I am currently working on a WholeBody MPC for bipedal walking and I want to use different ‘model fidelities’ over the prediction horizon. I guess the multi-phase OCP is the correct acados-‘feature’ for this.
I understand that I am able to map the ‘last state’ N of phase k to the first state 0 of phase k+1 via a discrete dynamics function x_{k+1,0} = f(x_{k, N}). (Please correct me, if I am wrong!).
I had a look into the paper and the examples but wasn’t able to clarify my following questions regarding parametric multi-phase OCPs (maybe I oversaw something, so feel free to just point me to the right ressources):
- Do I have in the transition dynamics function acces to the parameters
p(of stage N in phase k) and the parametersp_globalof phase k ? - Is it possible to map from the last state of the preivous phase to the
p_globalorpof the following stage; or is there a way to get acces to parts of the state from the last state of the previous phase in the current phase without the need to carry them in the state vectorx.
Thanks for your help!
Best,
Franek