33 #include <dynamic-graph/factory.h> 43 inputSIN_(0
x0,
"Segment(" + name +
")::input(vector)::in"),
44 outputSOUT_(
boost::bind(&
Segment::compute, this, _1, _2), inputSIN_,
45 "Segment(" + name +
")::out"),
46 range_(
std::make_pair(0, 0)) {
50 std::string docstring(
51 "Set range of input vector to be provided as output\n" 52 " - input: first index, length\n");
59 output = input.segment(std::get<0>(
range_), std::get<1>(
range_));
void setRange(const int &i0, const int &length)
void signalRegistration(const SignalArray< int > &signals)
Segment(const std::string &name)
SignalPtr< Vector, int > inputSIN_
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
SignalTimeDependent< Vector, int > outputSOUT_
Vector & compute(Vector &output, int time)
std::pair< int, int > range_
void addCommand(const std::string &name, command::Command *command)
CommandVoid2< E, T1, T2 > * makeCommandVoid2(E &entity, boost::function< void(const T1 &, const T2 &)> function, const std::string &docString)