How can you connect the CARLA autonomous driving simulator with simulink?
40 views (last 30 days)
Show older comments
Siddhi Suri
on 8 Jul 2019
Commented: Remo Pillat
on 17 Dec 2025 at 19:48
I am using the CARLA autonomous driving simulator and have an autonomous driving software in simulink. How can I control the autonomous vehicle in CARLA with my simulink model?
1 Comment
Masoomeh Kavoosi
on 10 Dec 2020
I am currently also looking for the answer to this question, did you manage?
Accepted Answer
MathWorks Support Team
on 31 May 2022
The connection could be established using CARLA ROS Bridge and MATLAB ROS toolbox. MATLAB ROS toolbox will give you the ability to create customized ROS messages to exchange data between MATLAB/Simulink and CARLA Simulator via CARLA ROS Bridge. Once that connection is established, you will be able to send commands to the ego vehicle\CARLA simulation environment and read information from the said environment.
Visit the links below for more information:
1 Comment
Remo Pillat
on 17 Dec 2025 at 19:48
There are two more recent examples in ROS Toolbox that show the CARLA connection more explicitly:
More Answers (2)
Mehrdad Moradi
on 18 Dec 2019
You need to use the Python API in Carla and Matlab. Then you run the simulation step by step and exchange the data between Carla and Matlab.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!