armarx::trajectory Namespace Reference

Namespaces

 error
 
 interpolate
 

Classes

struct  Keyframe
 A keyframe, representing a value at a given time. More...
 
class  Track
 A track represents the timeline of a single value, identified by a track ID. More...
 
class  Trajectory
 This class is used to update entities based on trajectory defined by keyframes. More...
 

Typedefs

using TrackID = std::string
 ID of tracks. More...
 
using VariantKeyframe = Keyframe< VariantValue >
 A keyframe with of type TValue. More...
 
using VariantTrack = Track< VariantValue >
 A track with value type TValue. More...
 
using VariantValue = std::variant< float, Eigen::MatrixXf, Eigen::Quaternionf >
 Variant for trajectory values. More...
 

Functions

template<typename ValueT >
std::ostream & operator<< (std::ostream &os, const Track< ValueT > &track)
 
std::ostream & operator<< (std::ostream &os, const Trajectory &trajectory)
 
VariantTrack::UpdateFunc toUpdateFunc (std::function< void(const Eigen::MatrixXf &)> func)
 Wrap the function in a Track::UpdateFunc. More...
 
VariantTrack::UpdateFunc toUpdateFunc (std::function< void(const Eigen::Quaternionf &)> func)
 Wrap the function in a Track::UpdateFunc. More...
 
VariantTrack::UpdateFunc toUpdateFunc (std::function< void(float)> func)
 Wrap the function in a Track::UpdateFunc. More...
 
template<typename ValueT >
VariantTrack::UpdateFunc updateValue (ValueT &v)
 Get an update function for value assignments. More...
 

Typedef Documentation

◆ TrackID

using TrackID = std::string

ID of tracks.

Definition at line 16 of file VariantValue.h.

◆ VariantKeyframe

A keyframe with of type TValue.

Definition at line 25 of file Track.h.

◆ VariantTrack

A track with value type TValue.

Definition at line 135 of file Track.h.

◆ VariantValue

using VariantValue = std::variant<float, Eigen::MatrixXf, Eigen::Quaternionf>

Variant for trajectory values.

Definition at line 13 of file VariantValue.h.

Function Documentation

◆ operator<<() [1/2]

std::ostream& armarx::trajectory::operator<< ( std::ostream &  os,
const Track< ValueT > &  track 
)

Definition at line 274 of file Track.h.

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream &  os,
const Trajectory trajectory 
)

Definition at line 67 of file Trajectory.cpp.

◆ toUpdateFunc() [1/3]

auto toUpdateFunc ( std::function< void(const Eigen::MatrixXf &)>  func)

Wrap the function in a Track::UpdateFunc.

Definition at line 89 of file Trajectory.cpp.

+ Here is the call graph for this function:

◆ toUpdateFunc() [2/3]

auto toUpdateFunc ( std::function< void(const Eigen::Quaternionf &)>  func)

Wrap the function in a Track::UpdateFunc.

Definition at line 97 of file Trajectory.cpp.

+ Here is the call graph for this function:

◆ toUpdateFunc() [3/3]

auto toUpdateFunc ( std::function< void(float)>  func)

Wrap the function in a Track::UpdateFunc.

Definition at line 81 of file Trajectory.cpp.

+ Here is the call graph for this function:

◆ updateValue()

VariantTrack::UpdateFunc armarx::trajectory::updateValue ( ValueT &  v)

Get an update function for value assignments.

Definition at line 89 of file Trajectory.h.

+ Here is the call graph for this function: