Thank you very much,

I upgraded these methods to their current versions, and they seem to be 
working correct now.

Kind regards,
Maksat


On 11.05.2017 09:36, Jakob Erdmann wrote:
> Hello,
> there was a bug in the implementation of these methods that was fixed 
> in version 0.29.0.
> I recommend upgrading to the latest version (0.30.0).
> regards,
> Jakob
>
> 2017-05-10 8:49 GMT+02:00 Maksat Atagoziev <[email protected] 
> <mailto:[email protected]>>:
>
>     Hi, friends
>     I am using SUMO 0.26.I am trying to use TraCI for Traffic Light
>     Control.For now I am calling the functions defined in TraCIAPI.h
>     in the following manner:
>         std::vector<TraCIAPI::TraCILink> controlledLinks =
>     client.trafficlights.getControlledLinks( trafficLights[i] )
>         std::vector<TraCIAPI::TraCILogic> logic =
>     client.trafficlights.getCompleteRedYellowGreenDefinition(
>     trafficLights[i] );
>
>     where trafficLights is the list of TL IDs.
>     But, always get the next message:
>         terminate called after throwing an instance of
>     'std::invalid_argument'      what():  tcpip::Storage::readIsSafe:
>     want to read 9472012 bytes from Storage, but only 298
>     remaining    Aborted
>     It is ok if I call functions returning list of strings (e.g.
>     std::vector<std::string> controlledLanes =
>     client.trafficlights.getControlledLanes(trafficLights[i]);).
>     Can anyone help with this problem.Am I using them in the wrong
>     way?If yes what should the correct way be?
>     Kind regards,Maksat
>
>
>     
> ------------------------------------------------------------------------------
>     Check out the vibrant tech community on one of the world's most
>     engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>     _______________________________________________
>     sumo-user mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/sumo-user
>     <https://lists.sourceforge.net/lists/listinfo/sumo-user>
>
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to