How to add a matlab code to a ros package
Hello,
I have a ros package with several nodes which are all written in c++ and python, now i want to add another node which is in matlab,
also the output of this matlab node should be sent to a node which is written in python (i dont know it matter or not), so how can i do it, my assumption is that i have to change cmakelist file somehow to be able to make and build matlab code, is it true? if yes can anyone help me to do it?
I checked but all materials are about using matlab instead of ros, i couldn't find some easy issue like mine!
Cheers,
Edit: thank you for reply, first no i didn't use robotic toolbox,
about incorporation or communication, i'm not sure what you mean! so let me make an example,
consider i have a python node which name is PRINT, and its only job is to print a number,
on the other hand i have a matlab node that calculate a complex formula and obtain the final answer which name is RESULT,
now i want to send the obtained answer in RESULT to PRINT
It's all what i want to do...
Also i have to add that i'm on ubuntu 14.04 and matlab 2017a also is installed on my ubuntu,
It will probably help potential future readers if you could clarify whether you want to:
Both are probably possible, but they are very different.
Also: if you are using the Robotics Toolbox, it would appear this would be a question to ask Mathworks (if this isn't already explained in their documentation).