Hello, issue 1) has been fixed in the latest development version (It was actually working as documented but not very useful at that) see the updated documentation at http://sumo.dlr.de/wiki/TraCI/Vehicle_Signalling
issue 2) comes from the fact that insertions are the last part of a simulation step. So the vehicle is inserted in one step and the stopping code comes only in the subsequent step. To avoid this delay you can force the vehicle into the network immediately by sending a vehicle.moveTo() command directly after adding. regards, Jakob 2017-01-22 10:48 GMT+01:00 Mani Amoozadeh <[email protected]>: > Ok, I have two new issues: > > > > *Scenario 1:* After connecting to TraCI: > > - I add a vehicle. > > - set its speed to zero (to make it not move) > > - set signal status to 0 (to turn off all signals) > > > > When the simulation starts (first time step), I can still see that the > breaking lights are on. > > Setting the signal status to zero is supposed to turn all signals off. > Right? > > > > *Scenario 2:* After connecting to TraCI: > > - I add a vehicle. > > - set its speed to zero (to make it not move) > > - make it stop where it is with parking flag set. > > > > When the simulation starts (first time step), I can still see the vehicle > on the road. > > In the next simulation time step, the vehicle goes to parking mode. > > So it takes 1 simulation time step to react. > > How can I insert the vehicle + set it to parking mode at the same time. > > > > Thanks! > > > > - Mani > > > > > > *From:* Jakob Erdmann [mailto:[email protected]] > *Sent:* Friday, January 20, 2017 12:18 AM > *To:* Mani Amoozadeh <[email protected]> > *Cc:* sumo-user <[email protected]> > *Subject:* Re: [sumo-user] Insert a vehicle in parking status > > > > see http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#stop_.280x12.29. > Parking is one of the options. The python client defines the constant > traci.vehicle.STOP_PARKING for this purpose > > regards, > > Jakob > > > > 2017-01-20 3:22 GMT+01:00 Mani Amoozadeh <[email protected]>: > > Hello, > > > > Using TraCI, how can I insert a vehicle in parking mode? > > > > > > - Mani > > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > sumo-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sumo-user > > > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
