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 <
[email protected]>:

>
> 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
>
>
> wangwenxuan
> [email protected]
>
> <https://maas.mail.163.com/dashi-web-extend/html/proSignature.html?ftlId=1&name=wangwenxuan&uid=wangwenxuan%40tongji.edu.cn&iconUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyelogo%2FdefaultAvatar.png&items=%5B%22wangwenxuan%40tongji.edu.cn%22%5D&logoUrl=https%3A%2F%2Fmail-online.nosdn.127.net%2Fqiyeicon%2F38276280dee508c6f6bfd066abd8a133.png>
> 签名由 网易邮箱大师 <https://mail.163.com/dashi/dlpro.html?from=mail81> 定制
>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to