# Function Reference | Alphabetical List

3D transforms | Manipulate homogeneous transformations and orthonormal rotation matrices
| 2D transforms | Manipulate homogeneous transformations and orthonormal rotation matrices
| Homogeneous points and lines | Manipulate homogeneous points and lines | Differential motion | Convert differential motion between coordinate frames | Trajectory generation | Create motion trajectory and interpolate poses | Quaternion | Manipulate unit quaternions | Serial-link manipulator | Class representing the kinematics and dynamics of a serial-link manipulator | Models | Models of serial-link manipulators | Kinematic | Serial-link manipulator kinematic functions | Dynamics | Serial-link manipulator dynamic functions | Mobile robot | Classes for mobile robotics problems | Localization | Mobile robot localization algorithms | Path planning | Mobile robot path planning algorithms | Graphics | Useful graphic primitives | Utility | Miscellaneous functions | Demonstrations |  | Interfacing |  | Code generation |  | Examples |

Back to Top

# 3D transforms

angvec2r | angle/vector to SO3
angvec2tr | angle/vector to SE3
eul2r | Euler angles to SO3
eul2tr | Euler angles to SE3
ishomog | true if argument is SE3
isrot | true if argument is a SO3 matrix
oa2r | orientation and approach vector to SO3
oa2tr | orientation and approach vector to SE3
r2t | SO3 to SE3
rt2tr | (R,t) to SE3
rotx | SO3 for rotation about X-axis
roty | SO3 for rotation about Y-axis
rotz | SO3 for rotation about Z-axis
rpy2r | roll/pitch/yaw angles to SO3
rpy2tr | roll/pitch/yaw angles to SE3
t2r | SE3 to SO3
tr2angvec | SE3/SO3 to angle/vector form
tr2eul | SE3/SO3 to Euler angles
tr2rpy | SE3/SO3 to roll/pitch/yaw angles
tr2rt | SE3 to (R,t)
tranimate | animate a coordinate frame
trchain | evaluate a series of transforms
tripleangle | graphical interactive three angle rotation
transl | set or extract the translational component of SE3
trnorm | normalize SE3
trchain | chain of SE(3) transforms
trplot | plot SE3 as a coordinate frame
trprint | print an SE3
trotx | SE3 for rotation about X-axis
troty | SE3 for rotation about Y-axis
trotz | SE3 for rotation about Z-axis
trscale | SE3 for scale change

Back to Top

# 2D transforms

ishomog2 | true if argument is a 3x3 matrix
isrot2 | true if argument is a 2x2 matrix
rot2 | SO2 rotation
se2 | create SE2
se3 | lift SE2 to SE3
transl2 | set or extract the translational component of SE2
trchain2 | chain of SE2 transforms
trot2 | SO2 rotation
trplot2 | plot SE2 as a coordinate frame

Back to Top

# Homogeneous points and lines

e2h | Euclidean coordinates to homogeneous
h2e | homogeneous coordinates to Euclidean
homline | create line from 2 points
homtrans | transform points

Back to Top

# Differential motion

delta2tr | differential motion vector to SE3
eul2jac | Euler angles to Jacobian
rpy2jac | RPY angles to Jacobian
skew | vector to skew symmetric matrix
tr2delta | SE3 to differential motion vector
tr2jac | SE3 to Jacobian
vex | skew symmetric matrix to vector
wtrans | transform wrench between frames

Back to Top

# Trajectory generation

ctraj | Cartesian trajectory
jtraj | joint space trajectory
lspb | 1D trapezoidal trajectory
mtraj | multi-axis trajectory for arbitrary function
mstraj | multi-axis multi-segment trajectory
tpoly | 1D polynomial trajectory
trinterp | interpolate SE3 s

Back to Top

# Quaternion

Quaternion | constructor
/ | divide quaternion by quaternion or scalar
* | multiply quaternion by a quaternion or vector
Quaternion.inv | invert a quaternion
Quaternion.norm | norm of a quaternion
Quaternion.plot | display a quaternion as a 3D rotation
Quaternion.unit | unitize a quaternion
Quaternion.interp | interpolate a quaternion

