[sumo-user] The moto stops after moveToXY

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[sumo-user] The moto stops after moveToXY

謝昀宸
I want to let moto avoid vehicle which parked on the road and this avoidance is in the same lane

Using Traci's moveToXY (traci.vehicle.moveToXY(veh, edge, lane, x, y + 2, angle=tc.INVALID_DOUBLE_VALUE,keepRoute=2) (tried all keepRoute
But after the y-coordinate of moto is shifted, it doesn’t move forward anymore, and it doesn’t move forward together until the car is moving.

How can I  solve this problem?

Many thanks,
Yun

_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Reply | Threaded
Open this post in threaded view
|

Re: [sumo-user] The moto stops after moveToXY

Jakob Erdmann
If wish to overtake on the same lane, you can either
- force the moto past the the car with moveToXY (or moveTo) by changing the longitudinal coordinate along with the lateral coordinate)
- let the vehicle overtake automatically by using the sublane model (https://sumo.dlr.de/docs/Simulation/SublaneModel.html#sublane-model)

regards,
Jakob

Am Mi., 22. Juli 2020 um 13:53 Uhr schrieb 謝昀宸 <[hidden email]>:
I want to let moto avoid vehicle which parked on the road and this avoidance is in the same lane

Using Traci's moveToXY (traci.vehicle.moveToXY(veh, edge, lane, x, y + 2, angle=tc.INVALID_DOUBLE_VALUE,keepRoute=2) (tried all keepRoute
But after the y-coordinate of moto is shifted, it doesn’t move forward anymore, and it doesn’t move forward together until the car is moving.

How can I  solve this problem?

Many thanks,
Yun
_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user