robotPlatform
Create robot platform in scenario
Description
The robotPlatform
object represents a robot platform in a given
robot scenario. Use the platform to define and track the trajectory of an object in the
scenario. To simulate sensor readings for the platform, mount sensors such as the gpsSensor
,
insSensor
, and
robotLidarPointCloudGenerator
System object™ to the platform as robotSensor
objects. Add a body mesh to the platform for visualization using the updateMesh
object function.
Creation
Description
creates a platform with a specified name platform
= robotPlatform(name
,scenario
)name
and adds it to the
scenario, specified as a robotScenario
object. Specify the name
argument as a string scalar. The
name
argument sets the Name
property.
specifies options using one or more name-value pair arguments. You can specify properties
as name-value pair arguments as well.platform
= robotPlatform(___,Name=Value
)
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: StartTime=10
sets the initial time of the platform
trajectory to 10 seconds.
Properties
Object Functions
move | Move robot platform in scenario |
read | Read robot platform motion vector |
updateMesh | Update robot platform body mesh |
Examples
Version History
Introduced in R2022a