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] 
<mailto:[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] <mailto:[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

Reply via email to