GPSData
Description
The GPSData
object stores GPS data.
Creation
Syntax
Description
creates an
empty gpsData
= scenariobuilder.GPSDataGPSData
object, gpsData
.
creates a gpsData
= scenariobuilder.GPSData(timestamps
,latitude
,longitude
,altitude
)GPSData
object, gpsData
, with the Timestamp
,
Latitude
, Longitude
, and
Altitude
properties set by the timestamps
,
latitude
, longitude
, and
altitude
arguments, respectively. Additionally, this syntax sets
the SampleRate
, SampleTime
,
Duration
, and NumSamples
properties.
sets writable properties using one or more name-value arguments. For example,
gpsData
= scenariobuilder.GPSData(timestamps
,latitude
,longitude
,altitude
,Name=Value
)Attributes=attributes
specifies the optional GPS attributes
attributes
.
Note
This object requires the Scenario Builder for Automated Driving Toolbox™ support package. You can install the Scenario Builder for Automated Driving Toolbox support package from the Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
Input Arguments
Properties
Object Functions
add | Add data to GPS data object |
remove | Remove data from sensor data object |
read | Read data from sensor data object |
copy | Create copy of sensor data object |
crop | Crop data from sensor data object |
synchronize | Synchronize sensor data with reference sensor information |
plot | Plot GPS data |
distance | Compute total distance traveled for data stored in GPS data object |
normalizeTimestamps | Normalize timestamps of sensor data object |
trajectory | Create trajectory from GPS data object |
Examples
Version History
Introduced in R2024b