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

Serial Communication between Arduino and MATLAB in linux environmnt

asked 2016-11-12 10:34:39 -0500

marwa eldiwiny gravatar image

updated 2016-11-12 10:35:25 -0500

Hey Folks,

I have successfully connected arduino with ROS, now am trying to connect arduino hardware with MATLAB in Ubuntu environment, there are many problems appeared and I didn't find a useful solution yet!

The error is

install_arduino Warning: There is at least another arduino.m file in the path, the installation will go on but it is strongly suggested to delete any other version before using this one

In install_arduino (line 15) Arduino folders added to the path Error using install_arduino (line 35) Unable to save updated MATLAB path (why?) On Windows, exit MATLAB, right-click on the MATLAB icon, select "Run as administrator", and re-run install_arduino.m On Linux, exit MATLAB, issue a command like this: sudo chmod 777 usr/local/matlab/R2011a/toolbox/local/pathdef.m (depending on where MATLAB is installed), and then re open MATLAB and re-run install_arduino.m

As I mentioned before the connection between Arduino and ROS is much faster and efficient than using MATLAB, but the problem is the feature for controller plots etc is much easier at MATLAB.

Looking forward for your reply!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-12-04 10:01:59 -0500

SMEAC gravatar image

Late answer, but still relevant because I hadn't found any solutions online either. It is possible, but you need to have a second serial connection from your arduino, one for Matlab, and one for Ros.

Have a look at this Matlab Project, it should fulfill all your requirements:

https://de.mathworks.com/matlabcentra...

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-11-12 10:34:39 -0500

Seen: 687 times

Last updated: Dec 04 '18