Go to the documentation of this file.
12 #include <dynamic-graph/factory.h>
20 soutSOUT_(
"CubicInterpolation(" +
name +
")::output(vector)::sout"),
21 soutdotSOUT_(
"CubicInterpolation(" +
name +
")::output(vector)::soutdot"),
22 initSIN_(NULL,
"CubicInterpolation(" +
name +
")::input(vector)::init"),
23 goalSIN_(NULL,
"CubicInterpolation(" +
name +
")::input(vector)::goal"),
39 std::string docstring;
41 " Set sampling period of control discretization.\n"
44 " - a floating point value.\n"
53 " - duration of the motion.\n"
55 "\n Read init and goal signals, compute output trajectory and"
61 " Reset interpolation before calling start again\n"
63 " After the end of an interpolation, goal signal is copied into\n"
64 " sout signal. Calling reset make the entity copy init signal into\n"
74 "Perform a cubic interpolation in between two vectors.\n"
76 " Initial pose is given by signal 'init', Target position is given"
78 " 'goal'. Interpolation is performed with zero velocities at start"
140 "CubicInterpolation: samplingPeriod should"
141 " be positive. Are you sure you did\n"
158 p2_ = (D_T +
p1_ * 2) * (-1. /
T) + (P_T -
p0_) * (3. / (
T *
T));
159 p3_ = (P_T -
p0_) * (-2 / (
T *
T *
T)) + (
p1_ + D_T) * (1. / (
T *
T));
virtual const T & accessCopy() const
virtual void setFunction(boost::function2< T &, T &, Time > t, Mutex *mutexref=NULL)
CommandVoid0< E > * makeCommandVoid0(E &entity, boost::function< void(E *)> function, const std::string &docString)
void addCommand(const std::string &name, command::Command *command)
void signalRegistration(const SignalArray< sigtime_t > &signals)
sot-tools
Author(s): Mehdi Benallegue, Francois Keith, Florent Lamiraux, Thomas Moulard, Olivier Stasse, Jorrit T'Hooft
autogenerated on Wed Aug 2 2023 02:35:13