Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Traci's moveToXY cause collision

I want to let moto avoid vehicle parked on the road by a small margin, instead of using the ChangeLane

I recorded the lane position of on-road parking so that the subsequent moto can avoid the on-road parking laterally a few meters ago

Using Traci's moveToXY (traci.vehicle.moveToXY(veh, edge, lane, x, y + 2, angle=tc.INVALID_DOUBLE_VALUE,keepRoute=2), it can be seen in the simulator that moto has avoided, but the next second shows that a collision has occurred

How can I  solve this problem?

Many thanks,
Yun

Back to the top