Skip to content
Snippets Groups Projects
Commit 2ecc8d12 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Rename file

parent b90b0df3
No related branches found
No related tags found
1 merge request!56WIP: Add library SimpleTrajectory
......@@ -19,7 +19,7 @@ set(LIB_HEADERS
Interpolator.h
Track.h
Trajectory.h
TValue.h
VariantValue.h
)
......
#pragma once
#include "exceptions.h"
#include "TValue.h"
#include "VariantValue.h"
namespace armarx::trajectory
{
/// Visitor: Interpolates between the given values.
/// @param t in [0, 1], where t=0 for lhs and t=1 for rhs.
/**
* @brief Visitor: Interpolates between the given values.
*/
class Interpolator : public boost::static_visitor<>
{
public:
using result_type = VariantValue; ///< Exposed result type.
template <typename ReturnT>
......@@ -20,6 +22,10 @@ namespace armarx::trajectory
public:
/**
* @brief Interpolator
* @param t in [0, 1], where `t = 0` for `lhs` and `t = 1` for `rhs`.
*/
Interpolator(float t) : t(t) {}
template <typename U, typename V>
......@@ -45,6 +51,7 @@ namespace armarx::trajectory
private:
float t;
};
......
#pragma once
#include "TValue.h"
#include "Interpolator.h"
#include "VariantValue.h"
namespace armarx::trajectory
{
......
#pragma once
#include <boost/variant.hpp>
#include <Eigen/Eigen>
......
......@@ -3,7 +3,7 @@
#include <sstream>
#include <stdexcept>
#include "TValue.h" // for TrackID
#include "VariantValue.h" // for TrackID
namespace armarx::trajectory
......@@ -28,12 +28,14 @@ namespace armarx::trajectory
static std::string makeMsg(const TrackID& id);
};
struct EmptyTrack : public TrajectoryException
{
EmptyTrack(const TrackID& id);
static std::string makeMsg(const TrackID& id);
};
struct WrongValueTypeInKeyframe : public TrajectoryException
{
WrongValueTypeInKeyframe(const TrackID& trackID, const std::type_info& type,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment