Re: [sumo-user] Question about Electric Vehicle Modeling Values
Dear Ifezue I am also started modeling EVs. We can share our knowledge. I am searching about EV modeling in SUMO. Best Mehdi -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Question about Electric Vehicle Modeling Values
Hello Everyone I am currently looking at the documentation for modeling electric vehicles and I am trying to understand the meaning behind the electric vehicle attributes or keys. I was wondering what exactly is the "constantPowerIntake" key modeling? Is it the amount of energy being consumed by the passengers in the vehicle for services such as air conditioning or phone charging, or is it energy spent from being consumed by the motor/engine of the EV? Can someone please elaborate on what "consumers" means in the description of the documentation? I have placed a link within the documentation to access what I am referring to quicker: https://sumo.dlr.de/docs/Models/Electric.html Thank you in advance Ifezue Obiako -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Problem with traci4matlab vehicle subscription filters
Hello all, I have a problem with traci4matlab vehicle subscription filters. I have subscribed to a vehicle to obtain the traffic object's position and orientation data. I want to filter the subscription results by specifying upstream and downstream distance. But the filter does not seem to work as it is not filtering out the traffic objects beyond the specified distance. Here is the code: traci.vehicle.subscribeContext('1001',constants.CMD_GET_VEHICLE_VARIABLE,400,{constants.VAR_POSITION3D,constants.VAR_ANGLE}); traci.vehicle.addSubscriptionFilterDownstreamDistance(100); traci.vehicle.addSubscriptionFilterUpstreamDistance(50); results=traci.vehicle.getContextSubscriptionResults('1001'); I also tried the addSubscriptionFilterLanes filter to certain lanes along with upstream and downstream distances. But this seem to not work as well. Here is the code: traci.vehicle.subscribeContext('1001',constants.CMD_GET_VEHICLE_VARIABLE,400,{constants.VAR_POSITION3D,constants.VAR_ANGLE}); traci.vehicle.addSubscriptionFilterLanes([-1,0],1,100,50); results=traci.vehicle.getContextSubscriptionResults('1001'); I am not sure if this is occurring because of wrong syntax or because of some other issue. I would really appreciate any help in this regard. My Sumo version is 1.7.0 and TraCI version is 20. Thank you and regards, Shreevatsa -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] Using vType additional file with flowrouter.py
> > However, their flow data will always be used. Great, that solves my doubt. Thanks a lot! Regards, Alejandro. El mar, 15 jun 2021 a las 17:49, Jakob Erdmann () escribió: > Loaded detectors are only used as sources or sinks if they have attribute > type="source" or type="sink". However, their flow data will always be used. > The only case where this matters is, if your network has source and sinks > that cannot be deduced from the network topology. You can check the deduced > ones with option --source-sink-output. > > Am Di., 15. Juni 2021 um 14:36 Uhr schrieb Alejandro Rodríguez Sánchez < > alrod...@ucm.es>: > >> Thanks Jakob, it's running now I'll let you know if something comes out >> badly. >> >> One concern I have is this message that appears now,: >> Loaded 0 sources and 0 sinks from detector file. Added 117 sources and >> 100 sinks from the network >> >> Should be worried about this? This is how I run flowrouter and I attach >> the detectors position and measures files: >> >> python3 $SUMO_HOME/tools/detector/flowrouter.py -n sumonetwork.net.xml -d >> detectors_Madrid_11-2019.xml -f 11-11-2019_randomdetectors_Madrid.csv -o >> routes.xml -e flows.xml -v --source-sink-output sourceSink.xml >> --flow-poi-output flow_poi.xml -i 60 >> >> El mar, 15 jun 2021 a las 11:28, Jakob Erdmann () >> escribió: >> >>> flowrouter does not support additional files so you must use >>> --params="type=\"vdist1\"" >>> You may still want to add the default params departSpeed="max" >>> departPos="last" departLane="best" in addition to that. >>> >>> Am Di., 15. Juni 2021 um 11:23 Uhr schrieb Alejandro Rodríguez Sánchez < >>> alrod...@ucm.es>: >>> Hi everyone, I am reading the flowrouter documentation but I still have a question about vTypes in flowrouter. If I have previously defined a vehicle distribution let's say named "vdist1" in an additional file (e.g. myvdist.add.xml), how should I let flowrouter.py know that I want to use the "vdist1" vehicle distribution in order to calculate the routes? Should I call --params="type=\"vdist1"" or should I call the additional file? And how do I call the additional file to flowrouter? Regards, Alejandro. -- Alejandro Rodríguez Sánchez PhD student CIEMAT // Universidad Complutense de Madrid 28040 Madrid email: alrod...@ucm.es Website: https://alexrsanchez.github.io/en/ ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user >>> ___ >>> sumo-user mailing list >>> sumo-user@eclipse.org >>> To unsubscribe from this list, visit >>> https://www.eclipse.org/mailman/listinfo/sumo-user >>> >> >> >> -- >> Alejandro Rodríguez Sánchez >> PhD student >> CIEMAT // Universidad Complutense de Madrid >> 28040 Madrid >> email: alrod...@ucm.es >> Website: https://alexrsanchez.github.io/en/ >> ___ >> sumo-user mailing list >> sumo-user@eclipse.org >> To unsubscribe from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > ___ > sumo-user mailing list > sumo-user@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > -- Alejandro Rodríguez Sánchez PhD student CIEMAT // Universidad Complutense de Madrid 28040 Madrid email: alrod...@ucm.es Website: https://alexrsanchez.github.io/en/ ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] Two vehicles sharing the same lane
I have solved the issue by increasing the vehicle width to 2m from the default 1.8m in vType. I guess it satisfies my requirements. Regards Radha On Tue, Jun 15, 2021 at 5:11 PM Jakob Erdmann wrote: > Your scenario fails to run on my machine. Please provide a traci-traceFile > instead: > https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html#generating_a_log_of_all_traci_commands > (along with any required input files such as generated traffic). > > Am Mo., 7. Juni 2021 um 10:00 Uhr schrieb Radha Reddy < > radha.reddy@gmail.com>: > >> Hello Jakob, >> >> Please check the zip attachment for the scenario. Mongodb needs to be >> active to run the attached scenario. >> The event is occurring at 1650+ at the (bottom) left hand side >> intersection. The figure is also attached. >> >> Regards >> Radha >> >> On Mon, Jun 7, 2021 at 8:38 AM Jakob Erdmann >> wrote: >> >>> Please attach your scenario files and state the time and vehicle id >>> where this occurs. >>> >>> Am Mo., 7. Juni 2021 um 09:34 Uhr schrieb Radha Reddy < >>> radha.reddy@gmail.com>: >>> Hello Jakob, I set both parameters as you suggested (lcLaneDiscipline="1" latAlignment="center"). Before it was too many vehicles shared a single lane side-by-side. Even after setting those parameters the *problem still exists* but very few instances. Please check the below vType definitions. Regards Radha >>> length="5" minGap="5" maxSpeed="8.333" vClass="passenger" probability="0.5" carFollowModel="ACC" sigma="0" tau="1" color="1, 1, 0" eClass="HBEFA3/PC_G_EU4" lcLaneDiscipline="1" latAlignment="center"/> >>> length="5" minGap="5" maxSpeed="8.333" vClass="passenger" probability="0.5" sigma="0.5" tau="1" color="1, 1, 1" eClass="HBEFA3/PC_G_EU4" lcLaneDiscipline="1" latAlignment="center"/> On Mon, Jun 7, 2021 at 8:12 AM Jakob Erdmann wrote: > Set vType attribute lcLaneDiscipline="1" latAlignment="center" and do > not set lcTurnAlignmentDistance. > > Am Fr., 4. Juni 2021 um 14:58 Uhr schrieb Radha Reddy < > radha.reddy@gmail.com>: > >> Hello, >> >> I'm getting a different behavior than expected. Two vehicles are >> sharing the same lane side-by-side. >> >> Please check the attached figure, and provide me a solution, thus >> vehicles follow FIFO, but not sharing the same lane side-by-side. >> >> Regards >> Radha >> ___ >> sumo-user mailing list >> sumo-user@eclipse.org >> To unsubscribe from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > ___ > sumo-user mailing list > sumo-user@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user >>> ___ >>> sumo-user mailing list >>> sumo-user@eclipse.org >>> To unsubscribe from this list, visit >>> https://www.eclipse.org/mailman/listinfo/sumo-user >>> >> ___ >> sumo-user mailing list >> sumo-user@eclipse.org >> To unsubscribe from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > ___ > sumo-user mailing list > sumo-user@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] Two vehicles sharing the same lane
Your scenario fails to run on my machine. Please provide a traci-traceFile instead: https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html#generating_a_log_of_all_traci_commands (along with any required input files such as generated traffic). Am Mo., 7. Juni 2021 um 10:00 Uhr schrieb Radha Reddy < radha.reddy@gmail.com>: > Hello Jakob, > > Please check the zip attachment for the scenario. Mongodb needs to be > active to run the attached scenario. > The event is occurring at 1650+ at the (bottom) left hand side > intersection. The figure is also attached. > > Regards > Radha > > On Mon, Jun 7, 2021 at 8:38 AM Jakob Erdmann > wrote: > >> Please attach your scenario files and state the time and vehicle id where >> this occurs. >> >> Am Mo., 7. Juni 2021 um 09:34 Uhr schrieb Radha Reddy < >> radha.reddy@gmail.com>: >> >>> Hello Jakob, >>> >>> I set both parameters as you suggested (lcLaneDiscipline="1" >>> latAlignment="center"). Before it was too many vehicles shared a single >>> lane side-by-side. Even after setting those parameters the *problem >>> still exists* but very few instances. >>> >>> Please check the below vType definitions. >>> >>> Regards >>> Radha >>> >>> >>> >>> >> length="5" minGap="5" maxSpeed="8.333" vClass="passenger" probability="0.5" >>> carFollowModel="ACC" sigma="0" tau="1" color="1, 1, 0" >>> eClass="HBEFA3/PC_G_EU4" lcLaneDiscipline="1" latAlignment="center"/> >>> >> minGap="5" maxSpeed="8.333" vClass="passenger" probability="0.5" >>> sigma="0.5" tau="1" color="1, 1, 1" eClass="HBEFA3/PC_G_EU4" >>> lcLaneDiscipline="1" latAlignment="center"/> >>> >>> >>> >>> On Mon, Jun 7, 2021 at 8:12 AM Jakob Erdmann >>> wrote: >>> Set vType attribute lcLaneDiscipline="1" latAlignment="center" and do not set lcTurnAlignmentDistance. Am Fr., 4. Juni 2021 um 14:58 Uhr schrieb Radha Reddy < radha.reddy@gmail.com>: > Hello, > > I'm getting a different behavior than expected. Two vehicles are > sharing the same lane side-by-side. > > Please check the attached figure, and provide me a solution, thus > vehicles follow FIFO, but not sharing the same lane side-by-side. > > Regards > Radha > ___ > sumo-user mailing list > sumo-user@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user >>> ___ >>> sumo-user mailing list >>> sumo-user@eclipse.org >>> To unsubscribe from this list, visit >>> https://www.eclipse.org/mailman/listinfo/sumo-user >>> >> ___ >> sumo-user mailing list >> sumo-user@eclipse.org >> To unsubscribe from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > ___ > sumo-user mailing list > sumo-user@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] Using vType additional file with flowrouter.py
Loaded detectors are only used as sources or sinks if they have attribute type="source" or type="sink". However, their flow data will always be used. The only case where this matters is, if your network has source and sinks that cannot be deduced from the network topology. You can check the deduced ones with option --source-sink-output. Am Di., 15. Juni 2021 um 14:36 Uhr schrieb Alejandro Rodríguez Sánchez < alrod...@ucm.es>: > Thanks Jakob, it's running now I'll let you know if something comes out > badly. > > One concern I have is this message that appears now,: > Loaded 0 sources and 0 sinks from detector file. Added 117 sources and 100 > sinks from the network > > Should be worried about this? This is how I run flowrouter and I attach > the detectors position and measures files: > > python3 $SUMO_HOME/tools/detector/flowrouter.py -n sumonetwork.net.xml -d > detectors_Madrid_11-2019.xml -f 11-11-2019_randomdetectors_Madrid.csv -o > routes.xml -e flows.xml -v --source-sink-output sourceSink.xml > --flow-poi-output flow_poi.xml -i 60 > > El mar, 15 jun 2021 a las 11:28, Jakob Erdmann () > escribió: > >> flowrouter does not support additional files so you must use >> --params="type=\"vdist1\"" >> You may still want to add the default params departSpeed="max" >> departPos="last" departLane="best" in addition to that. >> >> Am Di., 15. Juni 2021 um 11:23 Uhr schrieb Alejandro Rodríguez Sánchez < >> alrod...@ucm.es>: >> >>> Hi everyone, >>> >>> I am reading the flowrouter documentation but I still have a question >>> about vTypes in flowrouter. >>> If I have previously defined a vehicle distribution let's say named >>> "vdist1" in an additional file (e.g. myvdist.add.xml), how should I let >>> flowrouter.py know that I want to use the "vdist1" vehicle distribution in >>> order to calculate the routes? >>> Should I call --params="type=\"vdist1"" or should I call the additional >>> file? And how do I call the additional file to flowrouter? >>> >>> Regards, >>> Alejandro. >>> >>> -- >>> Alejandro Rodríguez Sánchez >>> PhD student >>> CIEMAT // Universidad Complutense de Madrid >>> 28040 Madrid >>> email: alrod...@ucm.es >>> Website: https://alexrsanchez.github.io/en/ >>> ___ >>> sumo-user mailing list >>> sumo-user@eclipse.org >>> To unsubscribe from this list, visit >>> https://www.eclipse.org/mailman/listinfo/sumo-user >>> >> ___ >> sumo-user mailing list >> sumo-user@eclipse.org >> To unsubscribe from this list, visit >> https://www.eclipse.org/mailman/listinfo/sumo-user >> > > > -- > Alejandro Rodríguez Sánchez > PhD student > CIEMAT // Universidad Complutense de Madrid > 28040 Madrid > email: alrod...@ucm.es > Website: https://alexrsanchez.github.io/en/ > ___ > sumo-user mailing list > sumo-user@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] A question about setSpeed command
setSpeed remains active until reset with setSpeed(vehID, -1). Note, that by default, setSpeed only acts as an upper bound on speed because all the safety feature are still active. See https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html#speed_mode_0xb3 Am Di., 15. Juni 2021 um 15:33 Uhr schrieb MohamadReza-Haghani < haghani@gmail.com>: > Hi, > > I was wondering to know whether the setSpeed command sets the speed equal > to > a value and makes sure that the speed is kept constant for the rest of the > simulation. I used this command in my simulation: > > traci.vehicle.setSpeed(veh_id, traci.vehicle.getSpeed(veh_id) - 1) > > I also used an IF statement before it to make sure the command is performed > just once. What I see in the simulation is that the speed of the vehicle is > reduced and it is kept eqaul to the initial speed minus one until the end > of > the simulation. However, what I need is that the speed is reduced once and, > in the continuation, is calculated based on the SUMO's car following model. > I appreciate any help. > > Regards, > Reza. > > > > -- > Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ > ___ > sumo-user mailing list > sumo-user@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] A question about setSpeed command
Hi, I was wondering to know whether the setSpeed command sets the speed equal to a value and makes sure that the speed is kept constant for the rest of the simulation. I used this command in my simulation: traci.vehicle.setSpeed(veh_id, traci.vehicle.getSpeed(veh_id) - 1) I also used an IF statement before it to make sure the command is performed just once. What I see in the simulation is that the speed of the vehicle is reduced and it is kept eqaul to the initial speed minus one until the end of the simulation. However, what I need is that the speed is reduced once and, in the continuation, is calculated based on the SUMO's car following model. I appreciate any help. Regards, Reza. -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Re: [sumo-user] Using vType additional file with flowrouter.py
flowrouter does not support additional files so you must use --params="type=\"vdist1\"" You may still want to add the default params departSpeed="max" departPos="last" departLane="best" in addition to that. Am Di., 15. Juni 2021 um 11:23 Uhr schrieb Alejandro Rodríguez Sánchez < alrod...@ucm.es>: > Hi everyone, > > I am reading the flowrouter documentation but I still have a question > about vTypes in flowrouter. > If I have previously defined a vehicle distribution let's say named > "vdist1" in an additional file (e.g. myvdist.add.xml), how should I let > flowrouter.py know that I want to use the "vdist1" vehicle distribution in > order to calculate the routes? > Should I call --params="type=\"vdist1"" or should I call the additional > file? And how do I call the additional file to flowrouter? > > Regards, > Alejandro. > > -- > Alejandro Rodríguez Sánchez > PhD student > CIEMAT // Universidad Complutense de Madrid > 28040 Madrid > email: alrod...@ucm.es > Website: https://alexrsanchez.github.io/en/ > ___ > sumo-user mailing list > sumo-user@eclipse.org > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Using vType additional file with flowrouter.py
Hi everyone, I am reading the flowrouter documentation but I still have a question about vTypes in flowrouter. If I have previously defined a vehicle distribution let's say named "vdist1" in an additional file (e.g. myvdist.add.xml), how should I let flowrouter.py know that I want to use the "vdist1" vehicle distribution in order to calculate the routes? Should I call --params="type=\"vdist1"" or should I call the additional file? And how do I call the additional file to flowrouter? Regards, Alejandro. -- Alejandro Rodríguez Sánchez PhD student CIEMAT // Universidad Complutense de Madrid 28040 Madrid email: alrod...@ucm.es Website: https://alexrsanchez.github.io/en/ ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user