Difference between revisions of "Matlab"
(→Using the Robotino MATLAB drivers) |
m (→Using the Robotino MATLAB drivers) |
||
Line 10: | Line 10: | ||
=== Using the Robotino MATLAB drivers === | === Using the Robotino MATLAB drivers === | ||
− | The installation sets an environment variable 'ROBOTINOMATLAB_DIR' which points to the RobotinoMatlab dir. Change the working directory to 'RobotinoMatlab' by simply entering the following in MATLAB's Command Window | + | The installation sets an environment variable 'ROBOTINOMATLAB_DIR' which points to the 'RobotinoMatlab' dir. Change the working directory to 'RobotinoMatlab' by simply entering the following in MATLAB's Command Window |
<pre> | <pre> | ||
cd ( getenv('ROBOTINOMATLAB_DIR')) | cd ( getenv('ROBOTINOMATLAB_DIR')) |
Revision as of 16:05, 9 March 2011
Contents
Installation
A full set of m-Files and Simulink blocks is available for controlling all actuators of Robotino and reading all of its sensors. Download the executable and run the installer. |
Package links |
---|
Using the Robotino MATLAB drivers
The installation sets an environment variable 'ROBOTINOMATLAB_DIR' which points to the 'RobotinoMatlab' dir. Change the working directory to 'RobotinoMatlab' by simply entering the following in MATLAB's Command Window
cd ( getenv('ROBOTINOMATLAB_DIR'))
You will also need to add the 'toolbox' and 'blockset' directories to MATLAB's search path. This can be done as follows
addpath( strcat( getenv('ROBOTINOMATLAB_DIR'), '/blockset' ) ); addpath( strcat( getenv('ROBOTINOMATLAB_DIR'), '/toolbox' ) );
or you could also just run the 'startup.m' file in RobotinoMatlab folder to add the directories to MATLAB's search path.
Robotino Toolbox [MATLAB m-files]
The Robotino Toolbox provides an extensive set of MATLAB functions which enable users to control nearly all actuators of Robotino and read all of its sensors in MATLAB. The m-files are located in the 'RobotinoMatlab/toolbox' directory. Robotino's Toolbox contains MATLAB functions for the following sensors and actuators.
MATLAB drivers for Robotino
- AnalogInput
- Bumper
- Com
- Camera
- DigitalInput
- DigitalOutput
- DistanceSensor
- EncoderInput
- Gripper
- Info
- LaserRangeFinder
- Manipulator
- Motor
- Odometry
- OmniDrive
- PowerManagement
- PowerOutput
- Relay
Online Documentation
An online version of the documentation for Robotino's Toolbox can be viewed here.
Robotino Blockset [Simulink blocks]
The Robotino Blockset provides an extensive set of simulink blocks which enable users to control nearly every aspect of Robotino in Simulink. The simulink blocks are located in the 'RobotinoMatlab/blockset' directory. lib_robotinohardware.mdl contains the set of simulink blocks representing Robotino's hardware components. These blocks are build on top of the RobotinoMatlab m-files. Robotino's blockset contains the following simulink blocks.
Simulink blocks for Robotino
- AnalogInput
- Bumper
- Com
- Camera
- DigitalInput
- DigitalOutput
- DistanceSensor
- EncoderInput
- Gripper
- LaserRangeFinder
- LineFollower
- Manipulator
- Motor
- Odometry
- OmniDrive
- PowerManagement
- PowerOutput
- Relay
Online Documentation
An online version of the documentation for Robotino's Blockset can be viewed here.
Troubleshooting And FAQ
- Help for Robotino Toolboox and Blockset not visible?
- In this case in MATLAB, go to File>Preferences>Help. Make sure that 'Enable product filter' is not checked. Also make sure that the 'RobotinoMatlab/toolbox' and 'RobotinoMatlab/blockset' folders have been added to MATLAB's search path (Check File>Set Path). In case they haven't been added then run the following commands in MATLAB's Command Window.
addpath( strcat( getenv('ROBOTINOMATLAB_DIR'), '/blockset' ) ); addpath( strcat( getenv('ROBOTINOMATLAB_DIR'), '/toolbox' ) );
Uninstallation
The Robotino MATLAB Drivers can be uninstalled in any one of the following ways.
- StartMenu > All Programs > Festo Didactic > RobotinoMatlab > Uninstall RobotinoMatlab
- Uninstall the program from the Control Panel.