Hello,
currently, randomTrips cannot generate looping routes and thus limits route
length to the diameter of the network. Tthere was a bug in the code for
reporting this problem to the user which is fixed in revision [16301] (
http://sumo-sim.org/trac.wsgi/changeset/16301).
Generation of routes with arbitrary length is planned feature (
http://sumo-sim.org/trac.wsgi/ticket/1201) but I cannot tell you when it
will be done.
regards,
Jakob


2014-05-06 16:53 GMT+02:00 Kostantinos Katsaros <[email protected]>:

> Hi all,
>
> I have generated a simple 5x5 network (with length 500) and I want to add
> traffic on it using RandomTrips.py
> I use SUMO 0.20.0 with Python 2.7
>
> When I call it with:
> <SUMO>\tools\trip\randomTrips.py --net-file=grid.net.xml
> --output-trip-file=grid.trip.xml -e 100
>
> It generates the trip file without any problem.
>
> However, when I try adding the option --min-distance I get this error
>
> <SUMO>\tools\trip\randomTrips.py --net-file=grid.net.xml
> --output-trip-file=grid.trip.xml -e 100 --min-distance=4000
> Traceback (most recent call last):
>   File "<SUMO?>\tools\trip\randomTrips.py",
> line 160, in <module>
>     main(get_options())
>   File "<SUMO>\tools\trip\randomTrips.py",
> line 132, in main
>     options.min_distance, self.net_diameter))
> NameError: global name 'self' is not defined
>
> Any ideas?
>
> What I am trying to achieve is to place a fixed amount of vehicles, that
> will be inserted until the 100th second randomly in the network, and have
> the route of each vehicle to be large enough (4000m) such that the number
> of vehicles will be stable for some time afterwards (min 185sec when speed
> is 50km/h)
>
> --
> Konstantinos Katsaros
>
> ------------------------------------------------------------------------------
> Is your legacy SCM system holding you back? Join Perforce May 7 to find
> out:
> &#149; 3 signs your SCM is hindering your productivity
> &#149; Requirements for releasing software faster
> &#149; Expert tips and advice for migrating your SCM now
> http://p.sf.net/sfu/perforce
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to