Trajectory#

A Trajectory specialized for trajectory data representing the evolution of a traffic participant. A trajectory is a collection of :py:class:`Pose`s.

Serialization / IO / conversion#

Trajectory.from_csv(file[, indices])

Read a dictionary-alike object from a .csv file as a pandas DataFrame.

Trajectory.as_geo([position, aggregate])

Convert the trajectory to a geometric representation

Indexing#

Trajectory.att(timestamps[, columns])

TrajectoryDataset.trajectory(index[, inverse])

Select trajectory data for specific indices, or exclude them if inverse is set to True.

Filtering#

Trajectory.during(since, until[, include_until])

Select rows within a specific time range (include "since", exclude "until").

Analysis#

Attributes#

Trajectory.attributes

Returns the dataset attributes

Trajectory.id

Returns the id in the pose

Trajectory.interval

Returns the time interval this object spans

Trajectory.timestamps

The unique timestamps in the dataframe

Note

All pandas DataFrame methods are also available.