cmcghan / Matlab-Ros-Interface

Matlab-Ros-Interface is a MATLAB graphical interface that talks with rosbridge server in order to communicate between MATLAB and ROS. (This is a fork of the project originally developed by Mustafa Ozcelikors; an updated website link is given below.)

Home Page:http://www.mozcelikors.com/projects_matlabrosinterface.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Matlab-Ros-Interface

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.

System Requirements

MATLAB R2010b or greater

Java 1.6 (SE6)

NOTE: MATLAB has compatibility problems with Java 1.7

Installation Instructions (Linux)

  1. Install JDK using "sudo apt-get install openjdk-6-jdk"

  2. Install JRE using "sudo apt-get install openjdk-6-jre"

  3. Clone the repository to your MATLAB home folder

  4. Execute "gedit locate classpath.txt to open your MATLAB static classpath include file.

  5. Add Java-WebSocket/dist/java_websocket.jar line to the classpath.txt

  6. Start MATLAB.

Installation Instructions (Windows)

  1. Install JRE 6 and JDK 1.6 to your computer from Oracle website.

  2. 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

  1. Clone the files provided to your MATLAB home folder.

  2. Copy the java_websocket.jar file in /win folder into /Java-WebSocket/dist/ and overwrite.

  3. Open MATLAB and type "edit 'classpath.txt'".

  4. Add the path /Java-WebSocket/dist/java_websocket.jar into the text file.

  5. Restart MATLAB.

Running The Client

To run the client, start untitled.m GUI file in MATLAB.

Rosbridge Server Installation & Running

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

About

Matlab-Ros-Interface is a MATLAB graphical interface that talks with rosbridge server in order to communicate between MATLAB and ROS. (This is a fork of the project originally developed by Mustafa Ozcelikors; an updated website link is given below.)

http://www.mozcelikors.com/projects_matlabrosinterface.html

License:GNU General Public License v3.0


Languages

Language:HTML 84.9%Language:Java 10.2%Language:MATLAB 4.0%Language:JavaScript 0.5%Language:CSS 0.4%