-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
question about the optimization result of rabbit example in FROST #38
Comments
There could be a few cases this result happens:
|
Ayonga, thanks so much for your reply! I thought for an orbit planning problem, every one will assume
|
I think the hybrid invariance constraint is enforced in |
@ayonga |
You did not correctly reformat the Bezier coefficient, you should use reshape(params{1}.atime,4,6), which will give you |
Thank you so much! That is simply awesome! I think we can close this case for now.. Orz |
Hi, I have one problem about the optimization results about rabbit example in FROST. In
RightStance.m
, I changetau = (t-p(2))/(p(1)-p(2));
intotau = (x('BasePosX')-p(2))/(p(1)-p(2));
and I also change theTimeBased
phase-type intoStateBased
phase type.The optimization runs just fine.
When I look into the result, I found something weird.
I assume the optimized Bezier curve coefficient is stored in
params.atime
of[tspan, states, inputs, params] = exportSolution(nlp, sol);
Based on what I've learned, the first coefficient of Bezier curve should equal to the initial corresponding state of the optimized orbit. the coefficient of Bezier curve should equal to the last corresponding state of the optimized orbit. But it's not the case in the optimization result.Here is the coefficient of the 4 5th-order Bezier curves (24 numbers in the param.atime, not sure what does atime mean)
2.71618571692464 0.515515095636679 2.71705785916497 1.02499554796246 2.86538716761488 0.468324521468795
2.48324948627866 1.15124079095115 2.98496637234353 0.499653975816616 2.24823964188322 0.897687575012935
3.03613034792144 0.646974647833675 2.42657908023512 0.0167244308523125 3.10412530275568 0.801064202668094
3.27017750951884 -0.147216276707749 2.74238646146068 3.79910980485377 1.35969708221527 -0.260488859460432
And there is the first column of
states.x
0.160669780340591 0.741546376010217 0.146173027697750 2.45916544725954 0.645968711581861 2.95613077740528 0.597108636820039
As you can see, the first coefficient of each Bezier curve is not equal to x4-x7.
My question is:
what does the results of optimization mean?
where can I find the value of
p
intau = (t-p(2))/(p(1)-p(2));
, I supposep
is also being optimized?has there any one used FROST to optimize planar multi-domain walking?
The text was updated successfully, but these errors were encountered: