Hello Jakob,
Thanks for including this in the documentation :)
Yes, SpeedMode 7 gives the desired result.

I am now getting warnings about collision. I'll have to figure out a way to
avoid collision.

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 Fri, Jan 27, 2017 at 2:30 AM, Jakob Erdmann <[email protected]>
wrote:

> Sorry for giving you invalid advice in the last mail.
> It should be speedmode 14 (no red-light-check and no safe-speed check).
> I've added this to the documentation (http://sumo.dlr.de/wiki/
> TraCI/Change_Vehicle_State#speed_mode_.280xb3.29)
>
> regards,
> Jakob
>
> 2017-01-26 16:20 GMT+01:00 Vaibhav Rungta <[email protected]>:
>
>> Hello Jakob,
>> Thank you for our inputs. However, I am still not able make the vehicles
>> move at the beginning of Yellow phase.
>>
>> Command used:
>> traci.vehicle.setSpeedMode(vehID, 7)
>>
>> I have attached the screen shot and section of code with the mail. I hope
>> I am not doing something else wrong.
>>
>> On the brighter side, the algorithm which I created to reduce emissions
>> for vehicles approaching signalized intersections seems to be working fine.
>> Right now, the output generated is really smooth. I'll make it more human
>> like. I have used traci.vehicle.slowDown command to assign speed profiles.
>> The attached PDF shows how the speed profile and emission profile of same
>> vehicle vary with and without algorithm.
>>
>> Here's the R script for making the graph:
>>
>> #plot for PCs
>> par(mar = c(4,4,4,4))
>> #to plot dashed lines for emission values
>> plot(pcdri$time_pcdri, pcdri$vehicle_CO2, type = "l", lty = 2, col =
>> "red", lwd = 2, main = "CO2 Emission and speed profile of PCs with and
>> without algo", xlab = "Time in system(s)", ylab = "CO2 emission(mg)")
>> #to add line to same CO2 axis
>> lines(pcalgo$time_pcalgo, pcalgo$vehicle_CO2, lty = 2, col = "blue", lwd
>> = 2)
>>
>> par(new=TRUE)
>> #to include a pc speed profile on secondary axis at line
>> plot(pcdri$time_pcdri, pcdri$vehicle_speed, type = "l", col = "red", lwd
>> = 2, xaxt="n", yaxt="n", main="", xlab = "", ylab = "", ylim = c(0, 25))
>> axis(4)
>>
>> mtext("Speed(m/s)", side=4, line = 2)
>>
>> lines(pcalgo$time_pcalgo, pcalgo$vehicle_speed, col = "blue", lwd = 2)
>> legend(40,15, col = c("blue", "blue", "red", "red"), lty = c(2,1,2,1),
>> legend = c("PC_algo Emission", "PC_algo speed", "PC_dri Emission", "PC_dri
>> speed"), cex =0.7)
>>
>> I hope it helps someone who might be planning to draw similar graphs.
>>
>>
>> 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 Thu, Jan 26, 2017 at 3:13 AM, Jakob Erdmann <
>> [email protected]> wrote:
>>
>>> Use speed mode 7 instead of 23.
>>> You need to clear the 'check red light' bit as well.
>>>
>>> From: Vaibhav Rungta <[email protected]>
>>>> To: Jakob Erdmann <[email protected]>
>>>> Cc: sumo-user <[email protected]>
>>>> Date: Wed, 25 Jan 2017 12:01:19 -0500
>>>> Subject: Re: [sumo-user] How to make vehicle accelerate at Yellow light?
>>>> Hello Jakob,
>>>> Thank you for your inputs. I used the SpeedMode command but the
>>>> vehicles still do not begin to move at the yellow phase.
>>>> I came across a discussion https://sourceforge.net/p/sumo
>>>> /mailman/message/32796321/
>>>> in which one of the user suggests setting tau to a value of zero. But
>>>> that doesn't seem to work either.
>>>>
>>>> Desired state - Vehicle begin to move at Yellow phase (which precedes
>>>> the Green phase)
>>>> Current state - Vehicle do not begin to move at green phase.
>>>>
>>>> Commands tried -
>>>> 1) traci.vehicle.setTau(vehID, 0)
>>>> 2) traci.vehicle.setSpeedMode(vehID, 23)
>>>>
>>>> #At the end of red phase I execute following section of code to begin
>>>> the vehicles to accelerate-
>>>> for veh in stopped_veh:
>>>>             traci.vehicle.slowDown(veh, 16, 8000)
>>>>
>>>> Please suggest.
>>>>
>>>>
>>>> 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 Sat, Jan 21, 2017 at 12:48 PM, Jakob Erdmann <
>>>> [email protected]> wrote:
>>>>
>>>>> Hello,
>>>>> in case you a referring to the red/yellow phase that precedes the
>>>>> green phase, this is treated by vehicles like a red phase (forcing them to
>>>>> stop). To overcome this rule you need to set the speedmode to disregard 
>>>>> red
>>>>> lights.
>>>>> See http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#speed_mod
>>>>> e_.280xb3.29
>>>>>
>>>>> regards,
>>>>> Jakob
>>>>>
>>>>> 2017-01-20 18:15 GMT+01:00 Vaibhav Rungta <[email protected]>:
>>>>>
>>>>>> Hello Folks,
>>>>>> I am trying to create an algorithm for vehicles approaching signalized
>>>>>> intersection.
>>>>>>
>>>>>> One of the observation for the Basic Krauss Model is that vehicles
>>>>>> begin
>>>>>> moving when the light turns green  and these vehicles accelerate at
>>>>>> nearly
>>>>>> 3 m/s^2 to 4 m/s^2. Higher acceleration result in more emissions and
>>>>>> fuel
>>>>>> consumption.
>>>>>>
>>>>>> I plan to make the vehicles begin moving in yellow phase at a lower
>>>>>> so that
>>>>>> the vehicles begin moving earlier instead of accelerating faster and
>>>>>> thus
>>>>>> maintaining the flow.
>>>>>>
>>>>>> Please suggest how I may make the vehicle begin moving at yellow. The
>>>>>> TraCI
>>>>>> code I have written instructs the vehicles to begin moving at yellow
>>>>>> (using
>>>>>> the slowDown command) phase but when I execute the program it doesn't
>>>>>> happen. 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
>>>>>> ------------------------------------------------------------
>>>>>> ------------------
>>>>>> 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
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> ---------- Weitergeleitete Nachricht ----------
>>>> From: [email protected]
>>>> To:
>>>> Cc:
>>>> Date:
>>>> Subject: confirm e70d8e33c22654e47bf2b933ec7b6aa357759deb
>>>> If you reply to this message, keeping the Subject: header intact,
>>>> Mailman will discard the held message.  Do this if the message is
>>>> spam.  If you reply to this message and include an Approved: header
>>>> with the list password in it, the message will be approved for posting
>>>> to the list.  The Approved: header can also appear in the first line
>>>> of the body of the reply.
>>>>
>>>
>>>
>>
>
------------------------------------------------------------------------------
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