Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Pedestrain crossing IDs, Pedestrian XY coordinates information using TraCI

After subscribing, you need to perform another simulation step to receive subscription results.

Am Mi., 11. Dez. 2019 um 13:45 Uhr schrieb Mohsin Memon <mohsin.ldce@xxxxxxxxx>:
Hi Jakob,

I want to use context subscription to get all pedestrians around the vehicle
in a radius. I tried the following code but unfortunately I am not getting
any pedestrians values in subscription results.

I have already added one crossing into the sumo network and generated random
pedestrians using randomtrips.py. What changes should I make in my code in
order to detect pedestrians in font of my ego vehicle.

Here is my matlab code below:


vehID = '1060';
traci.simulationStep()
traci.vehicle.subscribeContext(vehID,traci.constants.CMD_GET_PERSON_VARIABLE,100
{traci.constants.VAR_LANEPOSITION,traci.constants.VAR_SPEED});
M = traci.vehicle.getContextSubscriptionResults(vehID);
key = keys(M);

I would be very much grateful if you please let me know the correct
procedure to get all the pedestrians around my ego vehicle or in front of my
ego vehicle in a radius.


Thanks and regards,
Mohammed Mohsin Memon






--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top