Autopysta
Loading...
Searching...
No Matches
generalized_trajectory Class Referenceabstract

Base class for different types of trajectories. More...

#include <trajectory.h>

Inheritance diagram for generalized_trajectory:
static_trajectory trajectory

Public Member Functions

virtual pointcurrent ()=0
 Get the current point of the trajectory.
 
virtual pointoperator[] (int idx) const =0
 Get a point by integer index.
 
virtual pointoperator[] (double idx) const =0
 Get a point by interpolating a floating-point index.
 

Detailed Description

Base class for different types of trajectories.

This class provides an interface for retrieving points in a trajectory. Both trajectory and static_trajectory classes inherit from this class.

Member Function Documentation

◆ current()

virtual point * generalized_trajectory::current ( )
pure virtual

Get the current point of the trajectory.

Returns
Pointer to the current point.

Implemented in static_trajectory, and trajectory.

◆ operator[]() [1/2]

virtual point * generalized_trajectory::operator[] ( double idx) const
pure virtual

Get a point by interpolating a floating-point index.

Parameters
idxFloating-point index of the point.
Returns
Pointer to the interpolated point.

Implemented in static_trajectory, and trajectory.

◆ operator[]() [2/2]

virtual point * generalized_trajectory::operator[] ( int idx) const
pure virtual

Get a point by integer index.

Parameters
idxInteger index of the point.
Returns
Pointer to the point at the specified index.

Implemented in static_trajectory, and trajectory.


The documentation for this class was generated from the following file: