ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Does anyone have a Simulink library model to publish to ROS

asked 2013-04-26 09:42:22 -0500

JasonB007 gravatar image

updated 2014-04-20 14:09:28 -0500

ngrennan gravatar image

Hi all,

I was wondering if anyone knows how to publish to ROS from Simulink? I'd like to simply drop down a library block with a mask and then enter the publisher in the mask. The data can be run in an Inport and the publisher can be declared in an external C file. Any ideas?



edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-04-28 22:35:38 -0500

ipso gravatar image

updated 2013-04-28 22:36:50 -0500

I have no direct experience with any Simulink <-> ROS bridges, but there are several options that might work for your use case:

  • Simulink <-> OROCOS: using the orocos-simulink-toolbox. OROCOS then has a ROS transport
  • ROS <-> Matlab: several implementations exist, see the groovy/Planning/Matlab page for an overview. From there you might be able to create an S-function block (although according to this answer, that could be hard / impossible)
  • ros_simulink: this one doesn't seem to be included on the Groovy planning page. Seems a bit stale (last commit: 3 years ago)
  • write your own (MEX and / or S-function) using the appropriate roscpp libraries (again, see this answer for some details)
edit flag offensive delete link more

Question Tools



Asked: 2013-04-26 09:42:22 -0500

Seen: 602 times

Last updated: Apr 28 '13