[sumo-user] Question

2020-04-28 Thread Mohamadreza Haghani
Hi all, I intend to perform simulation in sub-lane model. I was wondering to know whether there is a way to make vehicles drive in specific sub-lanes. For instance, making a vehicle to drive in rightmost sub-lanes. Thanks, Reza. ___ sumo-user mailing

[sumo-user] Lane change state

2020-09-03 Thread MohamadReza-Haghani
Hi, I was wondering to get the state of a vehicle with TraCI commands to see whether the vehicle is in the middle of lane changing or not. I used "getLaneChangeState" command. However, I did not understand the results of this command. Based on the link

Re: [sumo-user] Cooperative lane-changing

2020-09-03 Thread MohamadReza-Haghani
Thank you very much for your information. -- 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] Lane change state

2020-09-07 Thread MohamadReza-Haghani
Thank you. I appreciate your guidance. -- 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] Lane change state

2020-09-07 Thread MohamadReza-Haghani
I also found some new lane-changing states including 393216, 407684, 67108864 that I could not find the meaning. I would appreciate if you could help me figure out their meaning. Kind regards, Reza. -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/

Re: [sumo-user] Lane change state

2020-09-09 Thread MohamadReza-Haghani
Thank you. -- 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] SUMO rewind

2020-09-14 Thread MohamadReza-Haghani
Hi, I was wondering to know whether there is a possibility in SUMO to rewind the simulation. Kind regards, Reza. -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from

Re: [sumo-user] Lane change state

2020-09-04 Thread MohamadReza-Haghani
Thank you for your information. I was wondering to know if there is any limitation in forming the bit set. For instance, only one of the lane changing motivations can be in the bit set or more than one of them can occur at once. I also would like to know that urgent can only come with strategic

Re: [sumo-user] Problem with laneChange command in TraCI

2020-08-17 Thread MohamadReza-Haghani
Thank you very much dear Jakob for your detailed answers. I did all your solutions but did not get what I needed. The main problem is that min lat gap is not observed. I set min lat gap to 1.8, but I still see that vehicles come closer than this limit to each other. I was wondering to know whether

Re: [sumo-user] Problem with laneChange command in TraCI

2020-08-18 Thread MohamadReza-Haghani
In the link that you sent, it was written "enforce lateral gaps by braking if lateral evasion is not possible." I was wondering how this should be done. Thanks, Reza. -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user

Re: [sumo-user] Cooperative lane-changing

2020-08-22 Thread MohamadReza-Haghani
I was wondering to know whether vehicles perform cooperative lane-changing only in reaction to failed strategic lane changes or any other lane change type. I would to know if a vehicle is ordered by TraCI to do lane changing and fails in performing it, other vehicles will do cooperative

Re: [sumo-user] Problem with laneChange command in TraCI

2020-08-22 Thread MohamadReza-Haghani
I really appreciate your help. I set "lateral-resolution = lane Width", and it worked as I expected. Best, Reza. -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from

Re: [sumo-user] Change the volume of traffic flows in TraCI

2020-08-19 Thread MohamadReza-Haghani
Thank you very much. -- 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] Cooperative lane-changing

2020-08-19 Thread MohamadReza-Haghani
Hi, I would like to know more about the details of cooperative lane-changing. I read the article about lane-changing by Jakob (Erdmann, J., 2015. SUMO’s lane-changing model. In Modeling Mobility with Open Data (pp. 105-123). Springer, Cham.). However, it did not give details about cooperative

Re: [sumo-user] Problem with laneChange command in TraCI

2020-08-19 Thread MohamadReza-Haghani
The same thing happened in my simulation, and vehicles did not brake to prevent it. The width of a passenger car is 1.8 m, and the minGapLat was set to 1.5 m. Therefore, when three vehicles move side by side in two lanes, the min lateral gap was not observed. Please find attached a screenshot of

[sumo-user] Vertical movement of vehicles

2020-08-26 Thread MohamadReza-Haghani
Hi, I have encountered some situations in the simulation in which vehicles move vertically to change lane. This happens mostly in congested areas. I was wondering to know how I can prevent it. Please find attached a recorded video of this behavior. Regards, Reza. ezyzip_(3).zip

Re: [sumo-user] Vertical movement of vehicles

2020-08-27 Thread MohamadReza-Haghani
Hi Chris, Thank you for your guidance. I was wondering to know changing what parameter in lane changing model will help me prevent that situation. Best, Reza. -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing

[sumo-user] Creating on-ramp

2020-08-23 Thread MohamadReza-Haghani
Hi, I intend to make a connection between a three-lane road segment to a two-lane segment in order to create the merging point of a highway on-ramp. However, the third lane of the first segment cannot make a connection to the second segment. I was wondering to know how I can make this connection.

Re: [sumo-user] Cooperative lane-changing

2020-08-24 Thread MohamadReza-Haghani
I was wondering to know how I can adjust the cooperative lane changing or create another cooperative lane-changing and speed adjustment to react to failed TraCI lane change commands. I would like to know how I can find the codes behind SUMO's cooperative lane-changing and speed adjustments.

Re: [sumo-user] Creating on-ramp

2020-08-24 Thread MohamadReza-Haghani
Thanks. -- 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 in Set Lateral Alignment in TraCI

2020-07-15 Thread MohamadReza-Haghani
Hi, I wrote a code, in TraCI, in order to make vehicles to pull over and stop in a two-lane one-way road and in a specified duration. For the vehicles moving in the right lane, the lateral alignment is set to "right," and the speed is set to 0. Also vehicles in the left lane are forced to change

Re: [sumo-user] Problem with laneChange command in TraCI

2020-07-19 Thread MohamadReza-Haghani
In order to make my modeling more close to reality I need to use the sublane model. However, I was wondering to know if there is any way to force two vehicles not to occupy the same lane in the same distance from the origin. In this way, when a vehicle intends to change its lane, it does not

Re: [sumo-user] Change the volume of traffic flows in TraCI

2020-08-03 Thread MohamadReza-Haghani
Thank you very much Herald and Jakob. I really appreciate for your help. -- 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

Re: [sumo-user] The definition of time loss in tripinfo output

2020-08-03 Thread MohamadReza-Haghani
Thank you very much for your answer. -- 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] Change the volume of traffic flows in TraCI

2020-08-13 Thread MohamadReza-Haghani
Dear Herald, Could you explain more about the code you are proposing, please? I searched about it and found nothing useful. Best, Reza. -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing list

Re: [sumo-user] Problem with laneChange command in TraCI

2020-08-13 Thread MohamadReza-Haghani
I used vehicle.changeLane. I want the vehicle to first change its lane. Then, when the vehicle is in the right lane, I order it to change its sublane and pull over to the right side of the lane. Please fine attached a screenshot of my code here.

Re: [sumo-user] Problem with xml2csv.py

2020-07-13 Thread MohamadReza-Haghani
Thank you very much. I moved their folder to another address with permission to write and got the output. However, different attributes were in a single cell in the output csv file. Therefore, I added an schema (https://github.com/eclipse/sumo/blob/master/data/xsd/fcd_file.xsd) in xsd format to

Re: [sumo-user] Problem with xml2csv.py

2020-07-13 Thread MohamadReza-Haghani
Thanks. I did accordingly and installed lxml. Now when I run the command "python xml2csv.py tripinfo.xml --xsd=tripinfo.xsd --validation," it does not show any error. However, the same problem still exists that all of the attributes for a vehicle are in a single cell in the csv file. I would like

Re: [sumo-user] Problem with xml2csv.py

2020-07-14 Thread MohamadReza-Haghani
Thank you very much Harald. I added "--separator=','", and the output csv file became in the correct format. I really appreciate your help. -Reza -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing list

Re: [sumo-user] Change the volume of traffic flows in TraCI

2020-07-23 Thread MohamadReza-Haghani
Hi Giuliana, Thank you very much for your answer. What I am trying to do is not changing the traffic flow in the middle of simulation. I wrote a loop for running the simulation several times that you can see it here.

[sumo-user] Change the volume of traffic flows in TraCI

2020-07-22 Thread MohamadReza-Haghani
Hi, I am writing a code in TraCI module of Python. I was wondering to know whether there is any way to change the traffic volume of a flow in TraCI. I appreciate for any help. Best, Reza. -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/

Re: [sumo-user] Change the volume of traffic flows in TraCI

2020-07-30 Thread MohamadReza-Haghani
Hi Giuliana, Thank you. That was really a great help. I intend to use a random number for volume in each run. I searched about that if a random number can be generated in xml and found a command. However, it did not worked and gave the following error in Python. "Error: Attribute 'number' in

[sumo-user] The definition of time loss in tripinfo output

2020-07-30 Thread MohamadReza-Haghani
Hi, I utilized the "setSpeed" command in TraCI to set the speed of vehicles to zero and back to the speed limit after a few seconds when a specific condition becomes true. I was wondering to know whether the delay due to this stop is included in the time loss of tripinfo output. I appreciate in

[sumo-user] Problem with laneChange command in TraCI

2020-07-18 Thread MohamadReza-Haghani
Hi, I am using laneChange command in TraCI to force a vehicle to change its lane. The lane changing works well except when the target lane is congested. It seems that the vehicle starts changing its lane first and when it finds out that there is no open space in the target lane, it stops in the

Re: [sumo-user] Change the volume of traffic flows in TraCI

2020-08-16 Thread MohamadReza-Haghani
Thank you Jakob. I appreciate your solution. However, I have several flows and want them to increase with different rates. -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing list sumo-user@eclipse.org To

Re: [sumo-user] Problem with laneChange command in TraCI

2020-08-16 Thread MohamadReza-Haghani
Please find attached the required files. No, I did not change any vehicle attribute before the lane change command. I was wondering if the lane changing behavior of vehicles can be changed in a way that two vehicles do not occupy the same lane at the same distance from the origin while using

[sumo-user] Driving between two opposing lane

2021-01-19 Thread MohamadReza-Haghani
Hi, I have figured out that the movement of vehicles between two opposing lanes (when a half of vehicle is in the first direction's lane and the other half is in the other direction's lane) is impossible in SUMO. I was wondering to know whether this option will be added to SUMO. Regards, Reza.

Re: [sumo-user] Driving between two opposing lane

2021-02-01 Thread MohamadReza-Haghani
Thanks. Do you mean that I can use the "changesublane" command to make vehicles move between two opposing lanes? -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this

[sumo-user] A question about setSpeed command

2021-06-15 Thread MohamadReza-Haghani
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

Re: [sumo-user] A question about setSpeed command

2021-06-17 Thread MohamadReza-Haghani
Thank you for your kind response. That was a great help. -- 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

Re: [sumo-user] Lane changing and car following models for connected and autonomous vehicles

2021-06-17 Thread MohamadReza-Haghani
Thank you for your response. -- 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] Lane changing and car following models for connected and autonomous vehicles

2021-06-01 Thread MohamadReza-Haghani
Hi, I intend to simulate connected and autonomous vehicles in my simulation. I was wondering to know whether I should use the default car following and lane changing models for them or other models such as IDM. Regards, Reza. -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/

Re: [sumo-user] Driving between two opposing lane

2021-02-01 Thread MohamadReza-Haghani
I used the following code to do it, but it did not worked. Please find attached all the supplementary files. ezyzip_(3).zip -- Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/

[sumo-user] Change lane and move between other vehicles

2021-03-03 Thread MohamadReza-Haghani
Hi, I intend to write a code in TraCI to order a vehicle to change lane and move to a free space between two specific vehicles in the target lane. I was wondering to know what command is appropriate for this purpose. Using the "changeLane" command, vehicles would change lane, but it is not

Re: [sumo-user] Change lane and move between other vehicles

2021-03-04 Thread MohamadReza-Haghani
Thanks Jakob. I appreciate for your help. It was really helpful. -- 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