Hello,
take a look at netconvert_main.cpp. You can copy the code for importing the
network from there. Once the network is imported you can call
NBEdgeCont::retrieveEdge(yourID).getSpeed()
I'm afraid I cannot give you much more support in this. You'll have to
figure out all the necessary compile- and link-dependencies yourself.
Alternatively you might call a python script which uses sumolib from C++
using a sytem command and then parse the output.
regards,
Jakob




2013/11/20 Wilmer Arellano <[email protected]>

> (Sorry the first time I didn't copy the group)
>
> Thank you Jakob,
>
> Using C++ Veins I am able to get the lane ID by means of a TraCI call.
> Could you please help on how to use netimport and netbuild to get the lane
> max speed without calling TraCI again?
>
> Best Regards,
>
> Wilmer
>
>
> On Wed, Nov 20, 2013 at 2:29 AM, Jakob Erdmann <[email protected]
> > wrote:
>
>> Hello,
>> I supposed you could use the netimport and netbuild libraries. They can
>> (among many other things) read a sumo network and put it into a
>> datastructure for you.
>> regards,
>> Jakob
>>
>>
>> 2013/11/20 Wilmer Arellano <[email protected]>
>>
>>> Hello,
>>>
>>> Is there a similar module in C++?
>>>
>>> Thank you,
>>>
>>> Wilmer
>>>
>>>
>>> On Tue, Nov 19, 2013 at 2:55 AM, Jakob Erdmann <
>>> [email protected]> wrote:
>>>
>>>> Hello,
>>>> this kind of static information can be access without using TraCI. Use
>>>> the
>>>> sumolib.net module to retrieve this information directly from the
>>>> network
>>>> file.
>>>> see http://sumo-sim.org/wiki/Tools/Sumolib
>>>> regards,
>>>> Jakob
>>>>
>>>>
>>>> 2013/11/18 Tobias Wessels <[email protected]>
>>>>
>>>> > Hello,
>>>> >
>>>> > I'm trying to get the *number of lanes *of a given edge via TraCI.
>>>> > According to the documentation
>>>> > http://sumo-sim.org/userdoc/TraCI/Edge_Value_Retrieval.html
>>>> > there's no query for that.
>>>> >
>>>> > Is there a way to do this?
>>>> >
>>>> >
>>>> > Best regards,
>>>> > Tobias Wessels
>>>> >
>>>> >
>>>> ------------------------------------------------------------------------------
>>>> > Shape the Mobile Experience: Free Subscription
>>>> > Software experts and developers: Be at the forefront of tech
>>>> innovation.
>>>> > Intel(R) Software Adrenaline delivers strategic insight and
>>>> game-changing
>>>> > conversations that shape the rapidly evolving mobile landscape. Sign
>>>> up
>>>> > now.
>>>> >
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
>>>> > _______________________________________________
>>>> > sumo-user mailing list
>>>> > [email protected]
>>>> > https://lists.sourceforge.net/lists/listinfo/sumo-user
>>>> >
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Shape the Mobile Experience: Free Subscription
>>>> Software experts and developers: Be at the forefront of tech innovation.
>>>> Intel(R) Software Adrenaline delivers strategic insight and
>>>> game-changing
>>>> conversations that shape the rapidly evolving mobile landscape. Sign up
>>>> now.
>>>>
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> sumo-user mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/sumo-user
>>>>
>>>
>>>
>>
>
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to