-
Notifications
You must be signed in to change notification settings - Fork 190
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
[Help Request] entry tactic #2104
Comments
by the way, maybe it's an irrelevant problem but easy to fix. Where can I turn off the signal? when reseting the env, the signal always appears |
Hello @knightcalvert, thank you for reaching out.
These represent time qualities.
I believe so.
What is happening here is that the capture window is expiring before any vehicle is captured. This causes the vehicles to be emitted immediately at the mission start location. The reason is when we emit a default vehicle without we do not know where that vehicle will be.
What kind of signal are you trying to remove? Are you talking about warnings? The following should handle suppressing warnings: import logging
import warnings
logging.basicConfig(level=logging.ERROR) # As early as possible so loggers inherit logging level
...
env = gym.make(...)
warnings.filterwarnings("ignore") # As late as possible so it does not get overridden. With that said, I am fixing some logging configuration that manage to weasel into some of the core files. |
thank you for your help, my signal means traffic light |
Is it that there is a red light you are trying to get rid of or are the signals incorrectly showing up in the observations? If you are trying to get rid of the red light you would need to either: NeteditFor SUMO maps you could use netedit https://sumo.dlr.de/docs/sumo-gui.html#switching_traffic_lights on the sumo Traffic junction modelOr you could use the from smarts.sstudio.types import JunctionModel
TrafficActor(
name="car",
speed=Distribution(sigma=0.2, mean=0.8),
lane_changing_model=LaneChangingModel(impatience=1, cooperative=0.25),
junction_model=JunctionModel(drive_after_yellow_time=1.0, impatience=0.5),
) ErrorIf you think the signals are incorrectly showing up in the observations, could you further describe what is happening? |
I just want to get rid of the traffic light. about Netedit, it's seems not a flexible method? every time i change the scenario.py, it looks like i need edit the net as well. I remember hiway-v0 didn't have a traffic light by default, could i turn off the light permanently? |
Yes, there is some issue, generally the traffic lights are considered integrated as part of the map because they are a static routine (generally). We did not implement a control against the signals because it can be stripped out of the map definition by users and it does not generalize to data replay.
I am unsure what you mean. The
Sorry, I might not have been clear, traffic flows could be modified with a model like the following which would cause them to ignore traffic lights as mentioned https://sumo.dlr.de/docs/sumo-gui.html#switching_traffic_lights: from smarts.sstudio.types import JunctionModel
TrafficActor(
...,
JunctionModel(
drive_after_red_time=180.0, # i.e. sumo's `jmDriveAfterRedTime`
drive_after_yellow_time=180.0, # i.e. sumo's `jmDriveAfterYellowTime`
# ignore_keep_clear_time=10, # sumo's `jmIgnoreKeepClearTime`
impatience=0.5
),
) Then the scenario would need to be rebuilt Other optionThe only other possibility I can think of is that I could add an |
I'm sorry i made a mistake, you are right. I changed the map xml
and all the traffic lights are green now |
High Level Description
my scenarios is intersections/4lane, I wanna build a contolled zone which a little bigger than the junction area.
I need a help about:
Thank you for your answer, have a nice day
Version
1.4.0
Operating System
No response
Problems
No response
The text was updated successfully, but these errors were encountered: