Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] check the state that vehicle moves into junction

Hello,
I'm not sure I've understood your question.
- there is no traci function to compute in advance whether a vehicle will move onto a junction in the next step. The decision whether the vehicle will drive or stop is determined after the traci commands are handled. It depends on many factors (i.e. http://sumo.dlr.de/wiki/Simulation/Intersections#Junction_Blocking)
- the state of the next traffic light can be retrieved via TraCI using traci.vehicle.getNextTLS
- you can use the distance and traffic light state along with the current vehicle speed to determine whether it would be possible and permitted to drive onto the intersection
regards,
Jakob


2017-11-30 16:17 GMT+01:00 杜 伟强 <ishadowprince@xxxxxxxxxxx>:

hello every one 

 

is there any way that i can check the state that vehicle will move into junction in next step

 

thanks :)

 

发送自 Windows 10 邮件应用

 


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



Back to the top