Difference between revisions of "Matlab"
(→Troubleshooting And FAQ) |
(→Robotino Toolbox [MATLAB m-files]) |
||
Line 50: | Line 50: | ||
An online version of the documentation for Robotino's Toolbox can be viewed [http://doc.openrobotino.org/documentation/MATLAB/html_toolbox/html_Home.html here]. | An online version of the documentation for Robotino's Toolbox can be viewed [http://doc.openrobotino.org/documentation/MATLAB/html_toolbox/html_Home.html here]. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | Examples have been provided which illustrate the usage of Robotino's toolbox. They can be viewed [http://doc.openrobotino.org/documentation/MATLAB/html_toolbox/html_Examples.html here]. | ||
== Robotino Blockset [Simulink blocks] == | == Robotino Blockset [Simulink blocks] == |
Revision as of 16:23, 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.
Examples
Examples have been provided which illustrate the usage of Robotino's toolbox. They 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
- 'Error evaluating registered method ... ....Undefined function or variable...' encountered.
- This is probably because the 'RobotinoMatlab/toolbox' and 'RobotinoMatlab/blockset' folders have not been included in MATLAB's search path. You can add them as follows.
addpath( strcat( getenv('ROBOTINOMATLAB_DIR'), '/blockset' ) ); addpath( strcat( getenv('ROBOTINOMATLAB_DIR'), '/toolbox' ) );
- 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.