Skip to content
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

about the constraint functions #25

Open
MrBrood opened this issue Dec 25, 2023 · 3 comments
Open

about the constraint functions #25

MrBrood opened this issue Dec 25, 2023 · 3 comments

Comments

@MrBrood
Copy link

MrBrood commented Dec 25, 2023

Hi, first of all I want to thank you for this great code. Though there are some code I don't understand. For example, the constraint function in your TensionSmoother, why the lower bound and upper bound is the same value?
image

@LiJiangnanBit
Copy link
Owner

the constraint is actually:
x_i = x_ref_i + d_i * cos(theta_ref);
-->
x_i - cos(theta_ref) * di = x_ref_i

the lower and upper bounds being the same means that it's an equality constraint.

@MrBrood
Copy link
Author

MrBrood commented Jan 25, 2024

I have another question when understanding your code, do you assum that the value theta_ref keeps unchanged while optimization? in the constraint methioned above, the theta value seems to be pre-calculated and will not be updated while optimization

@LiJiangnanBit
Copy link
Owner

theta_ref is the angle from the unsmoothed reference line, so it's just a constant value instead of a variable to be optimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants