linear.cpp
Go to the documentation of this file.
1
#include "
linear.h
"
2
3
namespace
armarx::trajectory
4
{
5
6
template
<>
7
VariantValue
8
interpolate::linear<VariantValue>
(
float
t,
const
VariantValue
& lhs,
const
VariantValue
& rhs)
9
{
10
// dont use std::get
11
return
std::visit
(
Linear
{t}, lhs, rhs);
12
}
13
14
}
// namespace armarx::trajectory
armarx::trajectory::VariantValue
std::variant< float, Eigen::MatrixXf, Eigen::Quaternionf > VariantValue
Variant for trajectory values.
Definition:
VariantValue.h:12
armarx::trajectory::interpolate::Linear
Linear interpolation visitor: Interpolates between the given values linearly.
Definition:
linear.h:12
linear.h
armarx::trajectory
Definition:
exceptions.cpp:3
armarx::aron::data::visit
requires isVisitor< VisitorImplementation, typename VisitorImplementation::Input > void visit(VisitorImplementation &v, typename VisitorImplementation::Input &o)
Definition:
Visitor.h:136
armarx::trajectory::interpolate::linear< VariantValue >
VariantValue linear< VariantValue >(float t, const VariantValue &lhs, const VariantValue &rhs)
Definition:
linear.cpp:8
RobotAPI
libraries
SimpleTrajectory
interpolate
linear.cpp
Generated on Sat Mar 29 2025 09:17:31 for armarx_documentation by
1.8.17