Drake
PiecewiseFunction Class Referenceabstract

#include <drake/systems/trajectories/PiecewiseFunction.h>

Inheritance diagram for PiecewiseFunction:
Collaboration diagram for PiecewiseFunction:

Public Member Functions

 PiecewiseFunction (std::vector< double > const &segment_times)
 
virtual ~PiecewiseFunction ()
 
virtual Eigen::Index rows () const =0
 
virtual Eigen::Index cols () const =0
 
int getNumberOfSegments () const
 
double getStartTime (int segment_number) const
 
double getEndTime (int segment_number) const
 
double getDuration (int segment_number) const
 
double getStartTime () const
 
double getEndTime () const
 
int getSegmentIndex (double t) const
 
const std::vector< double > & getSegmentTimes () const
 
void segmentNumberRangeCheck (int segment_number) const
 

Static Public Member Functions

static std::vector< doublerandomSegmentTimes (int num_segments, std::default_random_engine &generator)
 

Protected Member Functions

bool segmentTimesEqual (const PiecewiseFunction &b, double tol) const
 
void checkScalarValued () const
 
 PiecewiseFunction ()
 

Protected Attributes

std::vector< doublesegment_times
 

Constructor & Destructor Documentation

PiecewiseFunction ( std::vector< double > const &  segment_times)
explicit

Here is the call graph for this function:

~PiecewiseFunction ( )
virtual
PiecewiseFunction ( )
protected

Member Function Documentation

void checkScalarValued ( ) const
protected

Here is the call graph for this function:

Here is the caller graph for this function:

virtual Eigen::Index cols ( ) const
pure virtual
double getDuration ( int  segment_number) const

Here is the call graph for this function:

double getEndTime ( int  segment_number) const

Here is the call graph for this function:

Here is the caller graph for this function:

double getEndTime ( ) const

Here is the call graph for this function:

Here is the caller graph for this function:

int getNumberOfSegments ( ) const

Here is the caller graph for this function:

int getSegmentIndex ( double  t) const

Here is the call graph for this function:

Here is the caller graph for this function:

const std::vector< double > & getSegmentTimes ( ) const

Here is the caller graph for this function:

double getStartTime ( int  segment_number) const

Here is the call graph for this function:

Here is the caller graph for this function:

double getStartTime ( ) const

Here is the caller graph for this function:

std::vector< double > randomSegmentTimes ( int  num_segments,
std::default_random_engine &  generator 
)
static

Here is the caller graph for this function:

virtual Eigen::Index rows ( ) const
pure virtual
void segmentNumberRangeCheck ( int  segment_number) const

Here is the call graph for this function:

Here is the caller graph for this function:

bool segmentTimesEqual ( const PiecewiseFunction b,
double  tol 
) const
protected

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::vector<double> segment_times
protected

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