Hello, the ssm device currently does not expose the conflict-related vehicles. Hower you could use
addSubscriptionFilterFieldOfVision to get all vehicles within a given range and angle or addSubscriptionFilterTurn which returns foe vehicles on and approaching upcoming junctions along the route of the ego vehicle. regards, Jakob Am Di., 8. Dez. 2020 um 14:03 Uhr schrieb Hriday Sanghvi <[email protected]>: > Hello, > > I am a 2nd year PhD student at Trinity College Dublin, but I am new here. > > I am trying to set a range on vehicles such that they detect the > presence of any vehicle "X" metres in front of them. I am currently using a > context subscription on each vehicle with a LaneFilter applied, setting > downstreamDist to a value. ( > https://sumo.dlr.de/daily/pydoc/traci._vehicle.html#VehicleDomain-addSubscriptionFilterLanes > ). However, this does not seem to detect the vehicles "X" metres in a > radial distance ( > https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html#context_subscription_filters > ) in the case where the vehicles meet each other at the intersection at a > perpendicular angle. > > It seems that using an SSM device would be ideal in this case, since it > lists out all the information I might require ( > https://sumo.dlr.de/docs/Simulation/Output/SSM_Device.html#encounter_types > ). I am not able to figure out how to get this information dynamically > though. Please advise. > > Thank you. > Sincerely, > Hriday > _______________________________________________ > sumo-user mailing list > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
