Hi Dev Team,
I've been trying to subscribe to pedestrians within a radius of my injected
ego vehicle, but was always getting zero people.

This works for subscribing to vehicles:
        simulation.subscribeContext(CMD_SUBSCRIBE_VEHICLE_CONTEXT, mEgoId,
0, 999999999, CMD_GET_VEHICLE_VARIABLE, egoRadius, varsTraffic);

But this does not work for pedestrians:
        simulation.subscribeContext(CMD_SUBSCRIBE_VEHICLE_CONTEXT, mEgoId,
0, 999999999, CMD_GET_PERSON_VARIABLE, egoRadius, varsPeople);

I'm getting a subscription message returned OK but always no pedestrians
despite running them over.

I think I've traced the problem down to
TraCIServer.cpp collectObjectsInRange does not have a case statement
for CMD_GET_PERSON_VARIABLE. To implement it, do we then
need TraCIServerAPI_Person::getTree();

I've not looked at how difficult that is to implement yet. Assuming I've
gone about this the correct way, does anyone have time to implement this at
the moment please?

Also traci appears to be broken in the current trunk r25176 due to r24483
adding code to initialiseSubscription. You get a safeRead exception. This
may be expected?  so I went back to 0.30.

Cheers,
Erik



-- 
Erik Newton
Model Integration Engineer
rFactor Pro

w: http://www.rfpro.com

This e-mail and any files transmitted with it are private and confidential.
If you have received this email in error please notify the sender
immediately and delete this e-mail from your system. The recipient should
check this email and any attachments for the presence of viruses. rFactor
Pro accepts no liability for any damage caused by any virus transmitted by
this email. rFactor Pro is the trading name of Kangaloosh Limited,
registered in England No. 06427019.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-devel mailing list
sumo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-devel

Reply via email to