ChppGikMotionConstraint Class Reference

In this implementation of CjrlGikMotionConstraint, the motion is a vector of CjrlGikStateConstraint which are samples at the sampling rate entered in the constructor. More...

#include <hpp/gik/constraint/motion-constraint.hh>

Inheritance diagram for ChppGikMotionConstraint:
Collaboration diagram for ChppGikMotionConstraint:

Public Member Functions

 ChppGikMotionConstraint (CjrlDynamicRobot *inRobot, double inSamplingPeriod, double inStartTime=0.0)
 Constructor. More...
 
CjrlDynamicRobot * robot ()
 get the associated robot More...
 
CjrlGikMotionConstraintclone () const
 Clone Constructor. More...
 
void pushbackStateConstraint (const CjrlGikStateConstraint *inStateConstraint)
 Append a state constraint at the end of the motion and update the end time (A copy of the given state constraint object is made). More...
 
void pushfrontStateConstraint (const CjrlGikStateConstraint *inStateConstraint)
 Append a state constraint at the beginning of the motion and update the start time (A copy of the given state constraint object is made). More...
 
virtual CjrlGikStateConstraintstateConstraintAtTime (double inTime)
 Get state constraint at a given time. More...
 
CjrlGikStateConstraintstateConstraintAtRank (unsigned int inRank) const
 Get state constraint at a given rank. More...
 
unsigned int numberStateConstraints ()
 Get the number of state constraints contained in this motion constraint. More...
 
bool empty ()
 Tell if support vector motion is empty. More...
 
void clear ()
 Empty the Motion Constraint and reset start and end times. More...
 
void startTime (double inStartTime)
 Set lower bound of definition interval. More...
 
double startTime ()
 Get lower bound of definition interval. More...
 
double endTime ()
 Get upper bound of definition interval. More...
 
double samplingPeriod ()
 Get the sampling period. More...
 
 ~ChppGikMotionConstraint ()
 Destructor. More...
 
- Public Member Functions inherited from CjrlGikMotionConstraint
virtual ~CjrlGikMotionConstraint ()
 

Detailed Description

In this implementation of CjrlGikMotionConstraint, the motion is a vector of CjrlGikStateConstraint which are samples at the sampling rate entered in the constructor.

In the current state, when a stateconstraint is requested at a given time, the nearest sample found is returned. a more precise implementation could return an interpolation of the bounding samples. The default start time is 0.

Constructor & Destructor Documentation

◆ ChppGikMotionConstraint()

ChppGikMotionConstraint::ChppGikMotionConstraint ( CjrlDynamicRobot *  inRobot,
double  inSamplingPeriod,
double  inStartTime = 0.0 
)

Constructor.

◆ ~ChppGikMotionConstraint()

ChppGikMotionConstraint::~ChppGikMotionConstraint ( )

Destructor.

Member Function Documentation

◆ clear()

void ChppGikMotionConstraint::clear ( )

Empty the Motion Constraint and reset start and end times.

◆ clone()

CjrlGikMotionConstraint* ChppGikMotionConstraint::clone ( ) const
virtual

Clone Constructor.

Implements CjrlGikMotionConstraint.

◆ empty()

bool ChppGikMotionConstraint::empty ( )

Tell if support vector motion is empty.

◆ endTime()

double ChppGikMotionConstraint::endTime ( )
virtual

Get upper bound of definition interval.

Implements CjrlGikMotionConstraint.

◆ numberStateConstraints()

unsigned int ChppGikMotionConstraint::numberStateConstraints ( )

Get the number of state constraints contained in this motion constraint.

◆ pushbackStateConstraint()

void ChppGikMotionConstraint::pushbackStateConstraint ( const CjrlGikStateConstraint inStateConstraint)

Append a state constraint at the end of the motion and update the end time (A copy of the given state constraint object is made).

◆ pushfrontStateConstraint()

void ChppGikMotionConstraint::pushfrontStateConstraint ( const CjrlGikStateConstraint inStateConstraint)

Append a state constraint at the beginning of the motion and update the start time (A copy of the given state constraint object is made).

◆ robot()

CjrlDynamicRobot* ChppGikMotionConstraint::robot ( )
virtual

get the associated robot

Implements CjrlGikMotionConstraint.

◆ samplingPeriod()

double ChppGikMotionConstraint::samplingPeriod ( )

Get the sampling period.

◆ startTime() [1/2]

void ChppGikMotionConstraint::startTime ( double  inStartTime)
virtual

Set lower bound of definition interval.

Implements CjrlGikMotionConstraint.

◆ startTime() [2/2]

double ChppGikMotionConstraint::startTime ( )
virtual

Get lower bound of definition interval.

Implements CjrlGikMotionConstraint.

◆ stateConstraintAtRank()

CjrlGikStateConstraint* ChppGikMotionConstraint::stateConstraintAtRank ( unsigned int  inRank) const

Get state constraint at a given rank.

◆ stateConstraintAtTime()

virtual CjrlGikStateConstraint* ChppGikMotionConstraint::stateConstraintAtTime ( double  inTime)
virtual

Get state constraint at a given time.

Implements CjrlGikMotionConstraint.