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

Question about a constant in the ParkPathPlanning.generate_park_scenario() #9

Open
LIN-DN opened this issue Feb 23, 2024 · 1 comment

Comments

@LIN-DN
Copy link

LIN-DN commented Feb 23, 2024

computed_angle = angle_of_line(path[-10][0],path[-10][1],path[-1][0],path[-1][1])
In this line of code, why choose the tenth point from the bottom to calculate the Angle, and why not some other point? Can the value of "10" be changed? What is the basis for the modification?

@amirhosseinh77
Copy link
Member

Hi

The 10 is a hyperparameter related to the overall length of the path to represent the angle.
With the last 10 points, we get an angle of the path entering the parking spot.
you can change the 10 value as long as it works but it should be the last points of the path.

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