pyrobopath.collision_detection.trajectory.Trajectory#
- class pyrobopath.collision_detection.trajectory.Trajectory(points: List[TrajectoryPoint] | None = None)[source]#
Bases:
objectA trajectory represents a sequence of points in time
Trajectory points should maintain a stricly increasing sorted order
Methods
add_traj_pointdistanceelapsedend_timefrom_const_vel_pathInterpolate the trajectory at 'time'.
insert_traj_pointn_pointsoffsetReturns a new trajectory that has been filtered with trajectory points in the closed interval [start, end].
start_time- get_point_at_time(time) TrajectoryPoint | None[source]#
Interpolate the trajectory at ‘time’. This function returns ‘None’ for queries outside of the interval [start_time(), end_time()]
- slice(start, end) Trajectory[source]#
Returns a new trajectory that has been filtered with trajectory points in the closed interval [start, end].