Load rigid body tree robot model
loads a robot model as a robotRBT
= loadrobot(robotname
)rigidBodyTree
object specified by robot model
name robotname
.
To import your own robot model as a Unified Robot Description Format (URDF) file or
Simscape™
Multibody™ model, see the importrobot
function.
[
specifies additional options using one or more name-value pair arguments. For example,
robotRBT
,robotData
] = loadrobot(robotname
,Name,Value
)'Gravity',[0 0 –9.81]
sets the gravity property to –9.81
m/s2 in the z-direction for the robot
model.