17 #include <dynamic-graph/pool.h> 32 PeriodicCall::PeriodicCall(
void) : signalMap(), innerTime(0) {}
43 istringstream sigISS(sigpath);
52 const unsigned int &downsamplingFactor) {
58 const std::string &sigpath,
const unsigned int &downsamplingFactor) {
59 istringstream sigISS(sigpath);
75 for (SignalMapType::iterator iter =
signalMap.begin();
77 if (t % iter->second.downsamplingFactor == 0)
78 (*iter).second.signal->recompute(t);
95 os <<
" -> SIGNALS:" << endl;
96 for (SignalMapType::const_iterator iter =
signalMap.begin();
98 os <<
" - " << (*iter).first << endl;
void addDownsampledSignal(const std::string &name, dynamicgraph::SignalBase< int > &sig, const unsigned int &downsamplingFactor)
void runSignals(const int &t)
Signal< dynamicgraph::Matrix, int > sig("matrix")
void rmSignal(const std::string &name)
void display(std::ostream &os) const
static PoolStorage * getInstance()
void addSignal(const std::string &name, dynamicgraph::SignalBase< int > &sig)
SignalBase< int > & getSignal(std::istringstream &sigpath)