Dear Andres,

Thank you for your response. However, i tried but now have another
challenge. this is the printed result.

awaitingVeh =

    'veh13357'


vehicles =

  Columns 1 through 3

    'veh13345'    'veh13349'    'veh13353'

  Column 4

    'veh13357'

Error using vehicle.subscribeContext
Argument 'vehID' failed validation ischar.

Error in traci.vehicle.subscribeContext (line 34)
p.parse(vehID, domain, dist, varargin{:})

Error in signalizedControl (line 108)

traci.vehicle.subscribeContext(awaitingVeh,constants.CMD_GET_VEHICLE_VARIABLE,20,{constants.VAR_WAITING_TIME});

what could I be doing wrong please?

Thanks you.

Kind Regards.
Babangida



On Fri, Jan 22, 2016 at 12:23 AM, Andres Felipe Acosta Gil <
[email protected]> wrote:

> Dear Babangida:
>
> Our apologies for the late response.
>
> *1. traci.lane.subscribe('YaJn_0',{constants.VAR_WAITING_TIME})*
>
> Thanks for noticing this problem, it has been fixed in the latest
> Traci4Matlab version, available at Github
> https://github.com/pipeacosta/traci4matlab, Matlab Central
> http://www.mathworks.com/matlabcentral/fileexchange/44805-traci4matlab
> and our SVN repository http://gaunal.unalmed.edu.co/svn/traci4matlab/
>
> *2.
> traci.vehicle.subscribeContext(awaitingVeh, constants.VAR_WAITING_TIME,20,
> {'0x40', '0x42','0x43','0x5b','0x51','0x56','0x7a'})*
>
> Vehicle subscribe commands work when the vehicle is loaded in the
> simulation so you have to verify it first. You can achieve a proper context
> subscription, as follows:
>
> vehicles = traci.vehicle.getIDList();
>
> if ismember(awaitingVeh,vehicles)
>
>
> traci.vehicle.subscribeContext(awaitingVeh,constants.CMD_GET_VEHICLE_VARIABLE,20,{constants.VAR_WAITING_TIME});
>
> end
>
> *3. traci.vehicle.getUniversal(constants.VAR_WAITING_TIME,awaitingVeh)*
>
> getUniversal functions are not meant to be used by end users.
>
> Best Regards!
>
>
> Message: 2
>> Date: Wed, 20 Jan 2016 16:02:01 +0800
>> From: BABANGIDA ZACHARIAH <[email protected]>
>> Subject: [sumo-user] Traci4Matlab Waiting Time of Vehicles
>> To: [email protected]
>> Cc: sumo-user <[email protected]>
>> Message-ID:
>>         <CAP7bCf0=-
>> [email protected]>
>> Content-Type: text/plain; charset=UTF-8
>>
>>
>> Hi,
>>
>> Please, how can I from traci4matlab get the waiting time of vehicles at an
>> intersection?
>>
>> I tried :
>>
>> traci.lane.subscribe('YaJn_0',{constants.VAR_WAITING_TIME})
>>
>> traci.vehicle.subscribeContext(awaitingVeh,constants.VAR_WAITING_TIME,20,
>> {'0x40', '0x42','0x43','0x5b','0x51','0x56','0x7a'})
>>
>>
>> traci.vehicle.getUniversal(constants.VAR_WAITING_TIME,awaitingVeh)
>>
>> for all, I got errors.
>>
>> Please, I need help
>>
>> Thank you.
>>
>> Kind Regards,
>>
>> Babangida Zachariah
>>
>
> --
> Andres Felipe Acosta Gil, MSc student - Software developer
> Universidad Nacional de Colombia - MedellĂ­n
> Facultad de Minas
> Tel: +57 (4) 4255295
> Institutional e-mail: [email protected]
>
>
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to