The vehicle speed could also be capped by the maxSpeed attribute of the
vehicles vType.


2017-05-26 16:54 GMT+02:00 Vaibhav Rungta <[email protected]>:

> Hello Folks,
> I am required to allow certain vehicles exceed the speed limit.
> In past I have done that using speedfactor command which sets their speed
> limit as a fraction of lane's speed limit.
> I have been trying to do the same thing again but haven't been able to.
>
> Observations and/or programming practice:
> - The speed factor is been set for the desired vehicle in every time step.
> - I am not getting any errors.
> - The text file which I use to keep track of speed assignment shows that
> vehicle has been assigned a speed higher than speed limit.
> - I check the value of speedfactor after assignment using getSpeedFactor.
> It shows the desired value.
> - I checked the gui. There seems to be enough gap between vehicle which has
> to accelerate and preceding vehicle. There's no indication that the vehicle
> is trying to decelerate because of the low safe distance.
>
> Please suggest what else I should check. I can share the sections of code.
> Thanks.
>
> Regards,
> Vaibhav Rungta
> Graduate Student - Industrial and Systems Engineering
> Graduate Assistant - Toyota Production Systems Lab
> Research Assistant - University Transport Research Center
> 585-754-7133
>
>
> On Tue, Jan 3, 2017 at 2:13 PM, Vaibhav Rungta <[email protected]> wrote:
>
> > Hello Jakob,
> > Thanks. I used the speed factor command and have been to make the desired
> > change.
> >
> > Here are some of the commands I have used recently.
> > Posting them on portal so that it might helpful for those having similar
> > queries:
> >
> > traci.vehicle.setSpeedFactor(vehs, 1.2)
> > -vehs represents the vehicle ID
> >
> > traci.vehicle.slowDown(vehs, v, k)
> > -v represents the final velocity in m/s
> > -k represents the time in ms. Please check the data type of k. It *must
> > be an integer *otherwise you will get an error.
> >
> > Regards,
> > Vaibhav Rungta
> > Graduate Student - Industrial and Systems Engineering
> > Graduate Assistant - Toyota Production Systems Lab
> > Research Assistant - University Transport Research Center
> > 585-754-7133 <(585)%20754-7133>
> >
> >
> > On Tue, Jan 3, 2017 at 4:38 AM, Jakob Erdmann <
> [email protected]>
> > wrote:
> >
> >> this is done by specifying 'speed factor'  (0x5e)
> >> see http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State
> >> (multiplier for the lane speed limit, http://sumo.dlr.de/wiki/Defini
> >> tion_of_Vehicles,_Vehicle_Types,_and_Routes#Vehicle_Types)
> >>
> >> regards,
> >> Jakob
> >>
> >>
> >>
> >> 2016-12-31 21:13 GMT+01:00 Vaibhav Rungta <[email protected]>:
> >>
> >>> Hello Folks,
> >>> Wishing you guys an exhilarating, prosperous and a healthy New Year :)
> >>>
> >>> I am working on an algorithm which involves speed calculation.
> Sometimes
> >>> the speed required to provide better results will be more than the edge
> >>> speed limit for certain vehicles. As we observe in real world, no one
> >>> gets
> >>> pulled over for driving 15-20% above speed limit for a short duration
> >>> (10-15s). To simulate this I have to allow some vehicles to go faster.
> >>>
> >>> - I tried setMaxSpeed command but that seems to have a different
> purpose.
> >>> - I thought of using variable speed limit but then that will allow all
> >>> vehicles to go faster. This might increase the emissions and that's not
> >>> what I want.
> >>> - I am not sure if vehicle speed distribution will allow that, but
> again
> >>> randomness may not allow those vehicles to go fast which I specifically
> >>> want to go faster.
> >>>
> >>> I wish to accelerate only those vehicles which can make it through the
> >>> intersection by slightly accelerating above speed limit.
> >>> Kindly suggest how I may do this? Thank you.
> >>>
> >>> Regards,
> >>> Vaibhav Rungta
> >>> Graduate Student - Industrial and Systems Engineering
> >>> Graduate Assistant - Toyota Production Systems Lab
> >>> Research Assistant - University Transport Research Center
> >>> 585-754-7133
> >>> ------------------------------------------------------------
> >>> ------------------
> >>> Check out the vibrant tech community on one of the world's most
> >>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> >>> _______________________________________________
> >>> sumo-user mailing list
> >>> [email protected]
> >>> https://lists.sourceforge.net/lists/listinfo/sumo-user
> >>>
> >>
> >>
> >
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to