Skip to main content

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


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 




Back to the top