gramods
Classes | Public Member Functions | Static Public Attributes | List of all members
gramods::gmTrack::TimeSamplePoseTracker Class Reference

Pose tracker plays back linear interpolation between specified samples. More...

#include <TimeSamplePoseTracker.hh>

Inheritance diagram for gramods::gmTrack::TimeSamplePoseTracker:
Inheritance graph
[legend]
Collaboration diagram for gramods::gmTrack::TimeSamplePoseTracker:
Collaboration graph
[legend]

Classes

struct  Impl
 

Public Member Functions

void addTime (double t)
 Adds a time sample in seconds, from the start of the program. More...
 
void addPosition (Eigen::Vector3f p)
 Adds a position sample, in xml as (x y z). More...
 
void addOrientation (Eigen::Quaternionf q)
 Add a orientation sample. More...
 
bool getPose (PoseSample &p) override
 Replaces the contents of p with pose data. More...
 
- Public Member Functions inherited from gramods::gmTrack::SinglePoseTracker
virtual std::string getDefaultKey () override
 Returns the default key, in Configuration, for the Object. More...
 
- Public Member Functions inherited from gramods::gmCore::Object
 Object ()
 Initializes internal data. More...
 
virtual ~Object ()
 Cleaning up internal data. More...
 
virtual void initialize ()
 Called to initialize the Object. More...
 
virtual void accept (Visitor *visitor)
 Calls the visitors apply method with this as argument. More...
 
virtual void traverse (Visitor *visitor)
 Calls the child Object's accept method, if such exist. More...
 
bool isInitialized ()
 Returns true if the Object is initialized. More...
 

Static Public Attributes

static gramods::gmCore::OFactory::OFactoryInformation _gm_ofi
 

Additional Inherited Members

- Public Types inherited from gramods::gmTrack::PoseTracker
typedef std::chrono::steady_clock clock
 

Detailed Description

Pose tracker plays back linear interpolation between specified samples.

Member Function Documentation

◆ addOrientation()

void gramods::gmTrack::TimeSamplePoseTracker::addOrientation ( Eigen::Quaternionf  q)

Add a orientation sample.

There must be either no or one orientation sample, or as many as the number of time samples.

XML-attribute: orientation

See also
gramods::operator>>(std::istream &, Eigen::Quaternionf &)

◆ addPosition()

void gramods::gmTrack::TimeSamplePoseTracker::addPosition ( Eigen::Vector3f  p)

Adds a position sample, in xml as (x y z).

There must be either no or one position sample, or as many as the number of time samples.

XML-attribute: position

See also
gramods::operator>>(std::istream &in, Eigen::Vector3f &v)

◆ addTime()

void gramods::gmTrack::TimeSamplePoseTracker::addTime ( double  t)

Adds a time sample in seconds, from the start of the program.

There must be at least two time samples as well as an equal amount of time samples and amount of either one of both of position and orientation samples.

XML-attribute: time

◆ getPose()

bool gramods::gmTrack::TimeSamplePoseTracker::getPose ( PoseSample p)
overridevirtual

Replaces the contents of p with pose data.

Implements gramods::gmTrack::SinglePoseTracker.


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