Track.cpp
Go to the documentation of this file.
1 #include "Track.h"
2 
3 
4 namespace armarx::trajectory
5 {
6 
7  template <>
8  void Track<VariantValue>::checkValueType(const VariantValue& value)
9  {
10  if (!empty() && value.index() != keyframes.front().value.index())
11  {
12  throw error::WrongValueTypeInKeyframe(id, value.index(), keyframes.front().value.index());
13  }
14  }
15 
16 }
armarx::trajectory::VariantValue
std::variant< float, Eigen::MatrixXf, Eigen::Quaternionf > VariantValue
Variant for trajectory values.
Definition: VariantValue.h:13
cxxopts::empty
bool empty(const std::string &s)
Definition: cxxopts.hpp:255
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
armarx::trajectory
Definition: exceptions.cpp:3
Track.h