Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] 答复: traci colliding command

Hi,
yes you (and the pydoc) are right (and I was wrong), both vehicles are
in the list but you cannot tell which is the collider and which is the
"victim".

Best regards,
Michael

Am 28.01.2018 um 15:50 schrieb 杜 伟强:
> Thank you so much
> 
> I use an old version ‘s traci
> 
>  
> 
> And
> 
> http://www.sumo.dlr.de/daily/pydoc/traci._simulation.html#SimulationDomain-getCollidingVehiclesNumber
> 
> and
> 
> http://www.sumo.dlr.de/daily/pydoc/traci._simulation.html#SimulationDomain-getCollidingVehiclesIDList
> 
> these tow links describe: typically 2 per collision
> 
> does this conflict with your describtion?
> 
>  
> 
>  
> 
> 发送自Windows 10 版邮件 <https://go.microsoft.com/fwlink/?LinkId=550986>应用
> 
>  
> 
> *发件人: *Michael Behrisch <mailto:oss@xxxxxxxxxxx>
> *发送时间: *2018年1月28日22:16
> *收件人: *Sumo project User discussions <mailto:sumo-user@xxxxxxxxxxx>;
> 杜伟强 <mailto:ishadowprince@xxxxxxxxxxx>
> *主题: *Re: [sumo-user] traci colliding command
> 
>  
> 
> Hi,
> 
> the commands are there,
> 
> https://github.com/DLR-TS/sumo/blob/f19c50d12d4e2db284312886dd507665696a3ebc/tools/traci/_simulation.py#L178
> 
> but they only give summary information not for an individual vehicle
> 
> so you will find out which one collided, because it is in the list, but
> 
> not which other vehicle participated.
> 
>  
> 
> Best regards,
> 
> Michael
> 
>  
> 
> Am 26.01.2018 um 10:34 schrieb 杜 伟强:
> 
>> Hello:
> 
>> 
> 
>>        In http://sumo.dlr.de/wiki/TraCI/Simulation_Value_Retrieval ,
> 
>> there are tow commands about colliding:
> 
>> 
> 
>> getCollidingVehiclesNumber
> 
>> <http://www.sumo.dlr.de/daily/pydoc/traci._simulation.html#SimulationDomain-getCollidingVehiclesNumber>
> 
>> and getCollidingVehiclesIDList
> 
>> <http://www.sumo.dlr.de/daily/pydoc/traci._simulation.html#SimulationDomain-getCollidingVehiclesIDList>
> 
>> 
> 
>>  
> 
>> 
> 
>>        but I can’t find these tow command in traci library and sumo source.
> 
>> 
> 
>>  
> 
>> 
> 
>> So ,why and how can I know that a specific car getting colliding with
> 
>> another one
> 
>> 
> 
>>  
> 
>> 
> 
>> Thank you
> 
>> 
> 
>>  
> 
>> 
> 
>> 发送自Windows 10 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>应用
> 
>> 
> 
>>  
> 
>> 
> 
>> 
> 
>> 
> 
>> _______________________________________________
> 
>> 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
> 
>> 
> 
>  
> 
>  
> 
>  
> 


Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top