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

Caculate the tangle vec of trace #19

Open
HandsomeDragon3 opened this issue Jun 24, 2020 · 1 comment
Open

Caculate the tangle vec of trace #19

HandsomeDragon3 opened this issue Jun 24, 2020 · 1 comment

Comments

@HandsomeDragon3
Copy link

Is it a mistake that s0 is used rather than s?
Can you explain it simply, thank you ~ @fangedward ~
// normal spline vector
double x0 = csp->calc_x(s0);
double y0 = csp->calc_y(s0);
double x1 = csp->calc_x(s0 + 2);
double y1 = csp->calc_y(s0 + 2);

@fangedward
Copy link
Contributor

No, s0 is the current longitudinal position of the ego vehicle along the spline. Here we are calculating the normal vector at the current longitudinal position.

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