How can I integrate Simulink logic with RoadRunner for Traffic Light Negotiation?

2 vues (au cours des 30 derniers jours)
Noa Teed
Noa Teed le 28 Nov 2023
Réponse apportée : Anurag le 13 Déc 2023
Hey guys,
I was wondering if anyone could provide advice and resources for setting up Traffic Light control and negotiation for RoadRunner scenarios using Simulink? I wasn't aware until recently that the built-in RoadRunner lights are cosmetic only and don't have any logic/functionality the actors cars will obey. I have opened Simulink and looked through some of the functionality, but I'm unsure on exactly what signals and info needs to be read from and passed back to RoadRunner. Any help is appreciated

Réponses (1)

Anurag
Anurag le 13 Déc 2023
Hi Noa,
I understand that you need assistance in setting up Traffic Light control and negotiation for RoadRunner scenarios using Simulink.
Please follow the steps below to be able to do the same:
  • Understand and create a logic system in Simulink that mimics the behaviour of real traffic lights.
  • Integrate Simulink with RoadRunner to both read signals from the environment and send control signals back to RoadRunner, this involves using Simulink’s input/output blocks to interface with RoadRunner.
  • Refer to the following video for setting up the integration : https://www.mathworks.com/videos/integrating-roadrunner-with-matlab-simulink-1608193412399.html
  • Define the behaviour of the actors' cars in response to the traffic lights. This might involve creating a simple decision-making system for the cars to stop, slow down, or proceed based on the state of the traffic lights.
Resources and documentations:
By following these steps and utilizing the available resources, you should be able to set up Traffic Light control and negotiation for RoadRunner scenarios using Simulink. Good luck!

Produits


Version

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by