Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Call SUMO
  • From: Michael Behrisch <oss@xxxxxxxxxxx>
  • Date: Wed, 4 Mar 2020 19:09:34 +0100
  • Autocrypt: addr=oss@xxxxxxxxxxx; prefer-encrypt=mutual; keydata= xsDiBFLSvucRBACGsasS4GeIWs1CFNTOYmp3ScQ2ZTJLJWQxhPliwtHTzLsErYu9Y7e8qDov iHFviYyaNuceUNoACm1e4MT4eu0DmM2Wk3y/jjD6hfm7L0EZNPxQhj+CJf2oZAm2ezCe7/si xZ2d7TCO8yWavOGbF0EVi/ZDIJqVgupu6WBpv/NCewCg65HQiS1wm+1w1MdFYxKCmXzbv08D /iWXX3tzabbCrLlUum8hBgBpJEHRtlic2uaGsKm8Fize4tfLZkTBbTYLYXfcx2Oq9+lINPTW h9jnbCjAjErRWLTjNTQjel0JnDryCnqabub/R3wScR/EHRDBeS9L6YRj0xdVd2qIaArtSYRR auKPNc4M2qZNEFSM37cXC7avhpdeA/99oJf4qyVly4RxHmekAmj9UJjRx17x9xX8t9uzUuSt AeTh+kQ3o5jK7veU6/F/+pPyi96EOzym9BJA8pgXC8hLWNjOajI10filkdQ26QsfHOpUdPSZ 4Duyw9Ayj8loagEnnAONmU/xE0QlyVBANIut0W+SNqPScYXfnBbVOaG3Hc0mTWljaGFlbCBC ZWhyaXNjaCA8bWljaGFlbEBiZWhyaXNjaC5kZT7CZgQTEQIAJgIbIwcLCQgHAwIBBhUIAgkK CwQWAgMBAh4BAheABQJS0sKXAhkBAAoJEDwQ/pbRcKYp+SEAoMJSvUzfk3u6EA1nMlMVSk85 nHhoAJ0VE5xLi2ni8j9wdx+uga7XGLtjhs7ATQRS0r7nEAQAkQLdzlu3i/Ddziadm2c/60ZX bcY3FYhHHfsKUHC/QING+lu3uHG0nPaElPTAHTr8UdFMbmpXkRs9+1v1RAvHBWW95BbUXZeu oBsoCm+4Jdktu+PeVxGKhOwQRdR30A4y/bIeRn7iMzkZKoQh0lE3ZEbs0T8TUHBGBUqwEhIv Y0MAAwUD/RXrkwtUiR61/bT96eMaxGtO15AqvlM8DYQ3Xs6EH09QlGzr/i0+usi01wGoh13p YGjzEDtTqO+lNs9AtS7nZAHA3cCWzLmdEXw6EY7IH4X7zOpKoj+JtLNjUd2Nzvhyl48LT217 g8GmCACL6Wo/G+fZ+30Mny+gWbDtEGXNIv7fwkkEGBECAAkFAlLSvucCGwwACgkQPBD+ltFw pimNZQCgnN5oibnjl7r2SVle6hgUMcckfN4AoMYRjy/Tqz9tq8TSUqNcOTjlMR7D
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0

Hi,
it may very well be that CMake is finding your Python 2.7 first and
tries to build libsumo for Python2 which will not work with Python3.
Please check the output of cmake or the CMakeCache-txt whether it
mentions Python 2 or 3. If this is OK, check whether you have all
libraries sumo depends on in your path or in the same directory as the
libsumo dll.

Best regards,
Michael

Am 02.03.20 um 15:35 schrieb Raheleh Zarei:
> Thanks for explanation.
> I'm trying to use libsumo as you said and based on what is said
> in https://sumo.dlr.de/docs/Libsumo.html#building_it. But when I run it
> I get the error in the attachment. All the environment variables and
> setup seems to be OK. Please check the screenshot in the attachment.
> 
> My other question is about the first sentence regarding loading a weight
> file corresponding to a jammed network. what do you mean by weight file?
> Do you mean getting the state of network at the point that some roads
> are congested ,while running the simulation and save it to a file(travel
> time of edges will show the weight?)?
> 
> Thanks for your help,
> 
> 
> On Thu, Feb 27, 2020 at 1:44 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx
> <mailto:namdre.sumo@xxxxxxxxx>> wrote:
> 
>     Then I would use libsumo:
>     - load a weight file corresponding to a jammed network
>     - run lots of simulation.findRoute queries (and measure time)
>     - initialize your own algorithm graph from the sumo data structures
>     - run the same queries against your own routing algorithm (and
>     measure time)
> 
> 
> 
>     Am Do., 27. Feb. 2020 um 03:23 Uhr schrieb Raheleh Zarei
>     <raheleh.zarei@xxxxxxxxx <mailto:raheleh.zarei@xxxxxxxxx>>:
> 
>         The basic comparison I want to do is how fast they find shortest
>         path when there are many s-t queries and do rerouting (finding a
>         new route) when there are traffic jam in some edges.
> 
>         On Tue, Feb 25, 2020 at 1:43 AM Jakob Erdmann
>         <namdre.sumo@xxxxxxxxx <mailto:namdre.sumo@xxxxxxxxx>> wrote:
> 
>             Given the distance/travelTime data for each edge, the
>             shortest/fastest path in a typical network  is often unique
>             and thus all algorithms reach the same result (manhatten
>             grid networks are an obvious exception to this). Therefore
>             it does not matter which algorithm you use as long as they
>             use the same inputs.
>             Thus, I was trying to understand what difference you would
>             expect from using non-sumo algorithms.
> 
>             Am Di., 25. Feb. 2020 um 05:02 Uhr schrieb Raheleh Zarei
>             <raheleh.zarei@xxxxxxxxx <mailto:raheleh.zarei@xxxxxxxxx>>:
> 
>                 I am not sure if I understand the first paragraph of
>                 your email. The algorithms are shortest/fastest path
>                 finders(I call them non-sumo algorithms). Actually the
>                 thing I want to do is as follow:
>                 -Import map of a city as road network
>                 -Make some source and target points based on the map
>                 -Run random number of source-target queries between
>                 these source and target points and for every query (or
>                 in a time interval for example every 20 second) get the
>                 current situation of the network (like the travel time
>                 of edges because it might have changed due to heavy
>                 traffic in some edges) and find the shortest
>                 path/fastest using non-sumo algorithms. 
>                 -calculate the path found (time/distance) by non-sumo
>                 algorithms for each source-target query and also average
>                 of time-distance for the whole s-t queries during
>                 simulation.
> 
>                 Thanks for your help,
>                 Raheleh
> 
> 
> 
>                 On Mon, Feb 24, 2020 at 2:11 AM Jakob Erdmann
>                 <namdre.sumo@xxxxxxxxx <mailto:namdre.sumo@xxxxxxxxx>>
>                 wrote:
> 
>                     It depends on what these other algorithms are. If
>                     they are also shortest/fastest path finders that it
>                     would be sufficient to alter the weights/travel
>                     times assigned to the network edges (via TraCI or
>                     xml inputs) and keep using the sumo algorithms.
>                     You could also let these other algorithms compute
>                     their routes externally and then alter the routes in
>                     the simulation (via TraCI or xml inputs).
>                     regards,
>                     Jakob
> 
>                     Am Mo., 24. Feb. 2020 um 02:58 Uhr schrieb Raheleh
>                     Zarei <raheleh.zarei@xxxxxxxxx
>                     <mailto:raheleh.zarei@xxxxxxxxx>>:
> 
>                         Thanks for your explanation. 
>                         Yes, you are right. So, what you suggest to do
>                         if I want to compare other routing algorithms
>                         with SUMO routing algorithms from traffic
>                         efficiency point of view?
>                         Do I need to develop SUMO source code and add
>                         other routing algorithms, or there is another
>                         way I can call these algorithms inside SUMO.
> 
>                         Thanks for your time and help.
>                         Raheleh
> 
>                         On Tue, Feb 18, 2020 at 3:57 PM Jakob Erdmann
>                         <namdre.sumo@xxxxxxxxx
>                         <mailto:namdre.sumo@xxxxxxxxx>> wrote:
> 
>                             Libsumo is useful if you need at lot of
>                             interaction between your code and sumo
>                             because it reduce communication overhead
>                             compared to TraCI.
>                             If you are comparing the algorithms in terms
>                             of overall traffic efficiency then most of
>                             the time is spent on simulation rather than
>                             routing so you won't need Libsumo.
>                             If you are repeatedly calling the sumo
>                             routers to compare the found routes with
>                             your own routes then it makes more sense.
>                             For details, see
>                             https://sumo.dlr.de/docs/Libsumo.html
>                             regards,
>                             Jakob
> 
>                             Am Mo., 17. Feb. 2020 um 10:19 Uhr schrieb
>                             Raheleh Zarei <raheleh.zarei@xxxxxxxxx
>                             <mailto:raheleh.zarei@xxxxxxxxx>>:
> 
>                                 Hello,
> 
>                                 I would like to test two routing
>                                 algorithms using SUMO as a framework for
>                                 comparing these algorithms. Inside the
>                                 program of these algorithms (written in
>                                 C++ in Linux), I need to call SUMO,
>                                 start it, get the required variables and
>                                 reports and then close it and see the
>                                 results. What do you suggest for this?
>                                 Do you think using Libsumo is a good
>                                 idea? and if yes what's the procedure of
>                                 using it.
> 
>                                 Best,
>                                 Raheleh
>                                 -- 
>                                 *RAZ*
>                                 _______________________________________________
>                                 sumo-user mailing list
>                                 sumo-user@xxxxxxxxxxx
>                                 <mailto:sumo-user@xxxxxxxxxxx>
>                                 To change your delivery options,
>                                 retrieve your password, or unsubscribe
>                                 from this list, visit
>                                 https://www.eclipse.org/mailman/listinfo/sumo-user
> 
>                             _______________________________________________
>                             sumo-user mailing list
>                             sumo-user@xxxxxxxxxxx
>                             <mailto:sumo-user@xxxxxxxxxxx>
>                             To change your delivery options, retrieve
>                             your password, or unsubscribe from this
>                             list, visit
>                             https://www.eclipse.org/mailman/listinfo/sumo-user
> 
> 
> 
>                         -- 
>                         *RAZ*
>                         _______________________________________________
>                         sumo-user mailing list
>                         sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>
>                         To change your delivery options, retrieve your
>                         password, or unsubscribe from this list, visit
>                         https://www.eclipse.org/mailman/listinfo/sumo-user
> 
>                     _______________________________________________
>                     sumo-user mailing list
>                     sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>
>                     To change your delivery options, retrieve your
>                     password, or unsubscribe from this list, visit
>                     https://www.eclipse.org/mailman/listinfo/sumo-user
> 
> 
> 
>                 -- 
>                 *RAZ*
>                 _______________________________________________
>                 sumo-user mailing list
>                 sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>
>                 To change your delivery options, retrieve your password,
>                 or unsubscribe from this list, visit
>                 https://www.eclipse.org/mailman/listinfo/sumo-user
> 
>             _______________________________________________
>             sumo-user mailing list
>             sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>
>             To change your delivery options, retrieve your password, or
>             unsubscribe from this list, visit
>             https://www.eclipse.org/mailman/listinfo/sumo-user
> 
> 
> 
>         -- 
>         *RAZ*
>         _______________________________________________
>         sumo-user mailing list
>         sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>
>         To change your delivery options, retrieve your password, or
>         unsubscribe from this list, visit
>         https://www.eclipse.org/mailman/listinfo/sumo-user
> 
>     _______________________________________________
>     sumo-user mailing list
>     sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>
>     To change your delivery options, retrieve your password, or
>     unsubscribe from this list, visit
>     https://www.eclipse.org/mailman/listinfo/sumo-user
> 
> 
> 
> -- 
> *RAZ*
> 
> _______________________________________________
> sumo-user mailing list
> sumo-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> 


Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top