Currently, only a circle is available and you have to perform additional filtering yourself. Other filtering options are being implemented and will be made available in a future release.
2018-09-17 8:40 GMT+02:00 <christian.damdjow...@zf.com>: > Thank you very much Jakob, > > > > Another think. > > It’s just a circle implemented in the subscriptions-functionalities? > > I mean, I give the parameter radius. But I want to know if we can use > another metric to get the id of traffic surrounding the EGO-car. Maybe an > ellipsoid or another function which take more Information along the street, > as across the street. > > Because by using the circle the distance along and across the street would > be equal. And for some UseCase it’s not good. > > > > Br > > > > Christian > > > > *Von:* sumo-user-boun...@eclipse.org [mailto:sumo-user-boun...@eclipse.org] > *Im Auftrag von *Jakob Erdmann > *Gesendet:* Montag, 17. September 2018 08:30 > *An:* Sumo project User discussions > *Betreff:* Re: [sumo-user] question about about the subscription with the > traci.constant DISTANCE_REQUEST > > > > Hello, > > you need to do this in two steps because subscriptions are not supported > for functions that require additional arguments. > > regards, > > Jakob > > > > 2018-09-17 8:24 GMT+02:00 <christian.damdjow...@zf.com>: > > Hello sumo people, Hello Jakob, > > > > I have a question about the subscription, of the traci.constant > “DISTANCE_REQUEST”. I want to take the distance between Ego and every > traffic around the EGO-Vehicle. I tried to do that in one step using > “SubcribeContext”. > > Here is the command that I used: “traci.vehicle.subscribeContext(‘EGO’, > tc.CMD_GET_SIM_VARIABLE, 42, [tc.DISTANCE_REQUEST])” > > But I think that the constant “DISTANCE_REQUEST”, need to have two > parameter. The vehicles-ids of the two cars. In order to get the distance > between this two vehicles. I think it’s why I’m getting “None” as Output of > this assertion. > > My question is to know it’s someway to get this relative distance of > traffic around the ego vehicle to the ego vehicle itself in one step? Or > should I do that in two steps: > > *The first* one gets the vehicle Id around the ego vehicle > > *The second* one use the function getdistance2d (ego,traffic), to have > the distance between Ego the surrounding vehicle. > > > > > > Br > > > > Christian > > > _______________________________________________ > sumo-user mailing list > sumo-user@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/sumo-user > > > > _______________________________________________ > sumo-user mailing list > sumo-user@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://dev.eclipse.org/mailman/listinfo/sumo-user > >
_______________________________________________ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user