Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Question relativ to context subsciptions

Hello everyone

I have a question relative to the context subscriptions of sumo.

I want to use the context subscription to filter every objects around the ego vehicle. But I’m facing the issue that the class person is not handle as a vehicle class. The consequence is that by using vehicle.subscribeContext pedestrian will not be considered. I wanted work around that by using person.subscribeContext(vehID, CMD_GET_VEHICLE_VARIABLE, 10000, vars, 0, 3000); but here the parameter vehID would be PedestrianID, and then in this case, I would take the person around a define PedestrianID. But want I want is to take pedestrian around a defined VehicleID (Ego Vehicle). Can you help me on this part, how can I find here a suitable solution. There is a way to have this information by using context subscription ?

Thank you very much for your help.

 

Best regards

 

Christian Wabo

 


Back to the top