Ask Your Question

Is there anyway to comunicate Simulink and Ros/Gazebo? [closed]

asked 2015-04-14 04:15:12 -0500

Alvaro Salcedo gravatar image

Hello everybody:

I am using Ros Indigo, Gazebo2 and Linux 14.04. I have a block diagram in Simulink that I would like to have in ROS/Gazebo to do simulations in 3D with this package .

Is there anyway to do that? and if there is not how can I do block diagrams with ROS.

Thanks you so much.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alvaro Salcedo
close date 2015-04-29 06:11:06.038776

2 Answers

Sort by ยป oldest newest most voted

answered 2015-04-15 02:41:12 -0500

gvdhoorn gravatar image

If you are using Matlab 2015a, you should be able to use the Robot Operating System Support in the Robotics System Toolbox. From that page:

Create ROS nodes in MATLAB and Simulink, exchange messages with other nodes on the ROS network, import ROS log files into MATLAB, and generate C++ code for a standalone ROS node.


You can develop, test, and verify your robotics algorithms and applications on ROS-enabled robots and robot simulators such as Gazebo and V-REP.

So with Gazebo on one side, Matlab on the other and ROS in the middle, you should be able to do what you described.

For other (older) versions of Matlab this should also be possible, but is a bit more involved.

edit flag offensive delete link more

answered 2015-04-15 04:11:13 -0500

Alvaro Salcedo gravatar image

First of all, thanks for answering. I have been checked that page and it seems that I can do my propose. I think a must use "Embedded coder" to do that and Matlab 2015 as you said.

But i think it is more difficult than create a C++ code with embedded coder from simulink. Maybe I have to do another block diagram expecific for ROS.

Does anybody have the same task? (from simulink model to ROS/Gazebo)

Thanks again.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-04-14 04:15:12 -0500

Seen: 416 times

Last updated: Apr 15 '15