Back to Top

# Serial-link manipulator

CodeGenerator | construct a robot specific code generator object
SerialLink | construct a serial-link robot object
Link | construct a general robot link object
Prismatic | construct a prismatic robot link object
Revolute | construct a revolute robot link object
PrismaticMDH | construct a prismatic robot link object
RevoluteMDH | construct a revolute robot link object
* | compound two robots
SerialLink.edit | interactively edit a robot object
SerialLink.friction | return joint friction torques
SerialLink.nofriction | return a robot object with no friction
SerialLink.perturb | return a robot object with perturbed parameters
SerialLink.plot | plot/animate robot
SerialLink.plot3d | plot/animate robot as solid model
SerialLink.teach | drive a graphical robot

Back to Top

## Models

mdl_baxter | Baxter 2-arm robot (DH, kine)
mdl_Fanuc10L | Fanuc 10L (DH, kine)
mdl_irb140 | ABB IRB140 (DH, kine)
mdl_irb140_mdh | ABB IRB140 (MDH, kine)
mdl_jaco | Kinova Jaco arm (DH, kine)
mdl_KR5 | Kuka KR5 (DH, kine)
mdl_m16 | Fanuc M16 (DH, kine)
mdl_mico | Kinova Mico arm (DH, kine)
mdl_MotomanHP6 | Motoman HP6 (DH, kine)
mdl_nao | Alderabaran NAO arms and legs (DH, kine)
mdl_phantomx | PhantomX pincher 4DOF hobby arm (DH, kine)
mdl_puma560 | Puma 560 data (DH, kine, dyn)
mdl_puma560akb | Puma 560 data (MDH, kine, dyn)
mdl_p8 | Puma 560 on an XY base (DH, kine)
mdl_S4ABB2p8 | ABB S4 2.8 (DH, kine)
mdl_stanford | Stanford arm data (DH, kine, dyn)
mdl_stanford_mdh | Stanford arm data (MDH, kine, dyn)
mdl_onelink | simple 1-link example (DH, kine)
mdl_planar1 | simple 1 link planar model (DH, kine)
mdl_planar2 | simple 2 link planar model (DH, kine)
mdl_planar3 | simple 3 link planar model (DH, kine)
mdl_3link3d | Simple 3DOF arm, no shoulder offset (DH, kine)
mdl_twolink | simple 2-link example (DH, kine, dyn)
mdl_twolink_mdh | simple 2-link example (MDH, kine)
mdl_simple6 | simple 6 link model (DH, kine)
mdl_offset6 | simple 6 link model (DH, kine)
mdl_offset3 | simple 3 link model (DH, kine)
mdl_ball | high DOF chain that forms a ball
mdl_coil | high DOF chain that forms a coil
mdl_hyper2d | 2D high DOF chain
mdl_hyper3d | 3D high DOF chain
mdl_quadrotor | simple quadrotor model

Back to Top

## Kinematic

DHFactor | transform sequence to DH description
jsingu | find dependent joints
SerialLink.fellipse | plot force ellipsoid
SerialLink.fkine | forward kinematics
SerialLink.ikine | inverse kinematics (numeric)
SerialLink.ikine_sym | inverse kinematics (symbolic)
SerialLink.ikine6s | inverse kinematics for 6-axis arm with sph.wrist
SerialLink.jacob0 | Jacobian in base coordinate frame
SerialLink.jacobn | Jacobian in end-effector coordinate frame
SerialLink.maniplty | compute manipulability
SerialLink.trchain | express as chain of SE(3) transforms
SerialLink.vellipse | plot velocity ellipsoid

Back to Top

## Dynamics

SerialLink.accel | forward dynamics
SerialLink.cinertia | Cartesian manipulator inertia matrix
SerialLink.coriolis | centripetal/coriolis torque
SerialLink.fdyn | forward dynamics
wtrans | transform a force/moment
SerialLink.gravload | gravity loading
SerialLink.inertia | manipulator inertia matrix
SerialLink.itorque | inertia torque
SerialLink.rne | inverse dynamics

Back to Top

# Mobile robot

Map | point feature map object
RandomPath | driver for Vehicle object
RangeBearingSensor | "laser scanner" object
Vehicle | construct a mobile robot object
sl_bicycle | Simulink "bicycle model" of non-holonomic wheeled vehicle
Navigation | Navigation superclass
Sensor | robot sensor superclass
makemap | build an occupancy grid
plot_vehicle | plot vehicle

Back to Top

## Localization

EKF | extended Kalman filter object
ParticleFilter | Monte Carlo estimator

Back to Top

## Path planning

Bug2 | bug navigation
DXform | distance transform from map
Dstar | D* planner
PRM | probabilistic roadmap planner
RRT | rapidly exploring random tree

Back to Top

# Graphics

Animate | record a graphical animation sequence
plot2 | plot trajectory
plotp | plot points
plot_arrow | draw an arrow
plot_box | draw a box
plot_circle | draw a circle
plot_ellipse | draw an ellipse
plot_ellipse_inv | draw an ellipse
plot_homline | plot homogeneous line
plot_point | plot points
plot_poly | plot polygon
plot_sphere | draw a sphere
qplot | plot joint angle trajectories
plot2 | Plot trajectories
plotp | Plot trajectories
xaxis | set x-axis scaling
yaxis | set y-axis scaling
xyzlabel | label axes x, y and z

Back to Top

# Utility

about | summary of object size and type
angdiff | subtract 2 angles modulo 2pi
arrow3 | draw a 3D arrow (third party code)
bresenham | Bresenhan line drawing
circle | compute/draw points on a circle
colnorm | columnwise norm of matrix
colorname | map color name to RGB
diff2 | elementwise diff
dockfigs | control figure docking with GUI
edgelist | trace edge of a shape
gauss2d | Gaussian distribution in 2D
ismatrix | true if non scalar
isvec | true if argument is a 3-vector
numcols | number of columns in matrix
numrows | number of rows in matrix
peak | find peak in 1D signal
peak2 | find peak in 2D signal
PGraph | general purpose graph class
polydiff | derivative of polynomial
Polygon | general purpose polygon class
randinit | initialize random number generator
ramp | create linear ramp
rvcpath | path to RVC install
unit | unitize a vector
tb_optparse | toolbox argument parser
distancexform | compute distance transform
runscript | interactively step through a script
multidfprintf | printf extension

Back to Top

# Demonstrations

rtbdemo | Serial-link manipulator demonstration
tripleangle | demonstrate angle sequences

Back to Top

# Interfacing

Arbotix | Interface to Arbotix robot controller
Machine | Abstract robot interface class
RobotArm | Connect SerialLink object to real robot
joystick | Help for joystick interface mex file
joy2tr | Update SE3 based on joystick input
VREP | VREP interface class
VREP_mirror | MATLAB mirror for VREP object
VREP_arm | MATLAB mirror for VREP robot arm
VREP_obj | MATLAB mirror for VREP object
VREP_camera | MATLAB mirror for VREP camera object

Back to Top

# Code generation

ccodefunctionstring | Converts a symbolic expression into a C-code function
distributeblocks | Distribute blocks in Simulink block library
doesblockexist | Check existence of block in Simulink model
getprofilefunctionstats | [ funstats] = getprofilefunctionstats( pstats , desfun, varargin)
simulinkext | Return file extension of Simulink block diagrams.
symexpr2slblock | Create symbolic embedded MATLAB Function block

Back to Top

# Examples

sl_quadcopter | Simulink model of a flying quadcopter
sl_braitenberg | Simulink model a Braitenberg vehicle
movepoint | non-holonomic vehicle moving to a point
moveline | non-holonomic vehicle moving to a line
movepose | non-holonomic vehicle moving to a pose
joytest | demo of gaming joystick input
walking | example of 4-legged walking robot
eg_inertia | joint 1 inertia I(q1,q2)
eg_inertia22 | joint 2 inertia I(q3)
eg_grav | joint 2 gravity load g(q2,q3)

Back to Top