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

frenet_optimal_trajectory_planner error #282

Open
zxkic opened this issue Oct 31, 2022 · 1 comment
Open

frenet_optimal_trajectory_planner error #282

zxkic opened this issue Oct 31, 2022 · 1 comment

Comments

@zxkic
Copy link

zxkic commented Oct 31, 2022

Hello! It's me again. I tried the pylot on a new PC. I can run the RRS planner well while the frenet_optimal_trajectory cannot run. It shows no free pointer() and double free(). I check the code and found that the error occurs in the FrenetOptimalTrajectory.cpp. It exits in line 30 due to not enough waypoints, so the pointer called csp don't create but it deletes in line 69(in the function called "~FrentOptimalTrajectory()"). Then, I check the waypoints and found the waypoints in line 120 of fot_planner.py. I inserted some code to print the waypoints. As a result, the length of the waypoint is only one. So, I skip the exit code in FrenetOptimalTrajectory.cpp, then the fot planner runs well.

e8bb2890f078c9e5606b6b40840b301

@pschafhalter
Copy link
Member

Hi, thanks for the report!

Looks like the Frenet implementation might need some extra code to handle the early exit when there's not enough waypoints. The planner is hosted at erdos-project/frenet_optimal_trajectory_planner. If you'd like to contribute your fix, I'd be happy to help you with the PR.

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