-
Notifications
You must be signed in to change notification settings - Fork 87
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
Error when adding connection between the roads in junction scenario #258
Comments
Hi @Y-1huadb, it is not clear to me what you are trying to do. Can you please provide some picture or further description. jc.add_connection(1, 4, [-1, 1], [1, -1])
jc.add_connection(1, 4, [-2, 2], [2, -2]) but if this is the intention there is really no need to use a junction at all, see documentation Introduction to junctions |
Thank you for the suggestion. But we want to create a junction which has a connection between each lane of three roads so that vehicles could change lanes while turning. And it seems vehicles could not change lanes if we directly use However, this sometimes results in strange maps where some connecting roads are not properly connected to the outgoing roads. We use The different betweent those two results is we add the road with two right lanes into |
Here is the defination of the roads.
The following is the order we add those roads into
The result will change if we define it in a different order.
|
We are trying to use scenario generation to automatically generate junctions based on the road configuration. However, we discover that even directly use
add_connection
in thexodr.CommonJunctionCreator
will cause the generated map faulty.The test code is as follows;
But the result we get from this is as follows:
The
add_connection
is even more inaccurate if the incoming roads are more. The vehicles traversing the path will sometimes have strange behaviors. We are usingscenariogeneration
version0.14.9
. Hope to get feedback on this problem.The text was updated successfully, but these errors were encountered: