10 #ifndef __SOT_PERIODICCALL_HH__
11 #define __SOT_PERIODICCALL_HH__
18 #include <dynamic-graph/entity.h>
19 #include <dynamic-graph/signal-base.h>
40 dynamicgraph::SignalBase<int> *
signal;
45 downsamplingFactor = 1;
48 SignalToCall(dynamicgraph::SignalBase<int> *s,
unsigned int df = 1) {
50 downsamplingFactor = df;
66 dynamicgraph::SignalBase<int> &sig,
67 const unsigned int &downsamplingFactor);
69 const unsigned int &downsamplingFactor);
71 void addSignal(
const std::string &name, dynamicgraph::SignalBase<int> &sig);
76 void run(
const int &t);
78 void clear(
void) { signalMap.clear(); }
#define SOT_CORE_EXPORT
Definition: api.hh:20
Definition: periodic-call.hh:37
void addSignal(const std::string &name, dynamicgraph::SignalBase< int > &sig)
int innerTime
Definition: periodic-call.hh:57
std::map< std::string, SignalToCall > SignalMapType
Definition: periodic-call.hh:54
void display(std::ostream &os) const
void rmSignal(const std::string &name)
void addSignal(const std::string &args)
void addDownsampledSignal(const std::string &name, dynamicgraph::SignalBase< int > &sig, const unsigned int &downsamplingFactor)
void addDownsampledSignal(const std::string &sigpath, const unsigned int &downsamplingFactor)
virtual ~PeriodicCall(void)
Definition: periodic-call.hh:63
void runSignals(const int &t)
void clear(void)
Definition: periodic-call.hh:78
SignalMapType signalMap
Definition: periodic-call.hh:55
Definition: abstract-sot-external-interface.hh:17
Definition: periodic-call.hh:39
SignalToCall()
Definition: periodic-call.hh:43
SignalToCall(dynamicgraph::SignalBase< int > *s, unsigned int df=1)
Definition: periodic-call.hh:48
dynamicgraph::SignalBase< int > * signal
Definition: periodic-call.hh:40
unsigned int downsamplingFactor
Definition: periodic-call.hh:41