Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Adding a stopped vehicle outside the network and setting a route

Thanks for the sample input. The crash is now fixed (https://github.com/eclipse/sumo/issues/5415)
regards,
Jakob

Am Di., 2. Apr. 2019 um 23:00 Uhr schrieb shawnaustin <shawnaustin685@xxxxxxxxx>:
Jakob,
Sorry for the late reply. Thanks again! After testing with latest version
from github I can confirm that the issue is resolved.

While testing I did encounter another issue. Looks like if I call moveToXY
after adding the vehicle with a position that is on an internal edge (e.g.
junction), Sumo crashes after some simulation steps.

Minimal code to reproduce:

traci.vehicle.add(vehID=vehicle_id, routeID="", typeID="veh_passenger")
for i in range(0,500):
    traci.vehicle.moveToXY(vehicle_id, "", 0, initial_x, initial_y,
keepRoute=0) # same with keepRoute=2
    traci.simulationStep()

This code crashes with the network I sent earlier
(https://we.tl/t-mr6dGuxtPi), with the initial position 4101.24,352.85 . The
crash occurs at step 60.

As a workaround I am first calling moveTo once with the nearest road
position (same code from below), and then call moveToXY every step with the
initial position.

Thank you,
Shawn



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top