Robotics Playground MATLAB Robot

The Robotics playground provides an application programming interface to interact with a simple robot in a virtual environment using MATLAB commands in real-time.
See getting started example for a sample application.
Documentation
help mlrobot
mlrobot Creates a MATLAB Disc Robot in a virtual environment.
This class is intended for learning to program in
MATLAB using the Robotics Playground. This robot provides a virtual
environment visualization and access to sensors and actuators using
MATLAB functions.

EXAMPLE:
myRobot = mlrobot;
mlrobotstart(myRobot);
mlrobotsetmotorvoltage(myRobot,'left',3);
wheelSpeed = mlrobotreadwheelspeed(myRobot,'left');
mlrobotstop(myRobot);

Open getting started example with the following command:

>> edit mlrobot_getting_started


When using with a custom model that reuses the 'MATLAB Disc Robot' from
the Simulink Robotics Playground library, call this class by passing
the custom model name as an input

myRobot = mlrobot('customModelName')

See also mlrobotstart mlrobotstop mlrobotsetmotorvoltage
mlrobotreadwheelspeed mlrobotreadcompassangle

Copyright 2018 The MathWorks, Inc.

Reference page for mlrobot