-
Notifications
You must be signed in to change notification settings - Fork 182
Request for more detailed step-by-step guide #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I apologize for our incomplete documents. I agree with you that we should provide some tutorials for users. We plan to do it recently, and I will keep this issue open until we provide additional tutorials. For now, I can answer some of your questions. But I don't fully understand every detail in
|
Thanks for your helpful answer :) A follow up on your second answer:
So in examples/roadnet.json, there are lines like this: "lightphases":[{"time":30,"availableRoadLinks":[]}, Where a lightphase does not have any link. Does this mean it is essentially a red light on all lanes? A few extra questions:
|
You're right. And for virtual intersections, |
You can use
You can use |
@zhc134 |
I am not convinced that yellow light phases are not necessary. If a car was going at 50km/h and the light suddenly turns red without any buffer time -- i.e. the yellow light -- for the car to decelerate, then the car would either have to:
So without yellow lights, how does a car know when to start decelerating properly? |
There is no parameter in
In our system design, if a vehicle cannot perform a full stop before the end of the road, then it will just go through the intersection even if the light is red. On the other hand, if it can stop, it will. This is similar to the intention of yellow lights. So we think all red phase is sufficient. But I admit there is some difference, i.e. driver will go through the intersection even if he can stop given a yellow light. We consider adding a yellow light in future version. |
Thanks for the detailed explanation.
What is the rate of deceleration? Can we control this? I assume the rate of deceleration is set to be close to the rate of deceleration of real drivers when they see a yellow light that they cannot make through. |
@ThisIsIsaac |
So if the distance from stopping line is too short s.t. the car won't come to stop while accelerating at |
Yes |
Is there a way to set where to save replay files in Python, without editing |
Currently, we do not support changing BTW, |
oh so if there already exists |
If you call |
Thanks. I feel like this could be very important, but not obvious from the doc. Maybe we can add this to the doc under the replay section? |
Sure! Please check 7f2cc2e |
Is |
Exactly |
I have checked your doc, but I don't find a function to get the current signal phase? |
Uh oh!
There was an error while loading. Please reload this page.
I have read the Cityflow doc multiple times but it comes very short to providing enough guidance to get me started.
Here are just a few questions from a long list of questions that weren't answered by the guide:
What is
"roadLinkIndices"
?What does it mean if
"availableRoadLinks":[]
for alightphases
?Why must virtual intersections have
"lightphases"
when we don't care about the lights in the edges?How do I change the number of vehicles (i.e. the rate of spawning new vehicles)?
How do you turn on yellow lights? And change the duration of yellow lights?
Where is the origin (the point where
x
andy
are both0
)?how is
roadLinks
different fromlaneLinks
?I see that CityFlow could be leaps better than SUMO, but there doesn't seem to be enough guide to getting started. And I am willing to read any extra material you can provide.
Since there is no guide, I am digging through
roadnet.json
andflow.json
that others have made to deduce what these fields do, which is a painstaking process.So a more detailed step-by-step guide that doesn't omit any necessary information would be great.
The text was updated successfully, but these errors were encountered: