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" 139 "CubicInterpolation: samplingPeriod should" 140 " be positive. Are you sure you did\n" 157 p2_ = (D_T +
p1_ * 2) * (-1. / T) + (P_T -
p0_) * (3. / (T * T));
158 p3_ = (P_T -
p0_) * (-2 / (T * T * T)) + (
p1_ + D_T) * (1. / (T * T));
CommandVoid0< E > * makeCommandVoid0(E &entity, boost::function< void(void)> function, const std::string &docString)
void signalRegistration(const SignalArray< int > &signals)
virtual const T & accessCopy() const
void addCommand(const std::string &name, command::Command *command)
virtual const Time & getTime() const
virtual void setFunction(boost::function2< T &, T &, Time > t, Mutex *mutexref=NULL)