robotology / blockfactory

A tiny framework to wrap algorithms for dataflow programming
https://robotology.github.io/blockfactory
GNU Lesser General Public License v2.1
40 stars 16 forks source link

Notes about Modelica support #43

Open traversaro opened 5 years ago

traversaro commented 5 years ago

This are some random notes related to get blockfactory to generate Modelica blocks. It is meant to be more a place where to store relevant information, rather than an issue that should be closed in the short term.

External C code can be called from Modelica blocks using "External Functions', see http://book.xogeny.com/behavior/functions/external/ for more info.

An example of a simple Modelica MIMO block implemented using C external code (in that case to enable ROS integration) can be found in https://github.com/ModROS/ROS_Bridge/blob/d9a011da3f079b12ac93b106811f3bf585add7ec/Blocks/ROS_Sampler.mo . See https://github.com/ModROS/ROS_Bridge#usage-summary for a more detailed description of the block.