Re: [sumo-user] Code Completion with Traci

2018-03-25 Thread Jakob Erdmann
Hello, our traci code exploits the dynamic nature of python for some nice features but this breaks many code-completion engines. regards, Jakob 2018-03-24 17:29 GMT+01:00 Jonathan Harper via sumo-user < sumo-u...@lists.sourceforge.net>: > Hello, > > Currently using Traci to interface with SUMO.

Re: [sumo-user] Add Trips Dynamically Not Working

2018-03-25 Thread Jakob Erdmann
this is working in our tests. Please make sure that routing is possible between these edges (i.e. by tring to add the vehicle with a complete list of edges) and that the vehicle has the appropriate type (with rerouting enabled). If it still fails, send me your scenarion files for debugging. regards

Re: [sumo-user] Assigning Trips Based on Map

2018-03-25 Thread Jakob Erdmann
1) draw the traffic zones as polygons in netedit 2) convert this into traffic zones: sumo/tools/edgesIndistrcits.py -n net.net.xml -t your.poly.xml 3) write a demand configuration for od2trips and then run od2trips -n districts.taz.xml --od-amitran-files demand.xml - trips.trips.xml

[sumo-user] Code Completion with Traci

2018-03-25 Thread Jonathan Harper via sumo-user
Hello, Currently using Traci to interface with SUMO. One small problem I have ran into is code completion (I’m using Pycharm), for example if I’m inserting ‘traci.’, instances such as ‘edge’ do not appear in the list. Further when typing ‘traci.edge.’, functions associated to that do not show u

[sumo-user] Add Trips Dynamically Not Working

2018-03-25 Thread Jonathan Harper
Hello, I’m attempting to add trips and have the vehicle route dynamically at runtime. I am using the tutorial from http://sumo.dlr.de/wiki/TraCI/Interfacing_TraCI_from_Python#Add_trips_.28incomplete_routes.29_dynamically under “Add trips (incomplete routes) dynamically” subheading. When adding