1. Thanks for pointing out this bug. It is fixed in the latest development
version
2. there is no direct way to do so. You can easily computed this by using
getCurrentTime(), simulationStep(), getCurrentTime() and subtracting the
times.
3. vehicle.setShapeClass() (in the latest development version)
4. There is still no method to do so. The accepted workaround is to try a
gui command and possibly catch the exception
5. see http://sumo.dlr.de/trac.wsgi/ticket/2524

regards,
Jakob

2017-01-17 11:16 GMT+01:00 Wasim Ahmed <[email protected]>:

> Answer for question no 2
> You can get it from getCurrentTime() function in SimulationsScope class.
> You can find it in TraCIAPI.h
> Thanks
>
> Sent from Yahoo Mail on Android
>
>   On Tue, 17 Jan 2017 at 1:12 pm, Mani Amoozadeh<[email protected]>
> wrote:   Hi,
>
>
>
> I have a couple of questions, mostly about TraCI.
>
> Sorry if the question list is too long.
>
>
>
> 1. when I change the vehicle length through TraCI, it seems that the length
> is applied to the vehicle, but sumo-gui does not update the shape. I am
> expecting to see a longer vehicle in the sumo-gui. Is this expected?
>
>
>
> 2. How can I get the simulation time step through TraCI?
>
>
>
> 3. How can I change the shape of a vehicle through TraCI?
>
>
>
> 4. Is there a way to check if the simulation is running in cmd or gui mode
> in the newest version of SUMO?
>
> I remember I asked this question 3 years ago :) and you opened a ticket
> here:
>
>
>
> http://www.sumo.dlr.de/trac.wsgi/ticket/1085
>
>
>
> 5. I noticed that the flow tag gets 'from' and 'to' and 'via'.
>
> Through TraCI, how can I get the shortest route from an edge to an edge
> (with/without 'via')?
>
>
>
> Thanks!
>
>
>
> And sorry again if I asked too many questions.
>
>
>
>
>
> - Mani
>
> ------------------------------------------------------------
> ------------------
> 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
>
> ------------------------------------------------------------
> ------------------
> 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
>
------------------------------------------------------------------------------
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