Re: [sumo-user] Adding PT to the network

2024-05-16 Thread Mirko Barthauer via sumo-user
Dear fereshte, the --shift option belongs to traceExporter.py (another script in the tools directory) which is called from gtfs2pt.py (actually from gtfs2fcd.py which is called by gtfs2pt.py). I don't get this message when working with your data. Maybe delete the old numerical.net.xml file - t

Re: [sumo-user] E3 Detector XML showing "-1" on several detectors

2024-05-16 Thread Mirko Barthauer via sumo-user
Hi Alex, the problem is related to lane changes and where the vehicles are inserted. E3 detectors can count only those vehicles which have passed first a datEntry and then a datExit section. All others get discarded in the output. Please add more datEntry sections for each detector to cover al

Re: [sumo-user] Integrating Road Congestion Ontology into SUMO for Analysis and Visualization

2024-05-16 Thread Mirko Barthauer via sumo-user
Hi Emile, what exactly do you want to do in the context of road congestion? Mainly you can add user-defined logic to your simulation using a TraCI script. Then you could either write output data for further analysis directly in your script or use one of the

Re: [sumo-user] How to determine the level of service in SUMo?

2024-05-11 Thread Mirko Barthauer via sumo-user
Looks good. Am 10.05.2024 um 14:06 schrieb alex david figueredo mora via sumo-user: Hello. Thank you for your response. I am attaching a very simple example just to confirm that my use and positioning of entryexitdetectors is correct. ___ sumo-user

Re: [sumo-user] Total travel time

2024-05-10 Thread Mirko Barthauer via sumo-user
Hi, the accumulated values which can be displayed after the simulation data cannot be accessed through TraCI. Single vehicles can only be queried in TraCI as long as they don't have reached their destination. You can infer the time a vehicle is in the network from traci.vehicle.getDeparture()

Re: [sumo-user] How to determine the level of service in SUMo?

2024-05-10 Thread Mirko Barthauer via sumo-user
Hi, an EntryExitDetector can have 1 to n entry and 1 to m exit points. The entry and exit points determine the surveyed area. So if you want to have a lane-based detection but with more control over borders than lanearea

Re: [sumo-user] Adding PT to the network

2024-04-30 Thread Mirko Barthauer via sumo-user
Dear Fereshte, sorry for the delayed response. Most parts of your network do not allow buses. Then there are probably some issues with your GTFS data (mostly train services, serviced area does not match the net area, ...). Best regards Mirko -Original-Nachricht- Betreff: Re: [su

Re: [sumo-user] How to reopen a lane

2024-04-22 Thread Mirko Barthauer via sumo-user
Hi Matt, you can download some example scenarios for closingReroute and closingLaneReroute from our test samples. Maybe post yo

Re: [sumo-user] Implement all way stop intersection without traffic lights

2024-04-22 Thread Mirko Barthauer via sumo-user
You can have a look at our tests for all way stops. Download here a set of example simulations. Best regards Mirko -Original-Nachricht- Betreff: [sumo-user] Implement all way stop intersecti

Re: [sumo-user] Calibrators Not Spawning

2024-04-16 Thread Mirko Barthauer via sumo-user
Hi Kaitlyn, you have used the Calibrator together with routeProbe elements. I didn't notice that when first scrolling across your XML. Apparently the route distribution created by routeProbe is preferred in comparison to the flow route attribute. When the route distribution is not available (n

Re: [sumo-user] Calibrators Not Spawning

2024-04-12 Thread Mirko Barthauer via sumo-user
Hi Kaitlyn, I can't reproduce this with our test examples. Could you please post at least your updated calibrator definitions (or better even attach a minimal failing scenario to run in sumo)? Best regards Mirko -Original-Nachricht- Betreff: Re: [sumo-user] Calibrators Not Sp

Re: [sumo-user] Calibrators Not Spawning

2024-04-10 Thread Mirko Barthauer via sumo-user
Hi Kaitlyn, what happens if you add the flow end attribute? Judging from the source code, I think this can be a problem because the flow duration is undefined / set to 0. Best regards Mirko -Original-Nachricht- Betreff: [sumo-user] Calibrators Not Spawning Datum: 2024-04-10T17:5

Re: [sumo-user] Queries About Reroute Function on SUMO

2024-03-22 Thread Mirko Barthauer via sumo-user
Dear Eleanor, please remove the square brackets around the probability attribute (or the whole attribute as it defaults to 1 anyhow). They are used in some places of the documentation to indicate optional parts. This bracket usage originates from the Backus-Naur form

Re: [sumo-user] Queries About Reroute Function on SUMO

2024-03-21 Thread Mirko Barthauer via sumo-user
Dear Eleanor, please post your own rerouter definition. The error message sounds like some very basic XML problem... Best regards Mirko -Original-Nachricht- Betreff: [sumo-user] Queries About Reroute Function on SUMO Datum: 2024-03-21T13:57:56+0100 Von: "Eleanor M Walsh via sumo-

Re: [sumo-user] changing car-following parameters for links

2024-03-21 Thread Mirko Barthauer via sumo-user
Dear Soheil, the vehicle type change is persistent. If you want to switch back, you need another Calibrator. The Calibrator updates the speed limit if defined with a speed value and creates vehicles with the referenced route starting at the calibrator location. Then these vehicles then will fo

Re: [sumo-user] changing car-following parameters for links

2024-03-20 Thread Mirko Barthauer via sumo-user
Dear Soheil, you can use Calibrator items to make vehicles change their vehicle type at a defined location. This would get you the desired effect. Best regards Mirko -Original-Nachricht- Betreff: [

Re: [sumo-user] Error with electric hybrid and overhead wires

2024-03-20 Thread Mirko Barthauer via sumo-user
Dear Rehab, this is due to two things: * the default value for --overhead-wire.solver is true * in that case the energy computation will make use of the external Eigen library (a fallback solution for --overhead-wire.solver false is provided) What does not work is activating

Re: [sumo-user] Netconvert --osm.elevation

2024-03-18 Thread Mirko Barthauer via sumo-user
Dear Augusto, netconvert just copies the Z value given by the "ele" key over to the SUMO network. As long as the node with the "ele" key becomes part of the SUMO network, it will have the given elevation. Please check first if your OSM data actually contains elevation information in the road n

Re: [sumo-user] Netconvert --osm.elevation

2024-03-14 Thread Mirko Barthauer via sumo-user
Hi Louis, in general this should work. Are you certain that the OSM elevation information is associated with a road network node? Best regards Mirko -Original-Nachricht- Betreff: [sumo-user] Netconvert --osm.elevation Datum: 2024-03-14T10:41:49+0100 Von: "Louis REYNAUD via sumo-user" A

Re: [sumo-user] Adding PT to the network

2024-03-12 Thread Mirko Barthauer via sumo-user
Dear Feresteh, in this case we need all necessary files to replicate the issue (net and GTFS). Best regards Mirko -Original-Nachricht- Betreff: Re: [sumo-user] Adding PT to the network Datum: 2024-03-11T18:05:22+0100 Von: "fereshte jafari" An: "Mirko Barthauer" Dear Mirko

Re: [sumo-user] Network conversion

2024-03-11 Thread Mirko Barthauer via sumo-user
Dear Joan, we only offer tools for VISUM import, not for exporting the SUMO network. The only network file types SUMO can read and write are OpenDRIVE, amitran and Navteq. If you want to try the conversion yourself, you can read the SUMO net with sumolib

Re: [sumo-user] Assistance Request: Building Visual Studio Solution with libsumo Library

2024-03-11 Thread Mirko Barthauer via sumo-user
Dear Milad, at that point I would advise you to do some Visual Studio C++ tutorial to get accustomed to linking libraries. There are plenty help pages on the internet when searching for c++ linking libraries in Visual Studio. Configuring the settings for libsumo isn't any way different than an

Re: [sumo-user] randomTrips generation in netedit

2024-03-06 Thread Mirko Barthauer via sumo-user
Hi, there exist several shortcuts where duarouter is called or routes are created from trips without that you have to tell SUMO explicitly. This is a shortcut: randomTrips can call duarouter directly if you fill in the route-file (where duarouter should write the routes to). The other option

Re: [sumo-user] Resolve network warnings

2024-03-06 Thread Mirko Barthauer via sumo-user
I cannot see the connections but those messages may be normal, as by default netconvert will reduce the allowed speed inside intersections depending on the curvature. Please look at the options --junctions.limit-turn-speed and --junctions.lim

Re: [sumo-user] Adding PT to the network

2024-03-06 Thread Mirko Barthauer via sumo-user
Dear Feresteh, do you allow busses in your network (vehicle class bus)? If not, then the public transport data cannot be mapped on any edge... Best regards Mirko -Original-Nachricht- Betreff: Re: [sumo-user] Adding PT to the network Datum: 2024-03-06T13:44:25+0100 Von: "feresht

Re: [sumo-user] Adding PT to the network

2024-03-05 Thread Mirko Barthauer via sumo-user
The empty output files don't help. Did you get warnings like "Warning! No GTFS data found for the given modes" or "Warning! No GTFS data found for the given date"? Best regards Mirko -Original-Nachricht- Betreff: [sumo-user] Adding PT to the network Datum: 2024-03-05T12:26:15+0100

Re: [sumo-user] incorrect street directions from shp to sumo.net

2024-03-05 Thread Mirko Barthauer via sumo-user
Dear Feresteh, that depends on how the shape file was drawn. The SUMO edges are drawn from the start node to the end node as defined in the shape file (see docs ). For bidirectional edges, another SUMO edge is added in t

Re: [sumo-user] Sublane Model

2024-03-05 Thread Mirko Barthauer via sumo-user
Dear Deborah, You have activated the sublane model together with --no-internal-links. This somewhat unusual combination hasn't been considered yet. This has been corrected (see Github issue #14460 ). You can wait until tomorrow for new develo

Re: [sumo-user] incorrect street directions from shp to sumo.net

2024-03-04 Thread Mirko Barthauer via sumo-user
Dear Feresteh, edge type files set oneway="true" as default if no other value is given. Unfortunately, this hadn't been documented until now. So please update your type file with oneway="false" attributes. The shape file DIR_TRAVEL attribute will still be considered and define whether you have

Re: [sumo-user] Value between two vehicles

2024-03-04 Thread Mirko Barthauer via sumo-user
Dear Joseph, in the case of two vehicles following each other on the same lane, you can use the TraCI function traci.vehicle.getLeader . It will search downstream of the current vehicle whether it can find a leader within

Re: [sumo-user] Sublane Model

2024-03-04 Thread Mirko Barthauer via sumo-user
Dear Deborah, the option --lateral-resolution activates the Sublane model . So it is normal that when you remove the optipn, overtaking behaviour changes as well. Can you provide the simulation files so that we can check what is the reason

Re: [sumo-user] incorrect street directions from shp to sumo.net

2024-02-29 Thread Mirko Barthauer via sumo-user
Dear Fereshteh, can you provide your test shape file? When you first load a network in netedit, the junctions are not fully computed. Press F5 to compute all links. Best regards Mirko -Original-Nachricht- Betreff: Re: [sumo-user] incorrect street directions from shp to sumo.net

Re: [sumo-user] incorrect street directions from shp to sumo.net

2024-02-28 Thread Mirko Barthauer via sumo-user
Dear Feresteh, the only case this may happen when looking at the code is related to the type definitions you added. If the type has the attribute oneway="true", this overrides the value from the shape file. If this does not explain your problems, please provide a test file. Best regards Mirk

Re: [sumo-user] I can’t set libsumo library

2024-02-27 Thread Mirko Barthauer via sumo-user
Dear Milad, what exactly does not work or what is the error message when you try to run the code? Btw libsumo works with normal std::string values, not sure what happens if you use Unreal FString. Best regards Mirko -Original-Nachricht- Betreff: I can’t set libsumo library Datum

Re: [sumo-user] Regarding vehroute output

2024-02-20 Thread Mirko Barthauer via sumo-user
Dear Rohan, it is the index of the route edges where the route was updated/replaced (e.g. by a rerouter). See the docs . Best regards Mirko -Original-Nachricht- Betreff: [sumo-user] Regarding vehroute

Re: [sumo-user] Activitygen - demand generation - errors

2024-02-16 Thread Mirko Barthauer via sumo-user
Dear Constantin, you have a typo in your activitygen stat file. The XML is case sensitive and the tag should be called "workHours", not "workhours". This is as part of SUMO where XML input is not validated. Nonetheless I think you have discovered a bug because all times should be in seconds, w

Re: [sumo-user] Unexpected delay results

2024-02-14 Thread Mirko Barthauer via sumo-user
Hi Chritra, how does your network look like (especially around the E3 detectors) and what numbers are we talking about (40% of which vehicle volume)? As I don't know your scenario I see these options: * the vehicle volume is very low even at 80% of the reference volume or... * the

Re: [sumo-user] Error: Answered with error to command 0xa4: Vehicle 'XXXX' is not known.

2024-02-12 Thread Mirko Barthauer via sumo-user
Hi Daniel, this is a bit difficult to follow for somebody who is not familiar with Flow. It seems Flow just sets traci as "kernel_api" and calls it for several reasons at different locations in the code. Do you catch errors at a high level in your script? A normal TraCI script without any exc

Re: [sumo-user] Regarding Sumo with jupedsim running

2024-02-12 Thread Mirko Barthauer via sumo-user
Dear Divya, it looks like you work with Linux? Then you have to build jupedsim as well (see docs ). Best regards Mirko -Original-Nachricht- Betreff: [sumo-user] Regarding Sumo with jupedsim running Datum: 2024-

Re: [sumo-user] Change values for W99 carFollowingModel

2024-02-09 Thread Mirko Barthauer via sumo-user
Dear Parisa, just add attributes of the same names to the vType declaration (see docs ). Something like this: Best regards Mirko -Original-Nachricht- Betreff: [sumo-u

Re: [sumo-user] Assing device parameters per vehicle type

2024-02-09 Thread Mirko Barthauer via sumo-user
Hi Ivan, in the general case just add a param child tag with attributes key="" ("device.driverstate.headwayErrorCoefficient" in your example) and value="" ("0.5" in your case). The general rule is that more specific definitions prevail: vehicle types override global options and vehicles overri

Re: [sumo-user] Assing device parameters per vehicle type

2024-02-09 Thread Mirko Barthauer via sumo-user
Hi Ivan, while it is possible for other devices to define them like you showed below, the FCD device is implemented differently. You can restrict output only by the global options you can find in the options list . Best regards Mirko ---

Re: [sumo-user] Output for parking areas

2024-02-08 Thread Mirko Barthauer via sumo-user
Hi Florian, there is no output which gives you these measures directly. You can use the stop output to compute the number of parking vehicles and then subtract those from the parking area capacity to get the number of free parking sp

Re: [sumo-user] [sumo-dev] 4 way stop intersection and traffic flow rule

2024-02-08 Thread Mirko Barthauer via sumo-user
Hi Pallavi, you'll find additional attributes in the FCD output file if you activate them by --fcd-output.geo true --fcd-output.distance true. Please read our documentation summary page about safety to get to know more about causing collisions

Re: [sumo-user] [sumo-dev] 4 way stop intersection and traffic flow rule

2024-02-06 Thread Mirko Barthauer via sumo-user
Hi Pallavi, in this case you can use the intersection type "priority_stop" and configure the "priority" attribute of the incoming edges like described in the documentation : raise this value for the main road to a higher value than

Re: [sumo-user] Fwd: I can’t set libsumo library

2024-02-06 Thread Mirko Barthauer via sumo-user
Dear Milad, you need the libsumo header file. If you use the precombiled binaries, then reference the "include" subdirectory in your Visual Studio project. Additionally add the file path to libsumocpp.lib (situated in the "bin" subdirectory) to the Linker section / additional dependendies in V

Re: [sumo-user] [sumo-dev] 4 way stop intersection and traffic flow rule

2024-02-06 Thread Mirko Barthauer via sumo-user
Dear Pallavi, please look into points of interest in sumo-gui. You can load arbitrary raster images into the simulation. Best regards Mirko -Original-Nachricht- Betreff: Re: [sumo-dev] 4 way st

Re: [sumo-user] Fwd: I can’t set libsumo library

2024-02-06 Thread Mirko Barthauer via sumo-user
Hi Milad, you need to have write access to clone Github source code into some folder. Which programming language do you use together with libsumo? If it is C++, then link libsumocpp. I haven't tried the library provided with precompiled binaries but always compile it on my machine... Best re

Re: [sumo-user] Calculating Rerouting Time

2024-02-05 Thread Mirko Barthauer via sumo-user
Hi Rohan, you can track the times the vehicle was rerouted using the vehicle route output . The stops of a vehicle are recorded in the stop output . By combining information

Re: [sumo-user] Follower Leader types

2024-02-04 Thread Mirko Barthauer via sumo-user
Hi Amir, this is basically the idea behind simpla platooning in SUMO. You are bound to using the Python TraCI interface then as simpla is build upon it. Best regards Mirko -Original-Nachricht- Betreff: [sumo-user] Follower L

Re: [sumo-user] Adding dedicated lanes

2024-02-01 Thread Mirko Barthauer via sumo-user
Please follow the guidelines from the documentation regarding validated routes and trips. Best regards Mirko -Original-Nachricht- Betreff: Re: [sumo-user] Adding dedicated lanes Datum: 2024-02-01T13:40:09+0100

Re: [sumo-user] OpenDrive conversions to .net.xml

2024-01-30 Thread Mirko Barthauer via sumo-user
Hi Ruud, in general importing an OpenDrive network will result in some simplifications. On top of that, only a subset of all OpenDrive elements/attributes is supported. There has been done some work on the OpenDrive import recently but I doubt it will help in your case. The main issue here is

Re: [sumo-user] Adding dedicated lanes

2024-01-29 Thread Mirko Barthauer via sumo-user
Hi Mohit, you can query the vehicles currently on a certain lane using traci.lane.getLastStepVehicleIDs and then read the single vehicle speeds using traci.vehicle.getSpeed

Re: [sumo-user] Is it possible to let vehicles ignore a certain type of other vehicle?

2024-01-26 Thread Mirko Barthauer via sumo-user
re a certain type of other vehicle? Datum: 2024-01-25T17:46:44+0100 Von: "Chen, Hanlin via sumo-user" An: "Mirko Barthauer via sumo-user" Dear SUMO team, We are in the process of developing a simulation with traffic monitoring functions. We want to make traffic monitor

Re: [sumo-user] Pedestrian simulation

2024-01-26 Thread Mirko Barthauer via sumo-user
Hi Anna-Lena, the junction model can be configured to ignore specific vehicles, pedestrians (or road users of a given type) (see docs ). Does this suit your purpose? Best regards Mirko

Re: [sumo-user] Adding Elevation Data to existing net-files

2024-01-25 Thread Mirko Barthauer via sumo-user
o then run netconvert to get net.xml again Best regards Mirko -Original-Nachricht- Betreff: [sumo-user] Adding Elevation Data to existing net-files Datum: 2024-01-25T16:21:32+0100 Von: "Reichsöllner, Emanuel via sumo-user" An: "Mirko Barthauer via sumo-user"

Re: [sumo-user] Vehicles moving only in right most lane

2024-01-23 Thread Mirko Barthauer via sumo-user
Hi Manikanta, that depends on the lane change model parametrisation and the routes of the vehicles. If the vehicles travel for a long stretch on a multi-lane road, raise the lcSpeedGain v

Re: [sumo-user] Calculating A Single Vehicle Road Length

2024-01-19 Thread Mirko Barthauer via sumo-user
Hi Emre, For me it it works fine. Both times the vehicle with ID "1.0" travels the same distance. Please check your files whether you made some mistake during copying... Best regards Mirko -Original-Nachricht- Betreff: [sumo-user] Calculating A Single Vehicle Road Length Datum

Re: [sumo-user] Platooning functioning

2024-01-18 Thread Mirko Barthauer via sumo-user
Hi Iñaki, obviously I have no clue either what could be behind the exception. Do you get any message from sumo-gui when it crashes? Sometimes you get some message only on the console, so maybe start sumo-gui from the command line. You can still run your TraCI script if you connect the TraCI cl

Re: [sumo-user] Changing rail to be bidirectional using netconvert

2024-01-18 Thread Mirko Barthauer via sumo-user
Dear Hector, maybe it is not explained clearly enough in the documentation. The option --railway.topology.all-bidi.input-file can be used to restrict the set of rail edges you want to make bidirectional. This means the required file is a selection file you can generate with netedit (select edg

Re: [sumo-user] Brake light flickering

2024-01-17 Thread Mirko Barthauer via sumo-user
Hi Matthew, AFAIK brake light visualisation is pretty basic. Every time step it is decided whether to draw it or not. Now if you use very short time steps, you may encounter the mentioned pattern because in some situations SUMO vehicles do not come to a complete stop but travel at very low spe

Re: [sumo-user] I am unable to start sumo from c++ by using libtraci

2024-01-16 Thread Mirko Barthauer via sumo-user
Dear Milad, I have added answers and comments directly below your questions. Best regards Mirko -Original-Nachricht- Betreff: Re: [sumo-user] I am unable to start sumo from c++ by using libtraci Datum: 2024-01-16T15:17:57+0100 Von: "Milad Sasha" An: "Mirko Barthauer" De

Re: [sumo-user] Validation of BPR Method in SUMO: Seeking Help on Replicating Asymptotic Results in Straight Road Sections

2024-01-16 Thread Mirko Barthauer via sumo-user
Dear François, tkinter is not part of SUMO but is a Python module for GUI purpose. Best regards Mirko -Original-Nachricht- Betreff: Re: [sumo-user] Validation of BPR Method in SUMO: Seeking Help on Replicating Asymptotic Results in Straight Road Sections Datum: 2024-01-17T01:34:1

Re: [sumo-user] 回复:AW: AttributeError: 'InductionLoopDomain' object has no attribute 'getLastIntervalVehicleNumber'

2024-01-16 Thread Mirko Barthauer via sumo-user
Hi Tianli, I don't know why it does not work on your system. Please have a look both "SUMO_HOME" environment variable and whether you have some installed some python module called traci. Please try your script with environment variable "SUMO_HOME" pointing to the latest SUMO release installati

Re: [sumo-user] Adding dedicated lanes

2024-01-15 Thread Mirko Barthauer via sumo-user
Hi Mohit, first things first: TraCI is intended for dynamic objects (something that is likely to change during simulation). The network itself is regarded as constant and only permissions can be changed. Now there are some options how to edit the network automatically before the simulation. It

Re: [sumo-user] AttributeError: 'InductionLoopDomain' object has no attribute 'getLastIntervalVehicleNumber'

2024-01-15 Thread Mirko Barthauer via sumo-user
This sounds strange indeed. The call looks good at first sight. Can you look if by accident you have some control character in the code close/inside this TraCI call? Some text editors do not show control characters by default or hide some... Be

Re: [sumo-user] I am unable to start sumo from c++ by using libtraci

2024-01-15 Thread Mirko Barthauer via sumo-user
Dear Milad, there are two things to consider: * libtraci namespace (but as long as you have libsumo installed, the actual code for running sumo is the same) * libtraci::Simulation::start will take the full call to sumo (path to sumo and command line arguments) - you don't sepa

Re: [sumo-user] Inquiry Regarding C++ Equivalent Code for SUMO TraCI

2024-01-15 Thread Mirko Barthauer via sumo-user
Dear Mazyiar, please look into libtraci (C++ API) or libsumo (dll) and study the given example source code. Best regards Mirko PS: Although you get help here about using SUMO, this is not equivalent to a "cust

Re: [sumo-user] Calculation of travel times

2024-01-15 Thread Mirko Barthauer via sumo-user
Dear Rohan, your request is quite specific, such that there is no exact match with the existing output options of sumo. What if you divide the route into separate components, then measure the travel times of these shorter routes and then aggregate the data as you like? * create routes of

Re: [sumo-user] Validation of BPR Method in SUMO: Seeking Help on Replicating Asymptotic Results in Straight Road Sections

2024-01-15 Thread Mirko Barthauer via sumo-user
Dear François, as you already noted, travel times on inflow edges depend a lot on the insertion rules and the used car-following settings. The next vehicle to be inserted needs some space (vehicle length and distance to leader) and only one vehicle per time step and lane can enter the network.

Re: [sumo-user] An error when opening simulation

2024-01-12 Thread Mirko Barthauer via sumo-user
Dear Jihyeok, your network file looks like you have written it by yourself (without using netconvert or netedit). Please don't! It is incomplete in several aspects (missing nodes, no l

Re: [sumo-user] Calibration

2024-01-08 Thread Mirko Barthauer via sumo-user
Dear Maziyar, calibration is a very generic topic, as you didn't say anything about what you got from the drone videos and which question you want to answer with the simulation. Calibration means changing input parameters to match an expected output. We have a tutorial

Re: [sumo-user] Variable traffic flows, density and arrival times

2024-01-08 Thread Mirko Barthauer via sumo-user
Hi Hriday, you have to insert single vehicle in TraCI, as there is no option to manipulate flows there. The number of vehicles you can insert depends on the number of lanes, the chosen car-following parameters, the departure speed, the time step length, ... You can insert at most one vehicle p

Re: [sumo-user] Connecting Sumo to Unreal engine

2024-01-08 Thread Mirko Barthauer via sumo-user
Hi Maziyar, there are a few projects out in the Internet (see e.g. this yt video ) which did this already. AFAIK Carla simulator uses Unreal Engine and can connect to SUMO using TraCI. Best regards Mirko -Original-

Re: [sumo-user] Braking distance used for getJunctionFoes - explained

2024-01-05 Thread Mirko Barthauer via sumo-user
Hi Hriday, your braking distance formula seems alright. "egoDist" and "foeDist" refer to different vehicles and by consequence to different distances to a common conflict area. "egoExitDist" and "foeExitDist" refer to the exit of the common conflict area along the respective vehicle path. Be

Re: [sumo-user] TraCI API xercesc dependency

2024-01-04 Thread Mirko Barthauer via sumo-user
Hi Matthew, currently we have xerces-c-3.2.4 in our SUMO library repo at and use that for compiling the current SUMO version. In general, xerces is used in SUMO since very long ago, way before release 1.8.0. Not sure why this b

Re: [sumo-user] SUMO-gui background options

2024-01-04 Thread Mirko Barthauer via sumo-user
Hi Hector, you can download satellite image tiles ready to import with our helper script tileGet.py (see docs ). You'll need a Google Maps key though. The script supports other background sources like MapQuest and ArcGIS as well. Best rega

Re: [sumo-user] Connecting to SUMO server by Traci

2024-01-04 Thread Mirko Barthauer via sumo-user
Hi Ainhoa, I haven't used Artery myself so I am not sure about how exactly sumo is called. But sumo has to be told how many TraCI clients it expects by --num-clients if you want to connect more of them (see docs ). Best regards Mirko

Re: [sumo-user] How to modell sharp turns of long vehicles that need a hole in the opposing trafic

2024-01-04 Thread Mirko Barthauer via sumo-user
Mirko -Original-Nachricht- Betreff: Re: [sumo-user] How to modell sharp turns of long vehicles that need a hole in the opposing trafic Datum: 2024-01-04T14:06:53+0100 Von: "Mirko Barthauer via sumo-user" An: "Sumo project User discussions" Hi Bernhard, I'm no

Re: [sumo-user] How to modell sharp turns of long vehicles that need a hole in the opposing trafic

2024-01-04 Thread Mirko Barthauer via sumo-user
Hi Bernhard, I'm not sure SUMO can model this case correctly without side effects. Some thoughts: - you can give the connection a custom shape which cuts into the opposing traffic (see context menu of connections in netedit or PlainXML

Re: [sumo-user] Braking distance used for getJunctionFoes - explained

2024-01-03 Thread Mirko Barthauer via sumo-user
Hi Hriday, regarding your questions: a: Distances are sums of euclidean distances of single net elements / stretches between subsequent geometry points along the routes of the vehicles. b: They give the distance to the exit of the conflict area, which may be the exit of the junction (or more u

Re: [sumo-user] question about reduce flow in sumo

2024-01-03 Thread Mirko Barthauer via sumo-user
Dear Yanglan, vehicle volumes on edges are a result (output) of SUMO vehicle dynamics and traffic demand, not an input to the simulation. Obviously you can adapt other input to obtain reduced flows: * close a lane (Rerouter

Re: [sumo-user] Question about junctions

2024-01-03 Thread Mirko Barthauer via sumo-user
Dear Yanglan, AFAIk this is not possible. The selection form in netedit works with the object attributes you can access as well in the inspect mode, but no derived values like the number of ingoing and outgoing edges. Best regards

Re: [sumo-user] How to fix access error

2024-01-03 Thread Mirko Barthauer via sumo-user
Hi, although the main entry page of the SUMO project is actually , our online documentation is located at . will just redirect you to . Nevertheless, you shouldn't get that message. Did y

Re: [sumo-user] How to get different person's height

2024-01-03 Thread Mirko Barthauer via sumo-user
I first replied to a previous message without seeing you already found a part of the solution. There is traci.person.setHeight(ID) as well to change the value individually. I would expect vType distributions with several pedestrian vTypes to work as well to generate various different pedestrians

Re: [sumo-user] Pedestrian Simulation - Person attributes

2024-01-03 Thread Mirko Barthauer via sumo-user
Hi Gervalino, you can query the person height like with vehicles (in the Python TraCI interface it would be traci.person.getHeight(ID)). You can set the height as well in the vType definition. I updated the person page of the docs to includ

Re: [sumo-user] Need Assistance with TraCI Constants and Subscription Domains in SUMO

2023-12-21 Thread Mirko Barthauer via sumo-user
Dear Hriday, you can find a list of which values can be retrieved in each domain in the docs . tc.VAR_ALLOWED_SPEED is for vehicles (max speed on lane is tc.VAR_MAXSPEED). There is no getter for tc.VAR_PREV_SPEED as this a value provided b

Re: [sumo-user] Libsumo load command causes termination of simulation?

2023-12-20 Thread Mirko Barthauer via sumo-user
Hi Hriday, it seems like you experience the same problems as the author of the mentioned issue. There are no other functions leading to the load command. Best regards Mirko -Original-Nachricht- Betreff: [sumo-user] Libsumo load command causes termination of simulation? Datum: 202

Re: [sumo-user] question about intersection allwaystop rule

2023-12-20 Thread Mirko Barthauer via sumo-user
Hi Yanglan, at this type of intersections, the arrival distribution of vehicles is crucial. The all-way stop rules are explained on Wikipedia . I think you cannot say anything about which direction has which share without knowing more about the vehi

Re: [sumo-user] Question about PHEMlight5 documentation

2023-12-20 Thread Mirko Barthauer via sumo-user
Dear Alejandro, I would assume degree Celsius as other resources (p.14) related to PHEM(light) work with that and the PHEM authors are from Austria. Best regards Mirko -Original-Nachricht- Betreff: [sumo-user

Re: [sumo-user] Issue with Modeling Bus and Bicycle Lanes in SUMO

2023-12-20 Thread Mirko Barthauer via sumo-user
Dear Henri, your example edge contains the key-value pair "cycleway=share_busway" which isn't read by netconvert yet. So currently we do not consider the special case of cyclists and busses sharing the same (dedicated) lane. Additionally there seems to be a problem with how the lane width is d

Re: [sumo-user] [EXT] AW: [new user] - my train is not picking up the container at the container stop

2023-12-18 Thread Mirko Barthauer via sumo-user
Hi Hector, OK I found the problem after staring for too long at other parts of your scenario: You didn't define the container capacity of your train. Its default value is 0, that's why it didn't accept to load containers. I have added a note to the container summary page

Re: [sumo-user] change the lane function during the simulation

2023-12-18 Thread Mirko Barthauer via sumo-user
Hi Tianli, you cannot add/remove connections during the simulation. Every connection you want to use has to be defined in advance. What you can do dynamically: define who can access a connection (traci.lane.setAllowed ). Now I

Re: [sumo-user] od2trips erros and TAZ definition in a large network

2023-12-18 Thread Mirko Barthauer via sumo-user
Hi Meng, such problems grow with network size and are not easy to fix automatically. Do you add public transport from schedules with fixed routes? Then you could use the --vclass option in edgesInDistricts.py and exclude edges limited to public transport. Best regards Mirko -Origin

Re: [sumo-user] Setting gradient for a road

2023-12-18 Thread Mirko Barthauer via sumo-user
Hi Simon, you set the gradient implicitly through the Z coordinate of your road geometry. You can add edit the node positions in netedit inspection mode and add a third dimension. Example: * you have a node with position 10.0,20.0 * setting it to 10.0,20.0,5.0 raises the node by 5m You

Re: [sumo-user] Question regarding buses at bus stops

2023-12-18 Thread Mirko Barthauer via sumo-user
Dear Joseph, I have some (untested!) ideas on how this could be modeled. If you care mainly about how long the stop lasts, you could modify it using TraCI (see traci.vehicle.setStopParameter ). Especially there is t

Re: [sumo-user] [EXT] AW: [new user] - my train is not picking up the container at the container stop

2023-12-18 Thread Mirko Barthauer via sumo-user
Hi Hector, do you watch the simulation in sumo-gui? Where is the container and where is the train at the time you want the loading to happen? I recreated a similar simulation and didn't encounter problems. Please take care that tranship needs time (defined implicitly by the euclidean distance

Re: [sumo-user] terminate a simulation when halt time exceeds a value with TraCI

2023-12-15 Thread Mirko Barthauer via sumo-user
Hi Tiago, TraCI will simulate as many time steps as you ask for (see docs ) in your script. If you want it to stop under the named conditions, you need to monitor those and then make your script terminate (e.g. by stepping out of the time step loo

Re: [sumo-user] Newbie question - activate edge visualization options

2023-12-14 Thread Mirko Barthauer via sumo-user
Dear Hector, you can find the setting in the visualisation settings dialog . Head to the "streets" tab and scroll down a bit. Alternatively you can switch to the "rail" visualisation preset by selec

Re: [sumo-user] Showing vehicle type in sumo-gui

2023-12-14 Thread Mirko Barthauer via sumo-user
Dear Mohit, you can customise how vehicles are displayed by providing a bitmap for each vehicle type (see vType attribute imgFile ). There is the option to display a text next to the vehicle, to

  1   2   3   >