주요 콘텐츠

Cosimulate Simulink and Eclipse SUMO Traffic Simulator

Configure cosimulation between Simulink® and Eclipse™ SUMO™ traffic simulator, spawn actors, read and write information in SUMO scenario

The Automated Driving Toolbox™ Interface for Eclipse SUMO Traffic Simulator support package enables you to cosimulate the Simulation of Urban MObility (SUMO) Traffic Simulator and Simulink. The Eclipse SUMO Traffic Simulator is an open source traffic simulation package designed to model and simulate large-scale road networks. To learn more about the Eclipse SUMO Traffic Simulator, see SUMO User Documentation. This support package provides Simulink blocks that enable you interact with SUMO using a client and server model, where SUMO acts as the server and Simulink acts as the client. Using these blocks, you can:

  • Configure the server and clients to send and receive data during cosimulation. You can select a SUMO configuration file, which includes information about the SUMO scenario you want to cosimulate such as road network and route information.

  • Spawn random traffic actors within the SUMO scenario at the start of the simulation to control traffic density and simulate diverse and realistic scenarios.

  • Add or remove vehicles in a SUMO scenario at specified lanes or positions. You can also specify additional information when adding a vehicle to a lane, such as departure and arrival times, speed,number of occupants, and capacity.

  • Read and write actor, simulation, and visualization data to and from a SUMO scenario.

To cosimulate Simulink and SUMO Traffic Simulator, you must:

  • Download the Automated Driving Toolbox Interface for Eclipse SUMO Traffic Simulator support package from the Add-On Explorer. For more information on downloading add-ons, see Get and Manage Add-Ons.

  • Download SUMO Version 1.20.0. Automated Driving Toolbox Interface for Eclipse SUMO Traffic Simulator support package supports cosimulation with SUMO Version 1.20.0 on Windows® and Linux® platforms. For additional information on installation steps, Download and Install SUMO.

Blocks

ServerConfigure SUMO server for cosimulation with Simulink (Since R2026a)
ClientConfigure Simulink client for cosimulation with SUMO (Since R2026a)
ActorAdd or remove actor in SUMO scenario (Since R2026a)
ReaderRead selected topic from SUMO scenario (Since R2026a)
WriterWrite selected topic to SUMO scenario (Since R2026a)

Featured Examples