Hello,
I'm experiencing an interesting behavior when calculating a route that should contain a junction and when navigating over it using moveToXY().
First, I'm building a route for the remote-controlled vehicle by calling libsumo::Simulation::convertRoad() on the current and target positions.
Then I feed these two edge ids to libsumo::Simulation::findRoute() to get a route. The start route and end route are two straight lines, connected with a simple junction. I'm observing that the generated route only has 2 edges, the current and target edge,
but the edge in the junction is not included in the route.
Now if I start the simulation and I move my remote-controlled vehicle by calling the moveToXY() function the vehicle is correctly
positioned. I'm querying the edge id on each step and it correctly reports the starting, in-junction, and target edges as it moves over them.
However, while being in the junction, and being on the edge id which belongs to the junction (which isn't part of the route), the
vehicle seems to be invisible to other participants controlled by SUMO, and they simply drive through it. Once the remote-controlled vehicle is out of the junction, all other vehicles are correctly slow down around it not to collide. I
read that the in-junction collisions are expected if the remote-controlled vehicle doesn't have a route continuing after the end of the junction, but here it is not the case.
Originally I used version 1.6.0 but upgraded to 1.7.0 and I'm experiencing the same behavior.
Any help is appreciated.
Thank you,
Andras
This e-mail and any files transmitted with it contain confidential and may contain privileged information. If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and delete this e-mail. Any unauthorized use, copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
_______________________________________________