Hello,
you can use tools/contributed/sumolib4matlab to retrieve a network
representation that can be queried for all lanes of an edge (and thus also
the number of lanes).
regards,
Jakob

2017-07-18 8:36 GMT+02:00 Dennis Uftring (C) via sumo-user <
[email protected]>:

> Dear SUMO users,
>
> I am currently working on a project that uses SUMO in Matlab via TraCI. I
> am stuck trying to find out how to get the lane IDs of my neighbouring
> lanes.
> To be clear: I have a vehicle on the road. This road could have 1 - 4
> lanes. Any given moment I need to know if there is a lane to my right
> and/or to my left.
> I already had a solution by adding 1 and subtracting 1 from my current
> Lane IDs index and comparing the results to the complete Lane ID list of my
> network.
> But this was way too slow.
> Is there a simpler, faster way to retrieve this information?
>
> Best regards
>
> Dennis Uftring
>
>
> ------------------------------------------------------------
> ------------------
> 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