-
Notifications
You must be signed in to change notification settings - Fork 20
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
[WIP] Added Ackermann & van den Bogert 2010 example. #29
base: master
Are you sure you want to change the base?
Conversation
I updated gait2d to work with modern dependencies here: csu-hmc/gait2d#3 |
I'm currently getting a Derivative term that cause failure:
If I call If one of the equations is |
Here are some of the sub expressions showing up in the Jacobian:
These are from taking the derivative of the contact force and it seems that assumptions may not be working as I expected. There shouldn't' be real and imaginary parts. This could have changed with a new sympy and the derivative 10 years ago gave a different result. |
When the discrete variables are replaced in, they likely don't retain the assumptions placed on the continuous variables. |
In my (primitive, compared to this one) examples abs(..), sign(..), heaviside, peicewise(..) mostly caused trouble, the error often was that "jacobian must not contain infs or NaN" or similar. Probably unrelated to this issue. |
This could also be an effect of the new Jacobian function that does cse before taking the Jacobian. Each of the z variables will not retain the correct assumption that is tied to what it is replacing, thus the im() and re() may appear. |
This is the issue! |
Fix here: #216 |
Glad I did not tackle this! I would have taken me 100 years to find out! :-) |
First solution that converged! first-walk.mp4 |
So you were right when you said you did not have the time to fix it in the last decade. When you did have the time you fixed it in two hours!😊😊 |
TODO:
qax(duration) - speed*duration
which would impose a displacement, I don't think instance constraints support h in the expression