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]) _______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user |
the methods are called subscribeContext rather than subscribe_context and addSubscriptionFilterFieldOfVision rather than add_filter_field_vision I can confirm that the fieldOfVision filter is used with an opening angle in degrees and that it affects the context subscription results in our tests as expected. If you can provide a minimal reproducable example of invalid filter results I will take a look. Am Fr., 8. Jan. 2021 um 00:13 Uhr schrieb Yasmina Jaafra <[hidden email]>:
_______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user |
Hello Jakob Thank
you for the reply. I’m using the right methods.
traci.subscribeContext(str(rl_id), tc.CMD_GET_VEHICLE_VARIABLE , 50, [tc.VAR_SPEED, tc.VAR_POSITION]) traci.addSubscriptionFilterFieldOfVision(10) print(self.k.vehicle.getContextSubscriptionResults(str(rl_id)) Below
an invalid example, rl_id is the red car (rl_0):
In both cases (with or without addSubscriptionFilterFieldOfVision(10) function) I have the same result:
Shouldn’t sumo at least ignore the exo vehicles behind the ego ? Le ven. 8 janv. 2021 à 09:31, Jakob Erdmann <[hidden email]> a écrit :
_______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user |
Hello, Best regards, Le dim. 10 janv. 2021 à 22:36, Yasmina Jaafra <[hidden email]> a écrit :
_______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user |
Free forum by Nabble | Edit this page |