Matlab-Ros-Interface is a MATLAB graphical interface that communicates with rosbridge server in order to communicate between MATLAB and ROS. web-matlab-bridge, Java-WebSocket and jsonlab libraries and softwares are used in order to achieve MATLAB-ROS connection with MATLAB GUI.
IMPORTANT NOTE: This is rewritten version (translated from Turkish) and is not yet tested. Please state any error in order for the project to be improved.
MATLAB R2010b or greater
Java 1.6 (SE6)
NOTE: MATLAB has compatibility problems with Java 1.7
-
Install JDK using "sudo apt-get install openjdk-6-jdk"
-
Install JRE using "sudo apt-get install openjdk-6-jre"
-
Clone the repository to your MATLAB home folder
-
Execute "gedit
locate classpath.txt
to open your MATLAB static classpath include file. -
Add Java-WebSocket/dist/java_websocket.jar line to the classpath.txt
-
Start MATLAB.
-
Install JRE 6 and JDK 1.6 to your computer from Oracle website.
-
Configure system variables in order to make MATLAB recognise Java libraries:
PATH .......; C:\Program Files\Java<JDK_Version>\bin
JAVA_HOME C:\Program Files\Java<JDK_Version>
MATLAB_JAVA C:\Program Files\Java\jre6
-
Clone the files provided to your MATLAB home folder.
-
Copy the java_websocket.jar file in /win folder into /Java-WebSocket/dist/ and overwrite.
-
Open MATLAB and type "edit 'classpath.txt'".
-
Add the path /Java-WebSocket/dist/java_websocket.jar into the text file.
-
Restart MATLAB.
To run the client, start untitled.m GUI file in MATLAB.
To install rosbridge server to ROS Hydro,
sudo apt-get install git
cd ~/catkin_ws/src/
git clone https://github.com/RobotWebTools/rosbridge_suite.git
cd ~/catkin_ws/
catkin_make
To install rosbridge server to ROS Groovy,
sudo apt-get install git
cd ~/catkin_ws/src
git clone https://github.com/RobotWebTools/rosbridge_suite.git -b groovy-devel
cd ~/catkin_ws/
catkin_make
To start rosbridge server,
cd ~/catkin_ws/src/rosbridge_suite/rosbridge_server/scripts/
./rosbridge_websocket