Hi Jakob , I'm sorry, but is there any way I could retrieve this data.
Regards, Surya Soman On Thu, May 17, 2018 at 3:02 PM, Surya Soman <[email protected]> wrote: > Thank you Jakob! > > On Thu, May 17, 2018, 2:17 PM Jakob Erdmann <[email protected]> wrote: > >> This is a bug: the ego vehicle is always returned ( >> https://github.com/eclipse/sumo/issues/4088) >> When there are more vehicles around, they will be returned as well. >> >> regards, >> Jakob >> >> 2018-05-15 13:06 GMT+02:00 Surya Soman <[email protected]>: >> >>> Thank you Jakob! The code is working now. >>> >>> But unfortunately the vehicle speed and position I'm getting at each >>> step is the ego vehicle's speed and position were I wanted to retrieve the >>> speed and position of the vehicles around my ego vehicle. >>> >>> Could you help me with this. Thanks in advance! >>> >>> Regards, >>> Surya Soman >>> >>> >>> On Mon, May 14, 2018 at 8:50 AM, Jakob Erdmann <[email protected]> >>> wrote: >>> >>>> try using curly brackets vor varIDs: >>>> {traci.constants.VAR_SPEED,traci.constants.VAR_POSITION} >>>> >>>> 2018-05-11 10:16 GMT+02:00 Surya Soman <[email protected]>: >>>> >>>>> Hi , >>>>> >>>>> I'm a new user of SUMO. As a part of my research, I was trying a code >>>>> to access the speed and position of the vehicles around my ego >>>>> vehicle using Traci vehicle contextsubscription command. Given below >>>>> is the command I used:- >>>>> >>>>> traci.vehicle.subscribeContext('2567#6',... >>>>> traci.constants.CMD_GET_VEHICLE_VARIABLE, 20,... >>>>> [traci.constants.VAR_SPEED,traci.constants.VAR_POSITION]); >>>>> >>>>> >>>>> It is giving an error :- >>>>> >>>>> Error using vehicle.subscribeContext >>>>> The value of 'varIDs' is invalid. It must satisfy the function: iscell. >>>>> >>>>> Error in traci.vehicle.subscribeContext (line 34) >>>>> p.parse(vehID, domain, dist, varargin{:}) >>>>> >>>>> Error in vehicleconsub (line 58) >>>>> traci.vehicle.subscribeContext('2567#6',... >>>>> >>>>> >>>>> Could anyone help me with this. Thanks in advance ! >>>>> >>>>> >>>>> Regards, >>>>> Surya >>>>> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> sumo-user mailing list >>>>> [email protected] >>>>> 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 >>>> [email protected] >>>> 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 >>> [email protected] >>> 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 >> [email protected] >> 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 [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
