Go to the documentation of this file.
10 #include <dynamic-graph/factory.h>
12 #include <boost/function.hpp>
16 namespace dg = ::dynamicgraph;
33 updateSIN(NULL,
"ExpMovingAvg(" +
n +
")::input(vector)::update"),
34 refresherSINTERN(
"ExpMovingAvg(" +
n +
")::intern(dummy)::refresher"),
36 updateSIN << refresherSINTERN,
37 "ExpMovingAvg(" +
n +
")::output(vector)::average"),
44 std::string docstring;
48 " Set the alpha used to update the current value."
51 new ::dynamicgraph::command::Setter<ExpMovingAvg, double>(
62 assert(alpha <= 1. && alpha >= 0.);
SignalTimeDependent< dynamicgraph::Vector, sigtime_t > averageSOUT
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
SignalPtr< dynamicgraph::Vector, sigtime_t > updateSIN
SignalTimeDependent< size_type, sigtime_t > refresherSINTERN
AABB & update(const Vec3f &a, const Vec3f &b)
virtual ~ExpMovingAvg(void)
dynamicgraph::Vector average
ExpMovingAvg(const std::string &n)
dynamicgraph::Vector & update(dynamicgraph::Vector &res, const sigtime_t &inTime)
void addCommand(const std::string &name, command::Command *command)
void signalRegistration(const SignalArray< sigtime_t > &signals)
void setAlpha(const double &alpha_)
sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31