Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] setStop

Hello,
to let the vehicle stop either
- send the stop command earlier
- slow down the vehicle earlier
- send a bigger pos value

The startPos value is explained at https://sumo.dlr.de/docs/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#startpos_and_endpos

Am Do., 16. Jan. 2020 um 04:36 Uhr schrieb wangwenxuan <wangwenxuan@xxxxxxxxxxxxx>:

Hello,
     I use the SUMO version 1.4.0.  I tried to set the vehicle stop at 161s at the position, but it showed the wrong information.
Here's my code:
while step <200:
traci.simulationStep()
#time.sleep(1)
step += 1
while step==161:
traci.vehicle.setStop(vehID='Type5.3',edgeID='gneE0',laneIndex=0,pos=437.39,duration=20,flags=0,startPos=50)

traci.close()

Here’s the error information:
Error: Answered with error to command 0xc4: stop for vehicle 'Type5.3' on lane 'gneE0_0' is too close to break.
Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
Quitting (on error).

In addition, I don’t know the parameter starPos means. I have defined the pos. I don’t know the difference between these two parameters.

Thank you very much!

Best Regards!

Wenxuan Wang 



_______________________________________________
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