This MATLAB adaptor allows communication via MATLAB with a KINOVA® Gen3 Ultra lightweight robot.
This software has been tested on Ubuntu 16.04 (64-bit) and Windows 10
- MATLAB version 9.8 (R2020a)
- Simulink Coder Toolbox
- Simulink Toolbox
- Simscape Multibody Toolbox
- Simscape Toolbox
- Robotics System Toolbox
- Optimization Toolbox
- MATLAB Coder Toolbox
- Embedded Coder Toolbox
You can access the latest release of the MATLAB adaptor here on the Kinova Artifactory. ( The release contains compiled libraries for Linux x86 architecture and Windows Visual Studio 2015 )
From the Kinova Artifactory:
- Expand
kortex/matlab/simplified_api
to see the release folders - Right-click on the desired release folder
- Select
Download
in the context menu - Choose the desired Archive Type
- Click on
Download
- Extract the MATLAB adaptor folders from the downloaded archive.
The compiled MEX files are already present in the package : kortexApiMexInterface.mexa64 (Ubuntu 16.04 64 bits) and kortexApiMexInterface.mexw64 (Windows 10 64 bits). However, you can still build those files yourself following these instructions:
- CMake version 3.10 or more recent
- Build Tools for Visual Studio 2017
- Windows Command Prompt
- GCC/G++
- Pkg-config
sudo apt install build-essential pkg-config
Refer to the dedicated page for Setup
There are two ways to interact with the robot via MATLAB.
- Using the KORTEX™ API MEX interface (
kortexApiMexInterface.cpp
) - Using the MATLAB System object
kortex
(which itself uses the KORTEX™ API MEX interface)
The KORTEX™ API MEX interface is the best option for controlling the arm via a MATLAB script.
The kortex
System object on the other hand is intended for dynamical simulations of the robot as part of a system in Simulink.
For more information on both options:
In addition, MATLAB Code Generation support for generating a ROS2 node and deploying the kortex
System Object node directly on a NVidia Jetson Xavier platform is available. For more information, refer to the ROS2 Code Generation on Jetson Target section in the Setup page.
For more information on MATLAB code generation, see this Mathworks documentation page.