armarx::trajectory Namespace Reference

Namespaces

namespace  error
 
namespace  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.
 
using VariantKeyframe = Keyframe<VariantValue>
 A keyframe with of type TValue.
 
using VariantTrack = Track<VariantValue>
 A track with value type TValue.
 
using VariantValue = std::variant<float, Eigen::MatrixXf, Eigen::Quaternionf>
 Variant for trajectory values.
 

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.
 
VariantTrack::UpdateFunc toUpdateFunc (std::function< void(const Eigen::Quaternionf &)> func)
 Wrap the function in a Track::UpdateFunc.
 
VariantTrack::UpdateFunc toUpdateFunc (std::function< void(float)> func)
 Wrap the function in a Track::UpdateFunc.
 
template<typename ValueT>
VariantTrack::UpdateFunc updateValue (ValueT &v)
 Get an update function for value assignments.
 

Typedef Documentation

◆ TrackID

using TrackID = std::string

ID of tracks.

Definition at line 15 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 129 of file Track.h.

◆ VariantValue

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

Variant for trajectory values.

Definition at line 12 of file VariantValue.h.

Function Documentation

◆ operator<<() [1/2]

template<typename ValueT>
std::ostream & operator<< ( std::ostream & os,
const Track< ValueT > & track )

Definition at line 277 of file Track.h.

◆ operator<<() [2/2]

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

Definition at line 75 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 96 of file Trajectory.cpp.

◆ toUpdateFunc() [2/3]

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

Wrap the function in a Track::UpdateFunc.

Definition at line 103 of file Trajectory.cpp.

◆ toUpdateFunc() [3/3]

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

Wrap the function in a Track::UpdateFunc.

Definition at line 90 of file Trajectory.cpp.

◆ updateValue()

template<typename ValueT>
VariantTrack::UpdateFunc updateValue ( ValueT & v)

Get an update function for value assignments.

Definition at line 84 of file Trajectory.h.