Trajectory
Description
The Trajectory object
creates a trajectory using timestamps and waypoints.
Creation
Syntax
Description
creates a trajectory object, trajectory = scenariobuilder.Trajectory(timestamps,x,y,z)trajectory, using the specified timestamps
timestamps and the corresponding xyz-coordinates
of waypoints. x, y, and z
specify the first, second, and third columns of the Position property,
respectively.
creates a trajectory object, trajectory = scenariobuilder.Trajectory(timestamps,waypoints)trajectory, using the specified timestamps
timestamps and the corresponding waypoints
waypoints. The waypoints argument specifies
the Position property.
sets writable properties using one or more name-value arguments, in addition to any
combination of input arguments from the previous syntaxes. For example,
trajectory = scenariobuilder.Trajectory(___,Name=Value)Attributes=attributes specifies the optional trajectory 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
Name-Value Arguments
Properties
Object Functions
add | Add waypoints to trajectory 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 trajectory data |
writeCSV | Write trajectory data into CSV file |
distance | Compute total traveled distance of trajectory data |
normalizeTimestamps | Normalize timestamps of sensor data object |
smooth | Smooth trajectory data |
exportToDrivingScenario | Export trajectory to driving scenario |
exportToRoadRunner | Export trajectory to RoadRunner |
adjustHeight | Adjust height of waypoints in trajectory object to match road height |

