gramods
|
Pose tracker plays back linear interpolation between specified samples. More...
#include <TimeSamplePoseTracker.hh>
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... | |
![]() | |
virtual std::string | getDefaultKey () override |
Returns the default key, in Configuration, for the Object. More... | |
![]() | |
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 | |
![]() | |
typedef std::chrono::steady_clock | clock |
Pose tracker plays back linear interpolation between specified samples.
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
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
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
|
overridevirtual |
Replaces the contents of p with pose data.
Implements gramods::gmTrack::SinglePoseTracker.