load rigid body tree robot model from robot library -凯发k8网页登录
load rigid body tree robot model from robot library
since r2019b
syntax
description
loads a robot model from the robot library as a object specified by robot model name
robotrbt
= loadrobot(robotname
)robotname
.
to import your own robot model from a unified robot description format (urdf), xml
macros (xacro), or simulation description format (sdf) 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.
note
to use the rigidbodytree
model of the robot generated by
loadrobot
with (simscape multibody) function, you must download and install the support package from file exchange. for more information, see
.
examples
load provided robot model
this example shows how to load an included robot model using loadrobot
. specify one of the select robot names to get a robot model that contains kinematic and dynamic constraints and visual meshes for the specified robot geometry.
gen3 = loadrobot("kinovagen3");
show the robot model in a figure.
show(gen3);
input arguments
robotname
— name of robot model
"abbirb120"
| "abbirb120t"
| "abbirb1600"
| ...
name of robot model, specified as one of these valid robot model names:
robot model | mesh visualization | description |
---|---|---|
"abbirb120" | abb 6-axis robot | |
"abbirb120t" | abb irb 120t 6-axis robot | |
"abbirb1600" | abb 6-axis robot | |
"abbyumi" | abb 2-armed robot | |
"amrpioneer3at" | adept mobilerobots pioneer 3-at mobile robot | |
"amrpioneer3dx" | adept mobilerobots pioneer 3-dx mobile robot | |
"amrpioneerlx" | adept mobilerobots pioneer lx mobile robot | |
"atlas" | boston dynamics ® humanoid robot | |
"clearpathhusky" | clearpath robotics mobile robot | |
"clearpathjackal" | clearpath robotics mobile robot | |
"clearpathturtlebot2" | clearpath robotics mobile robot | |
"fanuclrmate200ib" | fanuc lr mate 200ib 6-axis robot | |
"fanucm16ib" | fanuc m-16ib 6-axis robot | |
"frankaemikapanda" | franka emika panda 7-axis robot | |
"kinovagen3" | version 1: version 2: | kinova® gen3 7-axis robot |
"kinovajacoj2n6s200" | kinova ® 2-fingered 6 dof robot with non-spherical wrist | |
"kinovajacoj2n6s300" | kinova ® 3-fingered 6 dof robot with non-spherical wrist | |
"kinovajacoj2n7s300" | kinova ® 3-fingered 7 dof robot with non-spherical wrist | |
"kinovajacoj2s6s300" | kinova ® 3-fingered 6 dof robot with spherical wrist | |
"kinovajacoj2s7s300" | kinova ® 3-fingered 7 dof robot with spherical wrist | |
"kinovajacotwoarmexample" | two kinova ® 3-fingered 6 dof robots with non-spherical wrist | |
"kinovamicom1n4s200" | kinova mico® 2-fingered 4 dof robot | |
"kinovamicom1n6s200" | kinova mico® 2-fingered 6 dof robot | |
"kinovamicom1n6s300" | kinova mico® 3-fingered 6 dof robot | |
"kinovamovo" | kinova movo® 2-armed mobile robot | |
"kukaiiwa7" | kuka lbr iiwa 7 r800 7-axis robot | |
"kukaiiwa14" | kuka lbr iiwa 14 r820 7-axis robot | |
"meca500r3" | mecademic meca500 r3 6-axis robot | |
"omronecobra600" |
| omron ecobra 600 4-axis scara robot |
"puma560" |
| puma 560 6-axis robot |
"quanserqarm" | 4 dof robot | |
"quanserqbot2e" | mobile robot | |
"quanserqcar" | mobile robot | |
"rethinkbaxter" | rethink robotics baxter 2-armed robot | |
"rethinksawyer" | rethink robotics sawyer 7-axis robot | |
"robotiq2f85" | robotiq 2f-85 2-finger gripper the gripper can be used with the following list of manipulators:
| |
"robotisop2" | robotis op2 humanoid robot | |
"robotisopenmanipulator" | robotis openmanipulator 4-axis robot with gripper | |
"robotisturtlebot3burger" | robotis turtlebot 3 burger robot | |
"robotisturtlebot3waffle" | robotis turtlebot 3 waffle robot | |
"robotisturtlebot3waffleforopenmanipulator" | robotis turtlebot 3 waffle robot for openmanipulator | |
"robotisturtlebot3wafflepi" | robotis turtlebot 3 waffle pi robot | |
"robotisturtlebot3wafflepiforopenmanipulator" | robotis turtlebot 3 waffle pi robot for openmanipulator | |
"universalur3" | universal robots ur3 6-axis robot | |
"universalur3e" | universal robots ur3e 6-axis robot | |
"universalur5" | universal robots ur5 6-axis robot | |
"universalur5e" | universal robots ur5e 6-axis robot | |
"universalur10" | universal robots ur10 6-axis robot | |
"universalur10e" | universal robots ur10e 6-axis robot | |
"universalur16e" | universal robots ur16e 6-axis robot | |
"valkyrie" | nasa valkyrie humanoid robot | |
"willowgaragepr2" | willow garage pr2 mobile robot | |
"yaskawamotomanmh5" | yaskawa motoman mh5 6-axis robot |
data types: char
| string
name-value arguments
specify optional pairs of arguments as
name1=value1,...,namen=valuen
, where name
is
the argument name and value
is the corresponding value.
name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
before r2021a, use commas to separate each name and value, and enclose
name
in quotes.
example: 'gravity',[0 0 -9.81]
sets the gravity property to -9.81
m/s2 in the z-direction for the robot
model.
dataformat
— input/output data format for kinematics and dynamics functions
"struct"
(default) | "row"
| "column"
input/output data format for the kinematics and dynamics functions of the robot
model, specified as the comma-separated pair consisting of
'dataformat'
and "struct"
,
"row"
, or "column"
. to use dynamics functions,
you must specify either "row"
or "column"
. this
name-value pair sets the property of the
robot model.
gravity
— gravitational acceleration experienced by robot
[0 0 0]
m/s2 (default) | three-element vector of the form [x
y
z]
gravitational acceleration experienced by robot, specified as the comma-separated
pair consisting of 'gravity'
and a three-element vector of the form
[x
y
z]
in m/s2. each element
corresponds to the acceleration of the base robot frame in the x-,
y-, and z-direction, respectively. this
name-value pair sets the property of the
robot model.
version
— urdf version of robot model
1
(default) | numeric scalar
urdf version of the robot model, specified as a numeric scalar.
robot model | versions |
---|---|
"kinovagen3" | 1 –– loads the kinovagen3.urdf
robot model |
2 –– loads the kinovagen3v12.urdf
robot model |
example: loadrobot("kinovagen3","version",2)
output arguments
robotrbt
— rigid body tree robot model
rigidbodytree
object
rigid body tree robot model, returned as a object. this model contains all the kinematic and dynamic
constraints based on the robot source files specified in robotdata
.
some models also contain visual meshes for visualizing robot trajectories.
robotdata
— robot model information
structure
robot model information, returned as a structure containing these fields. whether
the function returns a value for a field is based on the type of robot specified by the
robotname
input. non-relevant fields for that robot are
empty.
this table describes the fields of the robot model information structure.
field | description |
---|---|
(relevant for all robot types) | name of the returned robot model |
(relevant for all robot types) | file path of the urdf file that is used to create the rigid body tree model |
(relevant for all robot types) | url source of the robot model |
(relevant for all robot types) | version number of the robot model |
wheelradius | wheel radius of the robot in meters |
wheelbase | distance between front and rear axles in meters |
trackwidth | distance between wheels on axle in meters |
maxtranslationalvelocity | maximum linear velocity of the robot in m/s |
maxrotationalvelocity | maximum angular velocity of the robot in rad/s |
drivetype | all robots are modeled with a fixed base, but this field describes the actual drive type of the robot base. the drive type can be any one of the following based on the specified robot:
|
manipulatormotionmodel | motion model of a manipulator robot
|
mobilebasemotionmodel | kinematic motion model of the mobile base. the motion model can be any one of the following based on the specified robot:
|
hasbodyinertias | flag indicating if the robot model has inertias, indicated as a
1 (true ) if the robot model has at least
one body with body inertia or 0 (false ) if
the robot model has no bodies with inertia. |
data types: struct
version history
introduced in r2019b
see also
| importrobot
|
打开示例
您曾对此示例进行过修改。是否要打开带有您的编辑的示例?
matlab 命令
您点击的链接对应于以下 matlab 命令:
请在 matlab 命令行窗口中直接输入以执行命令。web 浏览器不支持 matlab 命令。
select a web site
choose a web site to get translated content where available and see local events and offers. based on your location, we recommend that you select: .
you can also select a web site from the following list:
how to get best site performance
select the china site (in chinese or english) for best site performance. other mathworks country sites are not optimized for visits from your location.
americas
- (español)
- (english)
- (english)
europe
- (english)
- (english)
- (deutsch)
- (español)
- (english)
- (français)
- (english)
- (italiano)
- (english)
- (english)
- (english)
- (deutsch)
- (english)
- (english)
- switzerland
- (english)
asia pacific
- (english)
- (english)
- (english)
- 中国
- (日本語)
- (한국어)