Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds Simulink models co-simulating with Eclipse SUMO traffic via SumoInterfaceLibrary Server, Reader, Writer and Actor blocks.
Use this skill ↓36% 91%+55 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 8 of 22 without it.
Write a MATLAB command that invokes the SUMO netgenerate binary to create a 3x3 grid network with 150-meter street lengths, saving the result to 'grid_net.net.xml' in the working directory.
The command invokes the netgenerate executable from the SUMO_HOME bin directory.
3 of 3 safety checks passed
Create Simulink models that run synchronized co-simulation with Eclipse SUMO using the SumoInterfaceLibrary blocks from the Automated Driving Toolbox Interface for Eclipse SUMO Traffic Simulator.
SUMO_HOME environment variable setSUMO_HOME — The Server block's launcher concatenates SUMO_HOME + "bin\..." without a separator. If SUMO_HOME lacks a trailing \ or /, every sim() fails with "Failed to launch Eclipse SUMO simulator" even though SUMO is installed correctly. Always run before building/simulating:if ~endsWith(getenv('SUMO_HOME'), filesep)
setenv('SUMO_HOME', [getenv('SUMO_HOME') filesep]);
end
getenv('SUMO_HOME') must return a valid path ending with a separator.When mcp__matlab__model_edit (SATK) is available, prefer it over raw add_block/add_line. It applies auto-layout after every edit, produces clean wiring with no overlap, and lets you reference newly-added blocks by ref within the same call. The patterns below still apply — express them as add_block/connect/configure operations in a single JSON payload. Fall back to add_block/add_line only when SATK is unavailable or when the operation is not expressible in the schema (e.g., setting MATLAB Function Script via sfroot).
Note: When wiring EnablePort on a freshly-created Enabled Subsystem whose default In1/Out1 have been deleted, model_edit cannot resolve the Enable port. Workaround: add_line(model, 'Source/1', 'SubsystemName/Enable', 'autorouting','smart').
Next to this one in the catalogue, plus more from the same author.