From: Enrico G. <enr...@gm...> - 2011-10-26 15:06:46
|
The vehicles need a route of at least 2 adjacent edges (the departure one and the arrival one), because a vehicle disappears when it "touches" the last edge. Best regards, Enrico 2011/10/26 Marco G. <asu...@gm...>: > Thank you Enrico. > Just the last question: should I pass to sumo the full route file, with the > full path for each vehicle or just, let's say, the first edge of each > vehicle and then dynamically assign the route? > BR, > Marco > > > > On 10/26/2011 12:16 PM, Enrico Gueli wrote: >> >> Hello Marco, >> with the "Get Lane Variable" command you can read the "links" >> variable, that will tell you which lanes follow a lane. Along with the >> "id list" command, you can build the network topology. AFAIK it's not >> necessary to also work with edges or junctions. >> I think you can obtain the best path between two lanes with the >> "Distance request" command: >> >> http://sourceforge.net/apps/mediawiki/sumo/index.php?title=TraCI/Environment-related_commands#Command_0x72:_Distance_Request >> >> Best regards, >> Enrico >> >> 2011/10/26 Marco G.<asu...@gm...>: >>> >>> Hello Daniel, >>> >>> thanks for the quick response. >>> Yes, I had already found the API I need here >>> >>> http://sourceforge.net/apps/mediawiki/sumo/index.php?title=TraCI/Change_Vehicle_State >>> but I was wondering about how to efficiently gather the map information >>> (edges, junctions and so on) and build a graph starting from that. >>> Should I directly patch SUMO instead of write that code into my OMNeT >>> simulator? >>> Which is the module in SUMO in charge of calculating the best path >>> between two points? >>> Best Regards, >>> Marco >>> >>> On 10/26/2011 08:58 AM, Daniel Krajzewicz wrote: >>>> >>>> Hello Marco, >>>> >>>> You may convert an OSM map using netconvert, see >>>> >>>> http://sourceforge.net/apps/mediawiki/sumo/index.php?title=Networks/Import/OpenStreetMap. >>>> You should keep in mind that you will need some time to make it usable. >>>> >>>> For vehicle routing, you should use TraCI, see: >>>> http://sourceforge.net/apps/mediawiki/sumo/index.php?title=TraCI. It >>>> offers several ways to set edge weights for a vehicle and force a >>>> rerouting. You have to check on which edge the vehicle currently is by >>>> yourself. >>>> >>>> sincerely, >>>> Daniel >>>> >>>> 2011/10/25 Marco G.<asu...@gm... >>>> <mailto:asu...@gm...>> >>>> >>>> Hi, >>>> I'm working on a automotive navigation system like TomTom for >>>> OMNeT++ >>>> using TraCI. >>>> Is there any way for deciding the route of a vehicle just at run >>>> time? >>>> I would like to be able of specifying just the first edge for a >>>> vehicle >>>> and then calculate the full best route as soon as the vehicle >>>> enters the >>>> network. >>>> In order to calculate the best path I need to read and store the >>>> full >>>> map as well (it will be an OSM map). >>>> Is there any API that allows me to read the full map, run a shortest >>>> path algorithm on it, and then provide the updated route to the >>>> vehicle >>>> at each edge-change? >>>> Thanks in advance. >>>> Marco >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> The demand for IT networking professionals continues to grow, and >>>> the >>>> demand for specialized networking skills is growing even more >>>> rapidly. >>>> Take a complimentary Learning@Cisco Self-Assessment and learn >>>> about Cisco certifications, training, and career opportunities. >>>> http://p.sf.net/sfu/cisco-dev2dev >>>> _______________________________________________ >>>> sumo-user mailing list >>>> sum...@li... >>>> <mailto:sum...@li...> >>>> https://lists.sourceforge.net/lists/listinfo/sumo-user >>>> >>>> >>> >>> ------------------------------------------------------------------------------ >>> The demand for IT networking professionals continues to grow, and the >>> demand for specialized networking skills is growing even more rapidly. >>> Take a complimentary Learning@Cisco Self-Assessment and learn >>> about Cisco certifications, training, and career opportunities. >>> http://p.sf.net/sfu/cisco-dev2dev >>> _______________________________________________ >>> sumo-user mailing list >>> sum...@li... >>> https://lists.sourceforge.net/lists/listinfo/sumo-user >>> >> >> > > -- Enrico |