TraCI4Matlab

An implementation of the TraCI interface for Matlab.
5.4K Downloads
Updated 4 Jun 2021

TraCI4Matlab

TraCI4Matlab is an implementation of the TraCI (Traffic Control Interface) protocol that allows the user to interact with SUMO (Simulation of Urban MObility, www.sumo-sim.org) in a client-server scenario in which Matlab acts as the client, and SUMO as the server. TraCI4Matlab is compatible with TraCI version 15 and previous versions.

Requirements:
MATLAB 8.0 (R2012b) or above
SUMO simulator (www.sumo-sim.org)

Recommended set up:
Add the traci4matlab directory to your Matlab path
Add traci4matlab.jar to the Matlab static java directory

Citing TraCI4Matlab

If you use TraCI4Matlab in your research reports, articles and conferences, please cite it, as follows:

@incollection{acosta_etal_2015,
title = {{TraCI}4Matlab: {Enabling} the {Integration} of the {SUMO} {Road} {Traffic} {Simulator} and {Matlab}® {Through} a {Software} {Re}-engineering {Process}},
shorttitle = {{TraCI}4Matlab},
url = {http://link.springer.com/10.1007/978-3-319-15024-6_9},
urldate = {2017-03-06},
booktitle = {Modeling {Mobility} with {Open} {Data}},
publisher = {Springer},
author = {Acosta, Andrés F. and Espinosa, Jorge E. and Espinosa, Jairo},
year = {2015},
pages = {155--170}
}

View TraCI4Matlab on File Exchange

Cite As

Andres Acosta (2024). TraCI4Matlab (https://github.com/pipeacosta/traci4matlab/releases/tag/v3.1), GitHub. Retrieved .

Acosta, Andrés F., et al. “TraCI4Matlab: Enabling the Integration of the SUMO Road Traffic Simulator and Matlab\Textregistered Through a Software Re-Engineering Process.” Modeling Mobility with Open Data, Springer International Publishing, 2015, pp. 155–70, doi:10.1007/978-3-319-15024-6_9.

View more styles
MATLAB Release Compatibility
Created with R2012b
Compatible with R2012b to R2018b
Platform Compatibility
Windows macOS Linux
Categories
Find more on Automotive in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

+traci

+traci/+edge

+traci/+gui

+traci/+inductionloop

+traci/+junction

+traci/+lane

+traci/+lanearea

+traci/+multientryexit

+traci/+person

+traci/+poi

+traci/+polygon

+traci/+route

+traci/+simulation

+traci/+trafficlights

+traci/+vehicle

+traci/+vehicletype

examples

examples/inter_palmas/tls_actuated

Version Published Release Notes
3.1

See release notes for this release on GitHub: https://github.com/pipeacosta/traci4matlab/releases/tag/v3.1

3.0.0.0

Update for SUMO Version 1.1.0 (TraCI version 19):
- Included and tested all missing commands from SUMO version 0.30.0
- Now traci accepts time arguments as double-valued integers in seconds, fixing the traci.simulationStep command.

2.9.0.0

Fixed the moveToXY.m command of the vehicle package and implemented the getPhaseDuration.m command of the trafficlights package, thanks to Lawrence Soon.

2.8.0.0

Corrections to the new implemented commands

2.7.0.0

New traci.vehicle commands added

2.6.0.0

Removed old documentation and added two vehicle commands:
- moveToXY.m: Thanks to Steffen Kutter and Mario Krumnow
- setTypeID.m: Thanks to Marcus Müller

2.5.0.0

Removed old documentation and added two vehicle commands:
- moveToXY.m: Thanks to Steffen Kutter and Mario Krumnow
- setTypeID.m: Thanks to Marcus Müller

2.4.0.0

Updated documentation

2.3.0.0

Updated the examples folder

2.2.0.0

Fixed traci_test2.m

2.1.0.0

Added vehicle commands getStopState and resume. Corrected issues in traci_test.m.

2.0.0.0

-Fixed a bug in RETURN_VALUE_FUNC.m for lane commands, thanks to Babangida Zachariah
-Support for Traci version 10

1.9.0.0

Made some corrections for traci version 10, specifically the setAllowed.m add.m and moveToVTD.m commands. Also, made some modifications for supporting multiple connections to several SUMO instances.

1.8.0.0

Updated the vehicle property in the RETURN_VALUE_FUNC.m constants, thanks to Marcus Müller.

1.7.0.0

Major update. TraCI4Matlab now supports TraCI version 9, including the pedestrian commands and a new test scenario for pedestrians. Other update notes include:
-Performance improvements
-Improved documentation
Updated the screenshot

1.6.0.0

Included the compatibility with traci version 8 and previous versions in the description.

1.5.0.0

Updated to support SUMO release 0.20.0, including lane areal detectors. Included a user's manual.

1.4.0.0

Corrected a license issue

1.2.0.0

Changed the traci_test script to make it more easy to run.

1.1.0.0

Bug correction in the traci_test.m script.

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.