Skip to content
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

How get get values of all the scenarios in paper? #15

Open
gaya1thri opened this issue Dec 7, 2024 · 6 comments
Open

How get get values of all the scenarios in paper? #15

gaya1thri opened this issue Dec 7, 2024 · 6 comments

Comments

@gaya1thri
Copy link
Contributor

gaya1thri commented Dec 7, 2024

Thank you for the reply, after running the trip info.xml we got this
006f76cc-1bbf-4505-b156-e027117411d1
but in paper 4 scenarios Normal scenarios(normal vehicles, emergency vehicles) and Degraded communication scenarios(normal vehicles, emergency vehicles), are there.How to get results in these cases?

@pangay
Copy link
Member

pangay commented Dec 8, 2024

The state changes need to be designed in the file tsc_wrapper.py. Additionally, the insertion of long-tail scenarios should be implemented within the SUMO simulation setup.

@gaya1thri
Copy link
Contributor Author

Thank you for the reply and your patience, if you don’t mind, could you please eloborate the process and the steps clearly if possible since we have a presentation tomorrow.

@gaya1thri
Copy link
Contributor Author

Thank you for the reply, after running the trip info.xml we got this 006f76cc-1bbf-4505-b156-e027117411d1 but in paper 4 scenarios Normal scenarios(normal vehicles, emergency vehicles) and Degraded communication scenarios(normal vehicles, emergency vehicles), are there.How to get results in these cases?

Thank you for the reply and your patience, if you don’t mind, could you please eloborate the process and the steps clearly if possible since we have a presentation tomorrow.

@pangay
Copy link
Member

pangay commented Dec 8, 2024

here’s a clear explanation with examples:
1. Simulating Information Loss: You can randomly simulate information loss by modifying the observation data. For instance, in the code below, a random flag is used to introduce missing information:
flag = random.randint(0, 5) if flag % 5 == 0: # Simulate information loss with a probability observation[0:1, :] = -1 # Mark specific observation as missing infos['information_missing'] = True # Add a missing flag in the info dictionary infos['missing_id'] = 'E0--s' # Specify the ID of the missing information infos['movement_occ']['E0--s'] = '-1' # Set the movement data to missing infos['jam_length_meters']['E0--s'] = '-1' # Set jam length to missing

2.Simulating Observation Delays:
Observation delay refers to the agent receiving outdated data instead of the current state. This can be achieved using a queue to store historical observations.

@gaya1thri
Copy link
Contributor Author

Thank you for the reply, after running the trip info.xml we got this 006f76cc-1bbf-4505-b156-e027117411d1 but in paper 4 scenarios Normal scenarios(normal vehicles, emergency vehicles) and Degraded communication scenarios(normal vehicles, emergency vehicles), are there.How to get results in these cases?

(Vtype background,ego,rescue)
Can trying these combinations give us 4 results
Background alone is normal scenario
Background+rescue is emergency scenario
Background+ego is communication degradation
Background+rescue+ego emergency communication degradation, could you please send the code files so that we can run?

@pangay
Copy link
Member

pangay commented Dec 8, 2024

The traffic flow files I provided include ambulances. Emergency scenarios are considered long-tail cases, which are overlooked in the design of reward functions for RL models. Regarding communication degradation, the relevant code is already included in the wrapper file. However, communication delays are not currently reflected in the code, and this aspect could be further expanded. For data reading, the built-in functions may not yet explicitly extract and output data for emergency vehicles. I will work on improving this in the future—thank you for pointing it out. Normally, the trip_info.xml file outputs data categorized by vehicle type. You can also try modifying the code to calculate based on vehicle types. Please refer to the following link:
https://github.com/Traffic-Alpha/iLLM-TSC/blob/main/parse_trip_info.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants