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

Path planning failed —— Node 1 can not reachable from Node 2 #8486

Open
Ji-Zhou opened this issue Dec 18, 2024 · 3 comments
Open

Path planning failed —— Node 1 can not reachable from Node 2 #8486

Ji-Zhou opened this issue Dec 18, 2024 · 3 comments

Comments

@Ji-Zhou
Copy link

Ji-Zhou commented Dec 18, 2024

No description provided.

@Ji-Zhou
Copy link
Author

Ji-Zhou commented Dec 18, 2024

Dear colleagues

I have configured a custom map in Roadrunner. The roads in the custom map are connected by junctions, which have been configured.

And some spawn points were set along the road in UE4 Carla.

—Problem1: But when I plan my path in UE4 Carla, I often face failures—"Node 1 can not reachable from Node 2". It is interesting that sometimes node 1 can reach node 2 but node 2 cannot reach node 1.

Specially, when i run the code—(route = grp.trace_route(origin, destination)). I will get successed result from SpawnPoint26 to 10, but failed from SpawnPoint 10 to 26.
Spawnpoint

—Problem2: Another problem is that when I call traffic_generation.py, some autonomous vehicles seem unable to travel along the road and will cross the terrain between the two roads. As shown:
cannot find road


—Problem3: I have set the starting and ending points that cannot be planned in problem 1 in the automatic_control.py. It seems to have found a route, but still faces the problem 2: intending to cross some infeasible terrain.

Many thanks

@leomilk-eng
Copy link

@Ji-Zhou I know the reason for this problem. The reason why the planning cannot be done is that your road is not closed. The default planning is the A* algorithm, which causes an exception to be thrown when the road cannot be found. If you need a solution, please contact me.

@Ji-Zhou
Copy link
Author

Ji-Zhou commented Jan 16, 2025

@leomilk-eng Thanks for your reply. I also discovered this reason. In fact, the road i need is not closed, and i need to do is to achieve path planning in such a scenario.
When the starting and ending points are on lanes in different directions, the algorithm will fail because the road is not closed , and the default A * algorithm only searches along the specified direction of the road. I want to change this. Do you have any good ideas? I want to allow vehicles to cross roads in different directions while path planning!

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