Skip to content

Dune Matlab Interaction

davidohcho edited this page Nov 18, 2013 · 30 revisions

This is a guide to Dune-Matlab interaction. An example of Dune sending a signal and Matlab receiving it is provided.

Requirements

The following are the requirements for this task.

  • updated libimc.jar - To obtain the updated version of it, see "How to get libimc.jar"
  • updated Dune
  • Ubuntu 10.04 (or newer) or similar distribution with kernel 2.6 (or newer)
  • MATLAB

How to get libimc.jar

Check if your libimc.jar has version 5.3.0. If not follow the steps below to get the updated version.

  1. Have JDK 1.6 or later and ant installed

  2. Clone the repository in https://github.com/LSTS/imcjava

  3. (optional) Update the IMC definitions found in <clone_dir>/src/msgdefs/IMC.xml

  4. Change directory to the newly cloned repository: 'cd <clone_dir>'

  5. Generate the new message classes: 'ant generated'

  6. Generate a new distribution: 'ant dist'

  7. (optional) Rename the file to libimc.jar: 'mv dist/imc-src-* libimc.jar'

Example (Using the producer-consumer task)