-
Notifications
You must be signed in to change notification settings - Fork 19
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
Terminal cost necessary in TrajOptProblem? #44
Comments
Good question ! We just ended up aping Crocoddyl's design pattern, where an In practice, even with this design pattern, one can use a sum of costs ( Another option would be to have the pointer to the terminal cost be |
From a user's perspective this would make sense to me. Whether it's implemented internally as a |
Yes, although having optionals seems to have introduced some overhead due to the way On our side, |
We indeed use both std::optional or tl::optional (via optional which checks whether or not std::optional is available, from C++ 17). Actually, it is Pybind11 overloading which causes non negligible overhead and not specifically optional implementation. Optional feature does not introduce much overhead. |
Hello from the future Eigenpy now supports std::optional and aligator is now C++17. So we can envision doing something with optional terminal costs. PR #159 will remove storing model classes as |
Why is the terminal cost necessary in a
TrajOptProblem
, while terminal constraints are optional?In e.g. this MPC for bipedal walking there are terminal constraints but no terminal cost.
The text was updated successfully, but these errors were encountered: