[sumo-user] vehicle postion in sumo
HI, I have a query regarding vehicles' position in sumo. Can we have multiple vehicles at the same position and lane in sumo? We are seeing pos as 7.80 and speed 0.00 for 3 vehicles at some timestep and wondering why they would get the same position. We are using the following flags Thanks, Mahima ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] create lcModel
Hi, I have a query regarding creating lcModel for a vehicle. At what timestep, does the lcmodel created for each vehicle? Does it depend on the loading of routes? I can see it is created much before the depart time of a vehicle. How can I control it? Thanks, Mahima ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] LCA_TRACI
HI, I have a question regarding LCA_TRACI. When would this request be raised? I ran my parallel application which runs on top of sumo using libsumo, at a timestep vehicle shows stateRight value as "2048" On the other hand, when I run the same traffic and network using sumo command, I can see the stateRight value at the same timestep to be "2136". Why TRACI request bit is 1 here? Can we turn off TRACI requests? When we use libsumo, TRACI lane change requests are still generated? Thanks, Mahima ___ 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] vehicle set speed issue
Yes, calling setPreviousSpeed after the moveTo call resolved this issue. Thanks, Mahima On Mon, May 15, 2023 at 10:59 PM Mahima wrote: > Thanks for your reply. > No, even setPreviousSpeed is not updating the speed. I think this is > because myState.mySpeed is getting updated only in executeMove() and there > is no other API which updates myState.mySpeed including step(). > > > On Mon, May 15, 2023 at 5:21 PM Jakob Erdmann > wrote: > >> To set the speed after calling executeMove, use the function >> vehicle.setPreviousSpeed >> >> Am Mo., 15. Mai 2023 um 13:39 Uhr schrieb Mahima : >> >>> Hi Jakob, >>> >>> I guess this is the issue related to excuteMove(). If we call >>> executeMove(), then we move the vehicle and update the speed of the vehicle >>> after this using setSpeedMode(veh, 32) and slowDown() and we finally call >>> step(). >>> Here, the speedTimeline is not getting updated to myState.mySpeed for >>> the current step. This is the reason that getSpeed() is giving old speed >>> before calling slowDown. >>> >>> On the older branch when executeMove() was not there...I was able to >>> change speed in the current step. >>> >>> >>> Thanks, >>> Mahima >>> >>> On Fri, May 12, 2023 at 1:56 PM Jakob Erdmann >>> wrote: >>> >>>> In my test, the vehicle changes speed instantly (i.e. also in the >>>> departure step). The speed limit isn't even relevant since the speedMode >>>> makes the vehicle ignore limits). >>>> Feel free to provide a minimal failure example, preferably as a python >>>> script or python traci command log. >>>> >>>> Am Fr., 12. Mai 2023 um 09:44 Uhr schrieb Mahima : >>>> >>>>> Hi Sumo team, >>>>> >>>>> Any inputs from your side? >>>>> >>>>> Thanks >>>>> >>>>> On Thu, 11 May 2023, 13:50 Mahima, wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I am adding a vehicle on a lane with max depart speed (max speed of >>>>>> this lane is 16.67). >>>>>> >>>>>> Now, in the same timestep I am moving this vehicle to the next lane >>>>>> (max speed of this lane is 27.78). I want to change the speed of this >>>>>> vehicle to 22.27. >>>>>> But, when I check the fcd file, the position and lane changes as per >>>>>> the moveTo but speed remains 16.67 only. Please suggest why the speed is >>>>>> not going beyond the depart speed in this timestep and how I can achieve >>>>>> this. Thanks >>>>>> >>>>>> I am using the following steps: >>>>>> >>>>>> libsumo::Vehicle::setSpeedMode(2, 32); >>>>>> libsumo::Vehicle::slowDown(2, 22.27, 0); >>>>>> libsumo::Vehicle::moveTo(2, lane_id, lane_pos); >>>>>> >>>>>> >>>>>> ___ >>>>> 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] vehicle set speed issue
Thanks for your reply. No, even setPreviousSpeed is not updating the speed. I think this is because myState.mySpeed is getting updated only in executeMove() and there is no other API which updates myState.mySpeed including step(). On Mon, May 15, 2023 at 5:21 PM Jakob Erdmann wrote: > To set the speed after calling executeMove, use the function > vehicle.setPreviousSpeed > > Am Mo., 15. Mai 2023 um 13:39 Uhr schrieb Mahima : > >> Hi Jakob, >> >> I guess this is the issue related to excuteMove(). If we call >> executeMove(), then we move the vehicle and update the speed of the vehicle >> after this using setSpeedMode(veh, 32) and slowDown() and we finally call >> step(). >> Here, the speedTimeline is not getting updated to myState.mySpeed for the >> current step. This is the reason that getSpeed() is giving old speed before >> calling slowDown. >> >> On the older branch when executeMove() was not there...I was able to >> change speed in the current step. >> >> >> Thanks, >> Mahima >> >> On Fri, May 12, 2023 at 1:56 PM Jakob Erdmann >> wrote: >> >>> In my test, the vehicle changes speed instantly (i.e. also in the >>> departure step). The speed limit isn't even relevant since the speedMode >>> makes the vehicle ignore limits). >>> Feel free to provide a minimal failure example, preferably as a python >>> script or python traci command log. >>> >>> Am Fr., 12. Mai 2023 um 09:44 Uhr schrieb Mahima : >>> >>>> Hi Sumo team, >>>> >>>> Any inputs from your side? >>>> >>>> Thanks >>>> >>>> On Thu, 11 May 2023, 13:50 Mahima, wrote: >>>> >>>>> Hi, >>>>> >>>>> I am adding a vehicle on a lane with max depart speed (max speed of >>>>> this lane is 16.67). >>>>> >>>>> Now, in the same timestep I am moving this vehicle to the next lane >>>>> (max speed of this lane is 27.78). I want to change the speed of this >>>>> vehicle to 22.27. >>>>> But, when I check the fcd file, the position and lane changes as per >>>>> the moveTo but speed remains 16.67 only. Please suggest why the speed is >>>>> not going beyond the depart speed in this timestep and how I can achieve >>>>> this. Thanks >>>>> >>>>> I am using the following steps: >>>>> >>>>> libsumo::Vehicle::setSpeedMode(2, 32); >>>>> libsumo::Vehicle::slowDown(2, 22.27, 0); >>>>> libsumo::Vehicle::moveTo(2, lane_id, lane_pos); >>>>> >>>>> >>>>> ___ >>>> 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] vehicle set speed issue
Hi Jakob, I guess this is the issue related to excuteMove(). If we call executeMove(), then we move the vehicle and update the speed of the vehicle after this using setSpeedMode(veh, 32) and slowDown() and we finally call step(). Here, the speedTimeline is not getting updated to myState.mySpeed for the current step. This is the reason that getSpeed() is giving old speed before calling slowDown. On the older branch when executeMove() was not there...I was able to change speed in the current step. Thanks, Mahima On Fri, May 12, 2023 at 1:56 PM Jakob Erdmann wrote: > In my test, the vehicle changes speed instantly (i.e. also in the > departure step). The speed limit isn't even relevant since the speedMode > makes the vehicle ignore limits). > Feel free to provide a minimal failure example, preferably as a python > script or python traci command log. > > Am Fr., 12. Mai 2023 um 09:44 Uhr schrieb Mahima : > >> Hi Sumo team, >> >> Any inputs from your side? >> >> Thanks >> >> On Thu, 11 May 2023, 13:50 Mahima, wrote: >> >>> Hi, >>> >>> I am adding a vehicle on a lane with max depart speed (max speed of this >>> lane is 16.67). >>> >>> Now, in the same timestep I am moving this vehicle to the next lane (max >>> speed of this lane is 27.78). I want to change the speed of this vehicle to >>> 22.27. >>> But, when I check the fcd file, the position and lane changes as per the >>> moveTo but speed remains 16.67 only. Please suggest why the speed is not >>> going beyond the depart speed in this timestep and how I can achieve this. >>> Thanks >>> >>> I am using the following steps: >>> >>> libsumo::Vehicle::setSpeedMode(2, 32); >>> libsumo::Vehicle::slowDown(2, 22.27, 0); >>> libsumo::Vehicle::moveTo(2, lane_id, lane_pos); >>> >>> >>> ___ >> 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] vehicle set speed issue
Hi Sumo team, Any inputs from your side? Thanks On Thu, 11 May 2023, 13:50 Mahima, wrote: > Hi, > > I am adding a vehicle on a lane with max depart speed (max speed of this > lane is 16.67). > > Now, in the same timestep I am moving this vehicle to the next lane (max > speed of this lane is 27.78). I want to change the speed of this vehicle to > 22.27. > But, when I check the fcd file, the position and lane changes as per the > moveTo but speed remains 16.67 only. Please suggest why the speed is not > going beyond the depart speed in this timestep and how I can achieve this. > Thanks > > I am using the following steps: > > libsumo::Vehicle::setSpeedMode(2, 32); > libsumo::Vehicle::slowDown(2, 22.27, 0); > libsumo::Vehicle::moveTo(2, lane_id, lane_pos); > > > ___ 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] vehicle set speed issue
Yes, I did try increasing the duration to 5. Still id does not change the speed in fcd. Thanks On Thu, May 11, 2023 at 2:48 PM Lokesh Das wrote: > Hi, > > This is because you are using the duration parameter value as zero in your > slowdown method. Please take a look at the manual. If you set the duration > to 0 seconds, the vehicle won't be able to set your new speed. Typically, > the slowDown method sets your new speed up to a given duration (in > seconds) and gets back to its original speed after that. > Thanks & Regards, > [image: UofM logo] > > Lokesh Chandra Das > Ph.D. Student | Computer Science > Graduate Teaching Assistant > The University of Memphis > email: lokeshd...@gmail.com > > > On Thu, May 11, 2023 at 5:51 AM Mahima wrote: > >> Hi, >> >> I am adding a vehicle on a lane with max depart speed (max speed of this >> lane is 16.67). >> >> Now, in the same timestep I am moving this vehicle to the next lane (max >> speed of this lane is 27.78). I want to change the speed of this vehicle to >> 22.27. >> But, when I check the fcd file, the position and lane changes as per the >> moveTo but speed remains 16.67 only. Please suggest why the speed is not >> going beyond the depart speed in this timestep and how I can achieve this. >> Thanks >> >> I am using the following steps: >> >> libsumo::Vehicle::setSpeedMode(2, 32); >> libsumo::Vehicle::slowDown(2, 22.27, 0); >> libsumo::Vehicle::moveTo(2, lane_id, lane_pos); >> >> >> ___ >> 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] vehicle set speed issue
Hi, I am adding a vehicle on a lane with max depart speed (max speed of this lane is 16.67). Now, in the same timestep I am moving this vehicle to the next lane (max speed of this lane is 27.78). I want to change the speed of this vehicle to 22.27. But, when I check the fcd file, the position and lane changes as per the moveTo but speed remains 16.67 only. Please suggest why the speed is not going beyond the depart speed in this timestep and how I can achieve this. Thanks I am using the following steps: libsumo::Vehicle::setSpeedMode(2, 32); libsumo::Vehicle::slowDown(2, 22.27, 0); libsumo::Vehicle::moveTo(2, lane_id, lane_pos); ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] unable to run sumo using command line on master
Hi, I am using the sumo master codebase. I am unable to run sumo using the command line. Although the below sumocfg file with the following command was working fine on the older codebase. Do I need to change anything on the master? *command:* sumo/bin/sumo -c tmp.sumocfg --tripinfo-output sumo-trip.xml --fcd-output fcd.xml *tmp.sumocfg:* The issue is that the simumation never ends at the end time. It just keeps on showing the step0. Find the screenshot below. [image: image.png] Thanks, Mahima ___ 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] vehicle parameters for the current step
Hi Jakob, Hope you are well. As discussed during the Sumo conference, that executeMove() in libsumo can be used to take a half step and read the speed of vehicles for the next timestep. But the sumo master branch does not look stable and gives the following error. Please provide a stable branch to use. CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find Python (missing: Python_EXECUTABLE Python_INCLUDE_DIRS Python_LIBRARIES Interpreter Development Development.Module Development.Embed) Call Stack (most recent call first): /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.22/Modules/FindPython.cmake:561 (find_package_handle_standard_args) CMakeLists.txt:217 (find_package) Thanks, Mahima On Sun, Sep 25, 2022 at 12:01 PM Mahima wrote: > Hi, > > Is there any way to read the vehicle's speed, lane and position in the > current timestep? > > libsumo::Vehicle::getLanePosition > libsumo::Vehicle::getSpeed > All these APIs, give information about the last timestep. > > Thanks > ___ 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] vehicle parameters for the current step
Yes, I have checked sigma is 0. Do we have a similar function in libsumo like processLinkApproaches() that can give me vSafe? Just found out that to calculate speed for the next step, sumo calculates using processLinkApproaches() and NOT as follows. double vthis=LastTimestepSpeed+ACCEL2SPEED(LastTimestepAcceleration); Thanks for your help. On Wed, Feb 22, 2023 at 4:41 PM Jakob Erdmann wrote: > Have you checked the actual value of sigma being used by the vehicles in > the type parameter dialog of sumo-gui? > > Am Mi., 22. Feb. 2023 um 14:38 Uhr schrieb Mahima : > >> But I am keeping sigma = 0. >> >> For sigma 0, vMax should be used as next speed and not vDawdle. >> vDawdle = MAX2(vMin, dawdle2(vMax, sigma, veh->getRNG())); >> >> On Wed, Feb 22, 2023 at 4:32 PM Jakob Erdmann >> wrote: >> >>> > This randomness calculation should be off when we use --random false. >>> No. This is not what option --random does. >>> Please see https://sumo.dlr.de/docs/Simulation/Randomness.html >>> As long as vehicles have sigma > 0 (default is 0.5) there will be random >>> speed fluctuations between your partitions. >>> >>> Am Mi., 22. Feb. 2023 um 14:23 Uhr schrieb Mahima : >>> >>>> Hi, >>>> >>>> We have developed a parallel framework over SUMO. When I am copying >>>> vehicles from one partition to another. With the vehicles I am also copying >>>> the following lane change parameters. I am keeping sigma 0, --random false >>>> and same seed value for all the partitions and sequential SUMO. >>>> >>>> "laneChangeModel.speedGainProbabilityRight" >>>> "laneChangeModel.keepRightProbability" >>>> "laneChangeModel.lookAheadSpeed" >>>> >>>> After adding vehicles in the next partition, I am also moving them for >>>> the desired position in the current step and setting speed for the current >>>> step. >>>> i am calculating the current step speed as follows: >>>> >>>> double vthis=LastTimestepSpeed+ACCEL2SPEED(LastTimestepAcceleration); >>>> Or if the vehicle has a Leader...then with the follow speed. >>>> >>>> But if I compare travel time of this parallel framework with sequential >>>> SUMO, I am getting an accuracy error. >>>> >>>> I have found that patchSpeedBeforeLC is calculating some different >>>> speed which is causing randomness. >>>> >>>> vDawdle = MAX2(vMin, dawdle2(vMax, sigma, veh->getRNG())); >>>> >>>> This randomness calculation should be off when we use --random false. >>>> >>>> Thanks, >>>> Mahima >>>> >>>> On Wed, Feb 22, 2023 at 1:41 PM Jakob Erdmann >>>> wrote: >>>> >>>>> The function getStopSpeed is not only used for elements but >>>>> also for approaching intersections where a vehicle needs to come to a >>>>> stop. >>>>> From your description it is not clear what exactly you are doing and >>>>> why you are observing a differences between some speeds and some other >>>>> speeds. >>>>> >>>>> >>>>> Am Di., 21. Feb. 2023 um 14:24 Uhr schrieb Mahima >>>> >: >>>>> >>>>>> Thanks for your reply. >>>>>> Yes, sigma is already set as 0. The only difference I can see is the >>>>>> stop speed (getStopSpeed) is different. >>>>>> >>>>>> How can I set the stop speed of a vehicle? Is it by using >>>>>> libsumo::Vehicle::setStopParameter? But then I need to define the stop >>>>>> first...correct? >>>>>> >>>>>> Thanks. >>>>>> >>>>>> On Sun, Feb 19, 2023 at 3:28 PM Jakob Erdmann >>>>>> wrote: >>>>>> >>>>>>> > Why does the vehicle need information about the vehicle on the >>>>>>> previous edge for the car following model speed calculation? >>>>>>> This is likely a misunderstanding. What gives you that impression? >>>>>>> >>>>>>> > How can I set the car following model parameters from the previous >>>>>>> partition to the master partition such that it gives the same speed >>>>>>> calculation of a vehicle? >>>>>>> The default car-following model doesn't have internal sta
Re: [sumo-user] vehicle parameters for the current step
I have one more question, how can i calculate friction in my calculation. In finalize speed, you are also considering fric= veh->getFriction(). On Wed, Feb 22, 2023 at 4:36 PM Mahima wrote: > But I am keeping sigma = 0. > > For sigma 0, vMax should be used as next speed and not vDawdle. > vDawdle = MAX2(vMin, dawdle2(vMax, sigma, veh->getRNG())); > > On Wed, Feb 22, 2023 at 4:32 PM Jakob Erdmann > wrote: > >> > This randomness calculation should be off when we use --random false. >> No. This is not what option --random does. >> Please see https://sumo.dlr.de/docs/Simulation/Randomness.html >> As long as vehicles have sigma > 0 (default is 0.5) there will be random >> speed fluctuations between your partitions. >> >> Am Mi., 22. Feb. 2023 um 14:23 Uhr schrieb Mahima : >> >>> Hi, >>> >>> We have developed a parallel framework over SUMO. When I am copying >>> vehicles from one partition to another. With the vehicles I am also copying >>> the following lane change parameters. I am keeping sigma 0, --random false >>> and same seed value for all the partitions and sequential SUMO. >>> >>> "laneChangeModel.speedGainProbabilityRight" >>> "laneChangeModel.keepRightProbability" >>> "laneChangeModel.lookAheadSpeed" >>> >>> After adding vehicles in the next partition, I am also moving them for >>> the desired position in the current step and setting speed for the current >>> step. >>> i am calculating the current step speed as follows: >>> >>> double vthis=LastTimestepSpeed+ACCEL2SPEED(LastTimestepAcceleration); >>> Or if the vehicle has a Leader...then with the follow speed. >>> >>> But if I compare travel time of this parallel framework with sequential >>> SUMO, I am getting an accuracy error. >>> >>> I have found that patchSpeedBeforeLC is calculating some different speed >>> which is causing randomness. >>> >>> vDawdle = MAX2(vMin, dawdle2(vMax, sigma, veh->getRNG())); >>> >>> This randomness calculation should be off when we use --random false. >>> >>> Thanks, >>> Mahima >>> >>> On Wed, Feb 22, 2023 at 1:41 PM Jakob Erdmann >>> wrote: >>> >>>> The function getStopSpeed is not only used for elements but also >>>> for approaching intersections where a vehicle needs to come to a stop. >>>> From your description it is not clear what exactly you are doing and >>>> why you are observing a differences between some speeds and some other >>>> speeds. >>>> >>>> >>>> Am Di., 21. Feb. 2023 um 14:24 Uhr schrieb Mahima : >>>> >>>>> Thanks for your reply. >>>>> Yes, sigma is already set as 0. The only difference I can see is the >>>>> stop speed (getStopSpeed) is different. >>>>> >>>>> How can I set the stop speed of a vehicle? Is it by using >>>>> libsumo::Vehicle::setStopParameter? But then I need to define the stop >>>>> first...correct? >>>>> >>>>> Thanks. >>>>> >>>>> On Sun, Feb 19, 2023 at 3:28 PM Jakob Erdmann >>>>> wrote: >>>>> >>>>>> > Why does the vehicle need information about the vehicle on the >>>>>> previous edge for the car following model speed calculation? >>>>>> This is likely a misunderstanding. What gives you that impression? >>>>>> >>>>>> > How can I set the car following model parameters from the previous >>>>>> partition to the master partition such that it gives the same speed >>>>>> calculation of a vehicle? >>>>>> The default car-following model doesn't have internal state so it >>>>>> should reproduce the same behavior when faced with the same situation >>>>>> (distance, ego speed, leader speed, deceleration capabilities, >>>>>> speedFactor). A possible cause for difference is the random component >>>>>> (sigma). You can check whether the differences are due to randomness by >>>>>> setting sigma=0. >>>>>> >>>>>> Am So., 19. Feb. 2023 um 11:36 Uhr schrieb Mahima >>>>> >: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> Why does the vehicle need information about the vehicle on the >>>>
Re: [sumo-user] vehicle parameters for the current step
But I am keeping sigma = 0. For sigma 0, vMax should be used as next speed and not vDawdle. vDawdle = MAX2(vMin, dawdle2(vMax, sigma, veh->getRNG())); On Wed, Feb 22, 2023 at 4:32 PM Jakob Erdmann wrote: > > This randomness calculation should be off when we use --random false. > No. This is not what option --random does. > Please see https://sumo.dlr.de/docs/Simulation/Randomness.html > As long as vehicles have sigma > 0 (default is 0.5) there will be random > speed fluctuations between your partitions. > > Am Mi., 22. Feb. 2023 um 14:23 Uhr schrieb Mahima : > >> Hi, >> >> We have developed a parallel framework over SUMO. When I am copying >> vehicles from one partition to another. With the vehicles I am also copying >> the following lane change parameters. I am keeping sigma 0, --random false >> and same seed value for all the partitions and sequential SUMO. >> >> "laneChangeModel.speedGainProbabilityRight" >> "laneChangeModel.keepRightProbability" >> "laneChangeModel.lookAheadSpeed" >> >> After adding vehicles in the next partition, I am also moving them for >> the desired position in the current step and setting speed for the current >> step. >> i am calculating the current step speed as follows: >> >> double vthis=LastTimestepSpeed+ACCEL2SPEED(LastTimestepAcceleration); >> Or if the vehicle has a Leader...then with the follow speed. >> >> But if I compare travel time of this parallel framework with sequential >> SUMO, I am getting an accuracy error. >> >> I have found that patchSpeedBeforeLC is calculating some different speed >> which is causing randomness. >> >> vDawdle = MAX2(vMin, dawdle2(vMax, sigma, veh->getRNG())); >> >> This randomness calculation should be off when we use --random false. >> >> Thanks, >> Mahima >> >> On Wed, Feb 22, 2023 at 1:41 PM Jakob Erdmann >> wrote: >> >>> The function getStopSpeed is not only used for elements but also >>> for approaching intersections where a vehicle needs to come to a stop. >>> From your description it is not clear what exactly you are doing and why >>> you are observing a differences between some speeds and some other speeds. >>> >>> >>> Am Di., 21. Feb. 2023 um 14:24 Uhr schrieb Mahima : >>> >>>> Thanks for your reply. >>>> Yes, sigma is already set as 0. The only difference I can see is the >>>> stop speed (getStopSpeed) is different. >>>> >>>> How can I set the stop speed of a vehicle? Is it by using >>>> libsumo::Vehicle::setStopParameter? But then I need to define the stop >>>> first...correct? >>>> >>>> Thanks. >>>> >>>> On Sun, Feb 19, 2023 at 3:28 PM Jakob Erdmann >>>> wrote: >>>> >>>>> > Why does the vehicle need information about the vehicle on the >>>>> previous edge for the car following model speed calculation? >>>>> This is likely a misunderstanding. What gives you that impression? >>>>> >>>>> > How can I set the car following model parameters from the previous >>>>> partition to the master partition such that it gives the same speed >>>>> calculation of a vehicle? >>>>> The default car-following model doesn't have internal state so it >>>>> should reproduce the same behavior when faced with the same situation >>>>> (distance, ego speed, leader speed, deceleration capabilities, >>>>> speedFactor). A possible cause for difference is the random component >>>>> (sigma). You can check whether the differences are due to randomness by >>>>> setting sigma=0. >>>>> >>>>> Am So., 19. Feb. 2023 um 11:36 Uhr schrieb Mahima >>>> >: >>>>> >>>>>> Hi, >>>>>> >>>>>> Why does the vehicle need information about the vehicle on the >>>>>> previous edge for the car following model speed calculation? >>>>>> How can I set the car following model parameters from the previous >>>>>> partition to the master partition such that it gives the same speed >>>>>> calculation of a vehicle? >>>>>> >>>>>> Thanks >>>>>> >>>>>> On Wed, Sep 28, 2022 at 9:48 AM Jakob Erdmann >>>>>> wrote: >>>>>> >>>>>>> using getParameter / setParameter with the following value
Re: [sumo-user] vehicle parameters for the current step
Hi, We have developed a parallel framework over SUMO. When I am copying vehicles from one partition to another. With the vehicles I am also copying the following lane change parameters. I am keeping sigma 0, --random false and same seed value for all the partitions and sequential SUMO. "laneChangeModel.speedGainProbabilityRight" "laneChangeModel.keepRightProbability" "laneChangeModel.lookAheadSpeed" After adding vehicles in the next partition, I am also moving them for the desired position in the current step and setting speed for the current step. i am calculating the current step speed as follows: double vthis=LastTimestepSpeed+ACCEL2SPEED(LastTimestepAcceleration); Or if the vehicle has a Leader...then with the follow speed. But if I compare travel time of this parallel framework with sequential SUMO, I am getting an accuracy error. I have found that patchSpeedBeforeLC is calculating some different speed which is causing randomness. vDawdle = MAX2(vMin, dawdle2(vMax, sigma, veh->getRNG())); This randomness calculation should be off when we use --random false. Thanks, Mahima On Wed, Feb 22, 2023 at 1:41 PM Jakob Erdmann wrote: > The function getStopSpeed is not only used for elements but also > for approaching intersections where a vehicle needs to come to a stop. > From your description it is not clear what exactly you are doing and why > you are observing a differences between some speeds and some other speeds. > > > Am Di., 21. Feb. 2023 um 14:24 Uhr schrieb Mahima : > >> Thanks for your reply. >> Yes, sigma is already set as 0. The only difference I can see is the stop >> speed (getStopSpeed) is different. >> >> How can I set the stop speed of a vehicle? Is it by using >> libsumo::Vehicle::setStopParameter? But then I need to define the stop >> first...correct? >> >> Thanks. >> >> On Sun, Feb 19, 2023 at 3:28 PM Jakob Erdmann >> wrote: >> >>> > Why does the vehicle need information about the vehicle on the >>> previous edge for the car following model speed calculation? >>> This is likely a misunderstanding. What gives you that impression? >>> >>> > How can I set the car following model parameters from the previous >>> partition to the master partition such that it gives the same speed >>> calculation of a vehicle? >>> The default car-following model doesn't have internal state so it should >>> reproduce the same behavior when faced with the same situation (distance, >>> ego speed, leader speed, deceleration capabilities, speedFactor). A >>> possible cause for difference is the random component (sigma). You can >>> check whether the differences are due to randomness by setting sigma=0. >>> >>> Am So., 19. Feb. 2023 um 11:36 Uhr schrieb Mahima : >>> >>>> Hi, >>>> >>>> Why does the vehicle need information about the vehicle on the previous >>>> edge for the car following model speed calculation? >>>> How can I set the car following model parameters from the previous >>>> partition to the master partition such that it gives the same speed >>>> calculation of a vehicle? >>>> >>>> Thanks >>>> >>>> On Wed, Sep 28, 2022 at 9:48 AM Jakob Erdmann >>>> wrote: >>>> >>>>> using getParameter / setParameter with the following values should be >>>>> enough for the default lanechangem model: >>>>> "laneChangeModel.speedGainProbabilityRight" >>>>> "laneChangeModel.keepRightProbability" >>>>> "laneChangeModel.lookAheadSpeed" >>>>> >>>>> Am Mo., 26. Sept. 2022 um 09:58 Uhr schrieb Mahima >>>> >: >>>>> >>>>>> When I am copying a vehicle from one partition to the other on the >>>>>> same lane and position as it was on the previous partition, but in the >>>>>> current timestep if there was a lane change decision in the previous >>>>>> partition..which lane change API or flag will give me the same lane >>>>>> change decision in the master partition. >>>>>> In this scenario, I am already making sure that the neighbouring >>>>>> vehicles for this vehicle are the same as on the previous partition. >>>>>> >>>>>> Please suggest. >>>>>> >>>>>> On Mon, Sep 26, 2022 at 9:39 AM Jakob Erdmann >>>>>> wrote: >>>>>> >>>>>>> No. TraCI runs before the computation of this step's
Re: [sumo-user] vehicle parameters for the current step
Thanks for your reply. Yes, sigma is already set as 0. The only difference I can see is the stop speed (getStopSpeed) is different. How can I set the stop speed of a vehicle? Is it by using libsumo::Vehicle::setStopParameter? But then I need to define the stop first...correct? Thanks. On Sun, Feb 19, 2023 at 3:28 PM Jakob Erdmann wrote: > > Why does the vehicle need information about the vehicle on the previous > edge for the car following model speed calculation? > This is likely a misunderstanding. What gives you that impression? > > > How can I set the car following model parameters from the previous > partition to the master partition such that it gives the same speed > calculation of a vehicle? > The default car-following model doesn't have internal state so it should > reproduce the same behavior when faced with the same situation (distance, > ego speed, leader speed, deceleration capabilities, speedFactor). A > possible cause for difference is the random component (sigma). You can > check whether the differences are due to randomness by setting sigma=0. > > Am So., 19. Feb. 2023 um 11:36 Uhr schrieb Mahima : > >> Hi, >> >> Why does the vehicle need information about the vehicle on the previous >> edge for the car following model speed calculation? >> How can I set the car following model parameters from the previous >> partition to the master partition such that it gives the same speed >> calculation of a vehicle? >> >> Thanks >> >> On Wed, Sep 28, 2022 at 9:48 AM Jakob Erdmann >> wrote: >> >>> using getParameter / setParameter with the following values should be >>> enough for the default lanechangem model: >>> "laneChangeModel.speedGainProbabilityRight" >>> "laneChangeModel.keepRightProbability" >>> "laneChangeModel.lookAheadSpeed" >>> >>> Am Mo., 26. Sept. 2022 um 09:58 Uhr schrieb Mahima : >>> >>>> When I am copying a vehicle from one partition to the other on the same >>>> lane and position as it was on the previous partition, but in the current >>>> timestep if there was a lane change decision in the previous >>>> partition..which lane change API or flag will give me the same lane >>>> change decision in the master partition. >>>> In this scenario, I am already making sure that the neighbouring >>>> vehicles for this vehicle are the same as on the previous partition. >>>> >>>> Please suggest. >>>> >>>> On Mon, Sep 26, 2022 at 9:39 AM Jakob Erdmann >>>> wrote: >>>> >>>>> No. TraCI runs before the computation of this step's values ( >>>>> https://sumo.dlr.de/docs/Developer/Implementation_Notes/Simulation_Loop.html#main_vehicle_update_loop >>>>> ) >>>>> >>>>> Am So., 25. Sept. 2022 um 11:02 Uhr schrieb Mahima >>>> >: >>>>> >>>>>> Hi, >>>>>> >>>>>> Is there any way to read the vehicle's speed, lane and position in >>>>>> the current timestep? >>>>>> >>>>>> libsumo::Vehicle::getLanePosition >>>>>> libsumo::Vehicle::getSpeed >>>>>> All these APIs, give information about the last timestep. >>>>>> >>>>>> Thanks >>>>>> ___ >>>>>> 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] vehicle parameters for the current step
Hi, Why does the vehicle need information about the vehicle on the previous edge for the car following model speed calculation? How can I set the car following model parameters from the previous partition to the master partition such that it gives the same speed calculation of a vehicle? Thanks On Wed, Sep 28, 2022 at 9:48 AM Jakob Erdmann wrote: > using getParameter / setParameter with the following values should be > enough for the default lanechangem model: > "laneChangeModel.speedGainProbabilityRight" > "laneChangeModel.keepRightProbability" > "laneChangeModel.lookAheadSpeed" > > Am Mo., 26. Sept. 2022 um 09:58 Uhr schrieb Mahima : > >> When I am copying a vehicle from one partition to the other on the same >> lane and position as it was on the previous partition, but in the current >> timestep if there was a lane change decision in the previous >> partition..which lane change API or flag will give me the same lane >> change decision in the master partition. >> In this scenario, I am already making sure that the neighbouring >> vehicles for this vehicle are the same as on the previous partition. >> >> Please suggest. >> >> On Mon, Sep 26, 2022 at 9:39 AM Jakob Erdmann >> wrote: >> >>> No. TraCI runs before the computation of this step's values ( >>> https://sumo.dlr.de/docs/Developer/Implementation_Notes/Simulation_Loop.html#main_vehicle_update_loop >>> ) >>> >>> Am So., 25. Sept. 2022 um 11:02 Uhr schrieb Mahima : >>> >>>> Hi, >>>> >>>> Is there any way to read the vehicle's speed, lane and position in the >>>> current timestep? >>>> >>>> libsumo::Vehicle::getLanePosition >>>> libsumo::Vehicle::getSpeed >>>> All these APIs, give information about the last timestep. >>>> >>>> Thanks >>>> ___ >>>> 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] sumo speed in current timestep
Thanks, this worked On Tue, Feb 7, 2023 at 10:39 AM Jakob Erdmann wrote: > By default, setSpeed is still limited by various constraints (save > followSpeed, desired speed etc.). You can use setSpeedMode to relax these > constraints: > https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html#speed_mode_0xb3 > > Am Di., 7. Feb. 2023 um 08:24 Uhr schrieb Olivier Paviot < > olivier.pavi...@gmail.com>: > >> hello, yes I've experienced the same behavior last days, but probably it >> is due to misunderstanding of the API from my side, but I've temporarily >> solve the issue by the setMaxSpeed() >> >> Le mar. 7 févr. 2023 à 08:10, Mahima a écrit : >> >>> Yes I am using this but cannot see it changed in the fcd file. I have >>> also tried slowdown. >>> >>> On Tue, 7 Feb 2023, 09:32 Jakob Erdmann, wrote: >>> >>>> traci.vehicle.setSpeed >>>> >>>> Am Di., 7. Feb. 2023 um 00:50 Uhr schrieb Mahima : >>>> >>>>> Hi, >>>>> >>>>> How can I change vehicle speed in the current timestep? >>>>> >>>>> THanks >>>>> ___ >>>>> 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] sumo speed in current timestep
Yes I am using this but cannot see it changed in the fcd file. I have also tried slowdown. On Tue, 7 Feb 2023, 09:32 Jakob Erdmann, wrote: > traci.vehicle.setSpeed > > Am Di., 7. Feb. 2023 um 00:50 Uhr schrieb Mahima : > >> Hi, >> >> How can I change vehicle speed in the current timestep? >> >> THanks >> ___ >> 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] sumo speed in current timestep
Hi, How can I change vehicle speed in the current timestep? THanks ___ 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] Vehicle lane change state
Thanks, Jakob. But there is no setLateralLanePosition in libsumo to set this. On Mon, Feb 6, 2023 at 4:23 PM Jakob Erdmann wrote: > For the default model, the sigmaState is equal to > `traci.vehicle.getLateralLanePosition` (there is no internal mySigmaState > variable). > The requirement of setting this for the default lane change model is now > tracked here: https://github.com/eclipse/sumo/issues/12568 > > Am Mo., 6. Feb. 2023 um 12:22 Uhr schrieb Mahima : > >> Hi Jakob, >> >> Can you please add the following to the default lane change model? >> >> } else if (key == "sigmaState") { >> mySigmaState = doubleValue; >> >> I would like to copy sigma state of each vehicle from one partition to >> another. >> >> Thanks >> >> On Fri, Sep 16, 2022 at 10:30 AM Jakob Erdmann >> wrote: >> >>> The latest development version contains experimental read/write access >>> to the internal state of the lane change models using the >>> vehicle.setParameter / getParameter API >>> i.e. traci.vehicle.getParameter(vehID, >>> laneChangeModel.keepRightProbability"), traci.vehicle.setParameter(vehID, >>> laneChangeModel.keepRightProbability", str(0.5)) >>> see >>> https://github.com/eclipse/sumo/commit/c82cfca0a62a89d2409469dc892729715afa2770 >>> (note, the pre-compiled binaries will not reflect this change until >>> tomorrow). >>> >>> regards, >>> Jakob >>> >>> Am Do., 15. Sept. 2022 um 09:56 Uhr schrieb Mahima : >>> >>>> Thanks, for your reply. >>>> I am using the default car following and lane change models. >>>> Actually, I am working on a parallel version of sumo and I am moving >>>> vehicles from one partition to another. With the vehicle I also want to >>>> copy the lanechange state and value of keepRightProbability. So that my >>>> vehicle shows the same lane change behavior as it was on the previous >>>> partition. Currently, when I am just moving the vehicle without copying the >>>> lanechange state it is showing sudden lane change to right at the red >>>> traffic light. On the other hand, if run on sumo it stays on the leftmost >>>> lane for all these timesteps. >>>> >>>> I read the following and thought of copying the lanechangestate as well. >>>> *In the current lane-changing model, each vehicle maintains a variable >>>> keepRightProbability which is decremented over time and triggers a lane >>>> change to the right once a lower threshold value is exceeded (negative >>>> values are used in allusion to the variable speedGainProbability).* >>>> >>>> Please suggest how I can set the same lane change bitmask. >>>> >>>> Thanks. >>>> >>>> On Thu, Sep 15, 2022 at 10:44 AM Jakob Erdmann >>>> wrote: >>>> >>>>> This cannot currently be done. >>>>> What effects in terms of simulation behavior would you like to see in >>>>> response to changing the lane change state? >>>>> >>>>> Am Do., 15. Sept. 2022 um 09:30 Uhr schrieb Mahima >>>> >: >>>>> >>>>>> Hi, >>>>>> >>>>>> I have a query regarding setting lane change state of a vehicle. I am >>>>>> moving a vehicle using moveTo. I also want to set the same lane change >>>>>> state of this vehicle as at the previous position. >>>>>> >>>>>> Please suggest how this can be done. >>>>>> >>>>>> Thanks, >>>>>> ___ >>>>>> 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] Vehicle lane change state
Hi Jakob, Can you please add the following to the default lane change model? } else if (key == "sigmaState") { mySigmaState = doubleValue; I would like to copy sigma state of each vehicle from one partition to another. Thanks On Fri, Sep 16, 2022 at 10:30 AM Jakob Erdmann wrote: > The latest development version contains experimental read/write access to > the internal state of the lane change models using the vehicle.setParameter > / getParameter API > i.e. traci.vehicle.getParameter(vehID, > laneChangeModel.keepRightProbability"), traci.vehicle.setParameter(vehID, > laneChangeModel.keepRightProbability", str(0.5)) > see > https://github.com/eclipse/sumo/commit/c82cfca0a62a89d2409469dc892729715afa2770 > (note, the pre-compiled binaries will not reflect this change until > tomorrow). > > regards, > Jakob > > Am Do., 15. Sept. 2022 um 09:56 Uhr schrieb Mahima : > >> Thanks, for your reply. >> I am using the default car following and lane change models. >> Actually, I am working on a parallel version of sumo and I am moving >> vehicles from one partition to another. With the vehicle I also want to >> copy the lanechange state and value of keepRightProbability. So that my >> vehicle shows the same lane change behavior as it was on the previous >> partition. Currently, when I am just moving the vehicle without copying the >> lanechange state it is showing sudden lane change to right at the red >> traffic light. On the other hand, if run on sumo it stays on the leftmost >> lane for all these timesteps. >> >> I read the following and thought of copying the lanechangestate as well. >> *In the current lane-changing model, each vehicle maintains a variable >> keepRightProbability which is decremented over time and triggers a lane >> change to the right once a lower threshold value is exceeded (negative >> values are used in allusion to the variable speedGainProbability).* >> >> Please suggest how I can set the same lane change bitmask. >> >> Thanks. >> >> On Thu, Sep 15, 2022 at 10:44 AM Jakob Erdmann >> wrote: >> >>> This cannot currently be done. >>> What effects in terms of simulation behavior would you like to see in >>> response to changing the lane change state? >>> >>> Am Do., 15. Sept. 2022 um 09:30 Uhr schrieb Mahima : >>> >>>> Hi, >>>> >>>> I have a query regarding setting lane change state of a vehicle. I am >>>> moving a vehicle using moveTo. I also want to set the same lane change >>>> state of this vehicle as at the previous position. >>>> >>>> Please suggest how this can be done. >>>> >>>> Thanks, >>>> ___ >>>> 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] sumo vehicle speed
Hi Minko Thanks for your reply. I just want to get the speed and position in the current timestep and not the last timestep. Is there any way? Thanks On Tue, 24 Jan 2023, 10:45 m.bartha...@t-online.de, wrote: > Hi Mahima, > > > > if you want to control the vehicle dynamics completely with your own > logic, then please refer to vehicle.setSpeed and vehicle.moveToXY > functions. You will have to call them in every time step you want the > vehicle to follow your custom rules. On the opposite calling > vehicle.slowDown with a positive duration > 0 will make the vehicle adapt > its speed taking into account safety and dynamic constraints (gap, max. > accel/decel). If you want to deactivate some constraints regarding speed, > there is vehicle.setSpeedMode (see docs > <https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html#speed_mode_0xb3> > ). > > > > Best regards > > Mirko > > > > > > > > > > -Original-Nachricht----- > > Betreff: [sumo-user] sumo vehicle speed > > Datum: 2023-01-23T16:36:07+0100 > > Von: "Mahima" > > An: "Sumo project User discussions" > > > > > > > Hi, > > I want to move the vehicle to some edge. > > I read speed, accel and position using these commands which give values of > the last timestep. > libsumo::Vehicle::getLanePosition(veh)); > libsumo::Vehicle::getSpeed(veh)); > libsumo::Vehicle::getAcceleration(veh) > > And then I use the following commands in the current timestep so that I > get the desired position and speed in the next timestep. > libsumo::Vehicle::setPreviousSpeed(veh, speed, accel); > libsumo::Vehicle::moveTo(veh, cmd.lane_id(), lane_pos); > > Then, I check the leader > double frontGapNeeded = libsumo::Vehicle::getSecureGap(veh, speed, > libsumo::Vehicle::getSpeed(leader.first), > libsumo::Vehicle::getDecel(leader.first)); > > double followSpeed=libsumo::Vehicle::getFollowSpeed(veh, speed, > frontGapNeeded, libsumo::Vehicle::getSpeed(leader.first), > libsumo::Vehicle::getDecel(leader.first), leader.first); > > double frontMax = frontGapNeeded + (-leader.second); > double new_speed = std::min(speed, followSpeed); > > double pos = std::min(lane_pos, frontMax); > > Then, i set the vehicle speed as per the leader. > libsumo::Vehicle::slowDown(veh, followSpeed, 0); > > But, I am not getting desired results. Is there any way to get speed in > the current timestep? > > Thanks > > > > > ___ > 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] sumo vehicle speed
Hi, I want to move the vehicle to some edge. I read speed, accel and position using these commands which give values of the last timestep. libsumo::Vehicle::getLanePosition(veh)); libsumo::Vehicle::getSpeed(veh)); libsumo::Vehicle::getAcceleration(veh) And then I use the following commands in the current timestep so that I get the desired position and speed in the next timestep. libsumo::Vehicle::setPreviousSpeed(veh, speed, accel); libsumo::Vehicle::moveTo(veh, cmd.lane_id(), lane_pos); Then, I check the leader double frontGapNeeded = libsumo::Vehicle::getSecureGap(veh, speed, libsumo::Vehicle::getSpeed(leader.first), libsumo::Vehicle::getDecel(leader.first)); double followSpeed=libsumo::Vehicle::getFollowSpeed(veh, speed, frontGapNeeded, libsumo::Vehicle::getSpeed(leader.first), libsumo::Vehicle::getDecel(leader.first), leader.first); double frontMax = frontGapNeeded + (-leader.second); double new_speed = std::min(speed, followSpeed); double pos = std::min(lane_pos, frontMax); Then, i set the vehicle speed as per the leader. libsumo::Vehicle::slowDown(veh, followSpeed, 0); But, I am not getting desired results. Is there any way to get speed in the current timestep? Thanks ___ 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 regarding sumo lane change
Hi, I can see that in the current sumo implementation, vehicle lane change is dependent upon the whole route visibility of this vehicle. Is there a way so that the vehicle lane change decision takes place only as per the next edge visibility and not the whole route. For instance, if I run the same vehicle with a shorter route and a longer route, the lane change decisions will be different. Can we change this implementation in sumo code? Can you please help me with this? Thanks, Mahima ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] teleporting
Hi, If we disable teleport means "". Does the vehicle stay forever on the arrival edge? or it vaporises after some time? Thanks ___ 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] libsumo GUI
Thanks, Michael. It is now trying to open the GUI. But I am getting the following error. I am running two parallel instances of sumo. [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. qsumo: ../../src/xcb_io.c:165: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed. [DAUBQSUMO002:17633] *** Process received signal *** [DAUBQSUMO002:17633] Signal: Aborted (6) [DAUBQSUMO002:17633] Signal code: (-6) [DAUBQSUMO002:17633] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0x12980)[0x7fd12c732980] [DAUBQSUMO002:17633] [ 1] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xc7)[0x7fd12c36de87] [DAUBQSUMO002:17633] [ 2] /lib/x86_64-linux-gnu/libc.so.6(abort+0x141)[0x7fd12c36f7f1] [DAUBQSUMO002:17633] [ 3] /lib/x86_64-linux-gnu/libc.so.6(+0x303fa)[0x7fd12c35f3fa] [DAUBQSUMO002:17633] [ 4] /lib/x86_64-linux-gnu/libc.so.6(+0x30472)[0x7fd12c35f472] [DAUBQSUMO002:17633] [ 5] /usr/lib/x86_64-linux-gnu/libX11.so.6(+0x3da9c)[0x7fd128462a9c] [DAUBQSUMO002:17633] [ 6] /usr/lib/x86_64-linux-gnu/libX11.so.6(_XReply+0x28b)[0x7fd12846393b] Can you please suggest what else is missing at my end? Thanks On Tue, Oct 4, 2022 at 10:12 PM Michael Behrisch wrote: > Hi, > yes please set the environment variable LIBSUMO_GUI or use > Simulation::start with sumo-gui as first argument. > I added this to the docs. > > Best regards, > Michael > > Am 04.10.22 um 15:29 schrieb Mahima: > > bool > > GUI::load(const std::vector& /* cmd */) { > > if (myWindow != nullptr) { > > WRITE_ERROR("libsumo.load is not implemented for the GUI."); > > return true; > > } > > return false; > > } > > > > How "Simulation::load" will work for GUI? I guess we need to use > > Simulation::start. Do we need to set env "LIBSUMO_GUI"? > > > > Please helpI need it urgently. > > > > On Tue, Oct 4, 2022 at 11:50 AM Mahima > <mailto:mahim...@gmail.com>> wrote: > > > > I can use sumo-gui in the same repository. But, only > > libsumo::Simulation::load and libsumo::Simulation::step is not > > launching GUI. > > > > On Tue, Oct 4, 2022 at 11:30 AM Mahima > <mailto:mahim...@gmail.com>> wrote: > > > > Just wanted to add that I am trying this on Ubuntu 18.04.6. > > > > thanks > > > > On Tue, Oct 4, 2022 at 12:28 AM Mahima > <mailto:mahim...@gmail.com>> wrote: > > > > I have tried the below test, but no GUI is launching. > > Definitely, there is something missing. Do we need to enable > > flags related to FOX? > > > > #include #define HAVE_LIBSUMOGUI // if you are on > > Windows or have libsumo compiled yourself without GUI you > > should remove this line#include > > usingnamespacelibsumo; int main(int argc, > > char* argv[]) { Simulation::load({"-c", "test.sumocfg"}); > > for(inti = 0; i < 5; i++) { Simulation::step(); } > > Simulation::close(); } > > > > On Mon, Oct 3, 2022 at 10:17 PM Mahima > <mailto:mahim...@gmail.com>> wrote: > > > > Please suggest I have followed instructions as per > > Libsumo - SUMO Documentation (dlr.de) > > <https://sumo.dlr.de/docs/Libsumo.html> > > Still I cannot see any GUI running. Is there any other > > #define to be enabled too? > > > > Thanks > > > > On Sun, Oct 2, 2022 at 5:07 PM Mahima > > mailto:mahim...@gmail.com>> wrote: > > > > Thanks, Jakob. > > I can see this commit > > 8d48e88631fed2c6b317a3d5b86374d6c9901e1d. > > > > HAVE_LIBSUMOGUI is already defined in the code. On > > using the following commands, I cannot see any GUI > > being launched. > > libsumo::Simulation::load(sumo_options); > > libsumo::Simulation::step(); > > > > What Else do I need to change to view the simulation? > > > > Thanks, > > Mahima > > > > > > On Sun, Oct 2, 2022 at 4:04 PM Jakob Erdmann > > > <mailto:namdre.s...@gmail.com>> wrote: > > > >
Re: [sumo-user] libsumo GUI
bool GUI::load(const std::vector& /* cmd */) { if (myWindow != nullptr) { WRITE_ERROR("libsumo.load is not implemented for the GUI."); return true; } return false; } How "Simulation::load" will work for GUI? I guess we need to use Simulation::start. Do we need to set env "LIBSUMO_GUI"? Please helpI need it urgently. On Tue, Oct 4, 2022 at 11:50 AM Mahima wrote: > I can use sumo-gui in the same repository. But, only > libsumo::Simulation::load and libsumo::Simulation::step is not launching > GUI. > > On Tue, Oct 4, 2022 at 11:30 AM Mahima wrote: > >> Just wanted to add that I am trying this on Ubuntu 18.04.6. >> >> thanks >> >> On Tue, Oct 4, 2022 at 12:28 AM Mahima wrote: >> >>> I have tried the below test, but no GUI is launching. Definitely, there >>> is something missing. Do we need to enable flags related to FOX? >>> >>> #include #define HAVE_LIBSUMOGUI // if you are on Windows or >>> have libsumo compiled yourself without GUI you should remove this line # >>> include using namespace libsumo; int main(int argc, >>> char* argv[]) { Simulation::load({"-c", "test.sumocfg"}); for (int i = 0; >>> i < 5; i++) { Simulation::step(); } Simulation::close(); } >>> >>> On Mon, Oct 3, 2022 at 10:17 PM Mahima wrote: >>> >>>> Please suggest I have followed instructions as per Libsumo - SUMO >>>> Documentation (dlr.de) <https://sumo.dlr.de/docs/Libsumo.html> >>>> Still I cannot see any GUI running. Is there any other #define to be >>>> enabled too? >>>> >>>> Thanks >>>> >>>> On Sun, Oct 2, 2022 at 5:07 PM Mahima wrote: >>>> >>>>> Thanks, Jakob. >>>>> I can see this commit 8d48e88631fed2c6b317a3d5b86374d6c9901e1d. >>>>> >>>>> HAVE_LIBSUMOGUI is already defined in the code. On using the following >>>>> commands, I cannot see any GUI being launched. >>>>> libsumo::Simulation::load(sumo_options); >>>>> libsumo::Simulation::step(); >>>>> >>>>> What Else do I need to change to view the simulation? >>>>> >>>>> Thanks, >>>>> Mahima >>>>> >>>>> >>>>> On Sun, Oct 2, 2022 at 4:04 PM Jakob Erdmann >>>>> wrote: >>>>> >>>>>> Yes. But only on Linux. >>>>>> >>>>>> Am So., 2. Okt. 2022 um 12:36 Uhr schrieb Mahima >>>>> >: >>>>>> >>>>>>> Hi, >>>>>>> Do we have libsumo gui support? >>>>>>> >>>>>>> Thanks >>>>>>> ___ >>>>>>> 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] libsumo GUI
I can use sumo-gui in the same repository. But, only libsumo::Simulation::load and libsumo::Simulation::step is not launching GUI. On Tue, Oct 4, 2022 at 11:30 AM Mahima wrote: > Just wanted to add that I am trying this on Ubuntu 18.04.6. > > thanks > > On Tue, Oct 4, 2022 at 12:28 AM Mahima wrote: > >> I have tried the below test, but no GUI is launching. Definitely, there >> is something missing. Do we need to enable flags related to FOX? >> >> #include #define HAVE_LIBSUMOGUI // if you are on Windows or >> have libsumo compiled yourself without GUI you should remove this line # >> include using namespace libsumo; int main(int argc, >> char* argv[]) { Simulation::load({"-c", "test.sumocfg"}); for (int i = 0; >> i < 5; i++) { Simulation::step(); } Simulation::close(); } >> >> On Mon, Oct 3, 2022 at 10:17 PM Mahima wrote: >> >>> Please suggest I have followed instructions as per Libsumo - SUMO >>> Documentation (dlr.de) <https://sumo.dlr.de/docs/Libsumo.html> >>> Still I cannot see any GUI running. Is there any other #define to be >>> enabled too? >>> >>> Thanks >>> >>> On Sun, Oct 2, 2022 at 5:07 PM Mahima wrote: >>> >>>> Thanks, Jakob. >>>> I can see this commit 8d48e88631fed2c6b317a3d5b86374d6c9901e1d. >>>> >>>> HAVE_LIBSUMOGUI is already defined in the code. On using the following >>>> commands, I cannot see any GUI being launched. >>>> libsumo::Simulation::load(sumo_options); >>>> libsumo::Simulation::step(); >>>> >>>> What Else do I need to change to view the simulation? >>>> >>>> Thanks, >>>> Mahima >>>> >>>> >>>> On Sun, Oct 2, 2022 at 4:04 PM Jakob Erdmann >>>> wrote: >>>> >>>>> Yes. But only on Linux. >>>>> >>>>> Am So., 2. Okt. 2022 um 12:36 Uhr schrieb Mahima : >>>>> >>>>>> Hi, >>>>>> Do we have libsumo gui support? >>>>>> >>>>>> Thanks >>>>>> ___ >>>>>> 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] libsumo GUI
Just wanted to add that I am trying this on Ubuntu 18.04.6. thanks On Tue, Oct 4, 2022 at 12:28 AM Mahima wrote: > I have tried the below test, but no GUI is launching. Definitely, there is > something missing. Do we need to enable flags related to FOX? > > #include #define HAVE_LIBSUMOGUI // if you are on Windows or > have libsumo compiled yourself without GUI you should remove this line # > include using namespace libsumo; int main(int argc, > char* argv[]) { Simulation::load({"-c", "test.sumocfg"}); for (int i = 0; > i < 5; i++) { Simulation::step(); } Simulation::close(); } > > On Mon, Oct 3, 2022 at 10:17 PM Mahima wrote: > >> Please suggest I have followed instructions as per Libsumo - SUMO >> Documentation (dlr.de) <https://sumo.dlr.de/docs/Libsumo.html> >> Still I cannot see any GUI running. Is there any other #define to be >> enabled too? >> >> Thanks >> >> On Sun, Oct 2, 2022 at 5:07 PM Mahima wrote: >> >>> Thanks, Jakob. >>> I can see this commit 8d48e88631fed2c6b317a3d5b86374d6c9901e1d. >>> >>> HAVE_LIBSUMOGUI is already defined in the code. On using the following >>> commands, I cannot see any GUI being launched. >>> libsumo::Simulation::load(sumo_options); >>> libsumo::Simulation::step(); >>> >>> What Else do I need to change to view the simulation? >>> >>> Thanks, >>> Mahima >>> >>> >>> On Sun, Oct 2, 2022 at 4:04 PM Jakob Erdmann >>> wrote: >>> >>>> Yes. But only on Linux. >>>> >>>> Am So., 2. Okt. 2022 um 12:36 Uhr schrieb Mahima : >>>> >>>>> Hi, >>>>> Do we have libsumo gui support? >>>>> >>>>> Thanks >>>>> ___ >>>>> 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] libsumo GUI
I have tried the below test, but no GUI is launching. Definitely, there is something missing. Do we need to enable flags related to FOX? #include #define HAVE_LIBSUMOGUI // if you are on Windows or have libsumo compiled yourself without GUI you should remove this line # include using namespace libsumo; int main(int argc, char* argv[]) { Simulation::load({"-c", "test.sumocfg"}); for (int i = 0; i < 5; i++) { Simulation::step(); } Simulation::close(); } On Mon, Oct 3, 2022 at 10:17 PM Mahima wrote: > Please suggest I have followed instructions as per Libsumo - SUMO > Documentation (dlr.de) <https://sumo.dlr.de/docs/Libsumo.html> > Still I cannot see any GUI running. Is there any other #define to be > enabled too? > > Thanks > > On Sun, Oct 2, 2022 at 5:07 PM Mahima wrote: > >> Thanks, Jakob. >> I can see this commit 8d48e88631fed2c6b317a3d5b86374d6c9901e1d. >> >> HAVE_LIBSUMOGUI is already defined in the code. On using the following >> commands, I cannot see any GUI being launched. >> libsumo::Simulation::load(sumo_options); >> libsumo::Simulation::step(); >> >> What Else do I need to change to view the simulation? >> >> Thanks, >> Mahima >> >> >> On Sun, Oct 2, 2022 at 4:04 PM Jakob Erdmann >> wrote: >> >>> Yes. But only on Linux. >>> >>> Am So., 2. Okt. 2022 um 12:36 Uhr schrieb Mahima : >>> >>>> Hi, >>>> Do we have libsumo gui support? >>>> >>>> Thanks >>>> ___ >>>> 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] libsumo GUI
Please suggest I have followed instructions as per Libsumo - SUMO Documentation (dlr.de) <https://sumo.dlr.de/docs/Libsumo.html> Still I cannot see any GUI running. Is there any other #define to be enabled too? Thanks On Sun, Oct 2, 2022 at 5:07 PM Mahima wrote: > Thanks, Jakob. > I can see this commit 8d48e88631fed2c6b317a3d5b86374d6c9901e1d. > > HAVE_LIBSUMOGUI is already defined in the code. On using the following > commands, I cannot see any GUI being launched. > libsumo::Simulation::load(sumo_options); > libsumo::Simulation::step(); > > What Else do I need to change to view the simulation? > > Thanks, > Mahima > > > On Sun, Oct 2, 2022 at 4:04 PM Jakob Erdmann > wrote: > >> Yes. But only on Linux. >> >> Am So., 2. Okt. 2022 um 12:36 Uhr schrieb Mahima : >> >>> Hi, >>> Do we have libsumo gui support? >>> >>> Thanks >>> ___ >>> 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] libsumo GUI
Thanks, Jakob. I can see this commit 8d48e88631fed2c6b317a3d5b86374d6c9901e1d. HAVE_LIBSUMOGUI is already defined in the code. On using the following commands, I cannot see any GUI being launched. libsumo::Simulation::load(sumo_options); libsumo::Simulation::step(); What Else do I need to change to view the simulation? Thanks, Mahima On Sun, Oct 2, 2022 at 4:04 PM Jakob Erdmann wrote: > Yes. But only on Linux. > > Am So., 2. Okt. 2022 um 12:36 Uhr schrieb Mahima : > >> Hi, >> Do we have libsumo gui support? >> >> Thanks >> ___ >> 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] libsumo GUI
Hi, Do we have libsumo gui support? Thanks ___ 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] vehicle parameters for the current step
When I am copying a vehicle from one partition to the other on the same lane and position as it was on the previous partition, but in the current timestep if there was a lane change decision in the previous partition..which lane change API or flag will give me the same lane change decision in the master partition. In this scenario, I am already making sure that the neighbouring vehicles for this vehicle are the same as on the previous partition. Please suggest. On Mon, Sep 26, 2022 at 9:39 AM Jakob Erdmann wrote: > No. TraCI runs before the computation of this step's values ( > https://sumo.dlr.de/docs/Developer/Implementation_Notes/Simulation_Loop.html#main_vehicle_update_loop > ) > > Am So., 25. Sept. 2022 um 11:02 Uhr schrieb Mahima : > >> Hi, >> >> Is there any way to read the vehicle's speed, lane and position in the >> current timestep? >> >> libsumo::Vehicle::getLanePosition >> libsumo::Vehicle::getSpeed >> All these APIs, give information about the last timestep. >> >> Thanks >> ___ >> 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] Vehicle lane change state
Thanks for your reply. Using the latest development version, Can I copy paste the whole lane change bitset for a vehicle while moving the vehicle? - 2^0: stay - 2^1: left - 2^2: right - 2^3: strategic - 2^4: cooperative - 2^5: speedGain - 2^6: keepRight - 2^7: TraCI - 2^8: urgent - 2^9: blocked by left leader - 2^10: blocked by left follower - 2^11: blocked by right leader - 2^12: blocked by right follower - 2^13: overlapping - 2^14: insufficient space - 2^15: sublane On Fri, Sep 16, 2022 at 10:30 AM Jakob Erdmann wrote: > The latest development version contains experimental read/write access to > the internal state of the lane change models using the vehicle.setParameter > / getParameter API > i.e. traci.vehicle.getParameter(vehID, > laneChangeModel.keepRightProbability"), traci.vehicle.setParameter(vehID, > laneChangeModel.keepRightProbability", str(0.5)) > see > https://github.com/eclipse/sumo/commit/c82cfca0a62a89d2409469dc892729715afa2770 > (note, the pre-compiled binaries will not reflect this change until > tomorrow). > > regards, > Jakob > > Am Do., 15. Sept. 2022 um 09:56 Uhr schrieb Mahima : > >> Thanks, for your reply. >> I am using the default car following and lane change models. >> Actually, I am working on a parallel version of sumo and I am moving >> vehicles from one partition to another. With the vehicle I also want to >> copy the lanechange state and value of keepRightProbability. So that my >> vehicle shows the same lane change behavior as it was on the previous >> partition. Currently, when I am just moving the vehicle without copying the >> lanechange state it is showing sudden lane change to right at the red >> traffic light. On the other hand, if run on sumo it stays on the leftmost >> lane for all these timesteps. >> >> I read the following and thought of copying the lanechangestate as well. >> *In the current lane-changing model, each vehicle maintains a variable >> keepRightProbability which is decremented over time and triggers a lane >> change to the right once a lower threshold value is exceeded (negative >> values are used in allusion to the variable speedGainProbability).* >> >> Please suggest how I can set the same lane change bitmask. >> >> Thanks. >> >> On Thu, Sep 15, 2022 at 10:44 AM Jakob Erdmann >> wrote: >> >>> This cannot currently be done. >>> What effects in terms of simulation behavior would you like to see in >>> response to changing the lane change state? >>> >>> Am Do., 15. Sept. 2022 um 09:30 Uhr schrieb Mahima : >>> >>>> Hi, >>>> >>>> I have a query regarding setting lane change state of a vehicle. I am >>>> moving a vehicle using moveTo. I also want to set the same lane change >>>> state of this vehicle as at the previous position. >>>> >>>> Please suggest how this can be done. >>>> >>>> Thanks, >>>> ___ >>>> 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] vehicle parameters for the current step
Hi, Is there any way to read the vehicle's speed, lane and position in the current timestep? libsumo::Vehicle::getLanePosition libsumo::Vehicle::getSpeed All these APIs, give information about the last timestep. Thanks ___ 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] Vehicle lane change state
Thanks, for your reply. I am using the default car following and lane change models. Actually, I am working on a parallel version of sumo and I am moving vehicles from one partition to another. With the vehicle I also want to copy the lanechange state and value of keepRightProbability. So that my vehicle shows the same lane change behavior as it was on the previous partition. Currently, when I am just moving the vehicle without copying the lanechange state it is showing sudden lane change to right at the red traffic light. On the other hand, if run on sumo it stays on the leftmost lane for all these timesteps. I read the following and thought of copying the lanechangestate as well. *In the current lane-changing model, each vehicle maintains a variable keepRightProbability which is decremented over time and triggers a lane change to the right once a lower threshold value is exceeded (negative values are used in allusion to the variable speedGainProbability).* Please suggest how I can set the same lane change bitmask. Thanks. On Thu, Sep 15, 2022 at 10:44 AM Jakob Erdmann wrote: > This cannot currently be done. > What effects in terms of simulation behavior would you like to see in > response to changing the lane change state? > > Am Do., 15. Sept. 2022 um 09:30 Uhr schrieb Mahima : > >> Hi, >> >> I have a query regarding setting lane change state of a vehicle. I am >> moving a vehicle using moveTo. I also want to set the same lane change >> state of this vehicle as at the previous position. >> >> Please suggest how this can be done. >> >> Thanks, >> ___ >> 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] Vehicle lane change state
Hi, I have a query regarding setting lane change state of a vehicle. I am moving a vehicle using moveTo. I also want to set the same lane change state of this vehicle as at the previous position. Please suggest how this can be done. Thanks, ___ 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 network map
Hi, Is there any option in sumo to load a network map with some disabled roads which can be enabled later during runtime? Thanks ___ 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 close reroute
Hi Jakob, Thanks for the reply. On calling this so as to close the lane, libsumo::Edge::setDisallowedVehicleClasses("79324",{"all"}); I get a segmentation fault with this error.what(): Vehicle '11' has no valid route. No connection between edge '179325' and edge '79324'. I was waiting that the vehicle should reroute when rerouting probability is set to 1. Why it is still searching for this edge? Thanks, Mahima On Thu, Jan 27, 2022 at 8:50 PM Jakob Erdmann wrote: > The network isn't modified and no new network is saved. The GUI operation > is equivalent to calling traci.edge.setAllowed(edgeID, ["authority"]) > > Am Do., 27. Jan. 2022 um 18:46 Uhr schrieb Mahima : > >> Hi, >> >> I have a query - when we are running a simulation on sumo-gui and we >> want to close the edge by right-clicking on the edge. Where does the new >> network is saved? >> Which parameters are passed from the user interface to sumo? >> >> Thanks, >> Mahima >> ___ >> 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] libsumo simulation start
Hi, I have my application developed in C++ using libsumo. Is there any way to view the simulation on GUI? Thanks, Mahima On Tue, Jan 11, 2022 at 1:43 AM Jakob Erdmann wrote: > 1. Simulation::start is the only way to actually start a libsumo > simulation. Did you try to compile the example given at > https://sumo.dlr.de/docs/Libsumo.html#example_code_testcpp ? > > 2. Libsumo is not compatible with gui simulation at the moment: > https://sumo.dlr.de/docs/Libsumo.html#limitations. > However, you can use Libtraci which supports sumo-gui for developing your > script and then switch to libsumo for increased speed. The API is the same > and you only need to change one line of code: > using namespace libtraci; / using namespace libsumo; > > regards, > Jakob > > > > > Am Mo., 10. Jan. 2022 um 20:53 Uhr schrieb Mahima : > >> error: ‘start’ is not a member of ‘libsumo::Simulation' >> On compiling, i get this error. >> >> I want to run the sumo-gui using libsumo. >> Please suggest the solution. >> ’ >> >> On Mon, Jan 10, 2022 at 5:54 PM Jakob Erdmann >> wrote: >> >>> What is the error message? >>> >>> Am Mo., 10. Jan. 2022 um 14:11 Uhr schrieb Mahima : >>> >>>> Hi, >>>> I want to use the following command to start a simulation. >>>> >>>> "libsumo::Simulation::start" >>>> >>>> But this gives an error. Any idea what is the alternative way to start >>>> the simulation? >>>> >>>> Thanks, >>>> Mahima >>>> ___ >>>> 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] lane close reroute
Hi, I have a query - when we are running a simulation on sumo-gui and we want to close the edge by right-clicking on the edge. Where does the new network is saved? Which parameters are passed from the user interface to sumo? Thanks, Mahima ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
[sumo-user] Reroute
Hi, I have a query. I am running static flow in sumo and rerouting is off (device.rerouting.period value is not set). Still on running 1 vehicle on sumo, I can see rerouteno=1 in the trip statistic. Why rerouting will happen when there is no congestion? http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd;> Thanks, Mahima ___ 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] routing algorithm
Hi Jakob, Thanks for the reply. So, it means if we are creating initial route file with turning ratio (20, 70, 30) using JTRrouter for a simulation and rerouting period is SET in the SUMO configuration file, the periodic rerouting will be automatically done by SUMO using the default GAWRON algorithm and not as per the turn ratios defined in the routing file. Thanks, Mahima On Tue, Jan 11, 2022 at 11:49 AM Jakob Erdmann wrote: > Hello, > > jtrrouter is a tool to define initial routes from initial flows and > turning rates but it is not a rerouting algorithm. > > The following three concepts should be distinguished carefully: > 1. defining traffic based on traffic data (this may either take the form > of vehicles with fully specified routes or of trips with only origin and > destination edge): > https://sumo.dlr.de/docs/index.html#data_sources_for_demand_generation > 2. determining vehicle routes that avoid congestion ( > https://sumo.dlr.de/docs/Demand/Dynamic_User_Assignment.html) > 3. letting vehicles re-route during the simulation: > https://sumo.dlr.de/docs/Demand/Automatic_Routing.html > > jtrrouter belongs into Category 1. In contrast, Categories 2 and 3 cannot > preserve turning rates so you must be careful when mixing them. > > regards, > Jakob > > > Am Mo., 10. Jan. 2022 um 23:42 Uhr schrieb Mahima : > >> Hi, >> >> I want to know which is the fastest (meaning least average mean trip time >> of vehicles) re-routing algorithm in the congestion scenarios. I tried >> running some scenarios using SUMO and found jtrrouter to be the fastest. >> >> Please respond. >> >> Thanks, >> Mahima >> ___ >> 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] routing algorithm
Hi, I want to know which is the fastest (meaning least average mean trip time of vehicles) re-routing algorithm in the congestion scenarios. I tried running some scenarios using SUMO and found jtrrouter to be the fastest. Please respond. Thanks, Mahima ___ 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] libsumo simulation start
error: ‘start’ is not a member of ‘libsumo::Simulation' On compiling, i get this error. I want to run the sumo-gui using libsumo. Please suggest the solution. ’ On Mon, Jan 10, 2022 at 5:54 PM Jakob Erdmann wrote: > What is the error message? > > Am Mo., 10. Jan. 2022 um 14:11 Uhr schrieb Mahima : > >> Hi, >> I want to use the following command to start a simulation. >> >> "libsumo::Simulation::start" >> >> But this gives an error. Any idea what is the alternative way to start >> the simulation? >> >> Thanks, >> Mahima >> ___ >> 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] libsumo simulation start
Hi, I want to use the following command to start a simulation. "libsumo::Simulation::start" But this gives an error. Any idea what is the alternative way to start the simulation? Thanks, Mahima ___ 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 traffic simulation
Hi everyone, I have a query regarding SUMO libsumo interface. Do we have any way to read the arrival position and arrival lane index using (libsumo::Vehicle::)? I can see libsumo::Vehicle::getTypeID and libsumo::Vehicle::getLaneIndex getLanePosition for departure lane. But how to read the arrival position? Please reply ASAP. Thanks, Mahima ___ sumo-user mailing list sumo-user@eclipse.org To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user