Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Field of vision filter for context subscription

Hello,

I am using context subscription to limit the ego vehicle perception. The application looks fine and I assume that the defined zone is a circular area which center is the ego and radius is the indicated distance argument. I tried to apply a field of vision filter, unfortunately it’s not working. I indicated different opening angles (from 5 to 180), however, the returned result is always the subscription context initial range. I think that the angle would have delimited an area from the circular zone in front of the vehicle. Could you please confirm and check if I set something wrong in the script below.


traci.vehicle.subscribe_context(str(rl_id),  tc.CMD_GET_VEHICLE_VARIABLE ,  50 , [tc.VAR_SPEED, tc.VAR_POSITION])
traci.vehicle.add_filter_field_vision(40)
print(traci.vehicle.get_context_subscription_results(str(rl_id)))


Regards,

Back to the top