10 #ifndef PERIODICCALL_HH 11 #define PERIODICCALL_HH 13 #include <dynamic-graph/entity.h> 14 #include <dynamic-graph/signal-base.h> 15 #include <dynamic-graph/python/interpreter.hh> 31 dynamicgraph::SignalBase<int>* signal_;
32 unsigned int down_sampling_factor_;
37 down_sampling_factor_ = 1;
40 SignalToCall(dynamicgraph::SignalBase<int>* s,
unsigned int df = 1)
43 down_sampling_factor_ = df;
47 typedef std::map<std::string, SignalToCall> SignalMapType;
48 SignalMapType signal_map_;
50 typedef std::list<std::string> CmdListType;
51 CmdListType cmd_list_;
54 dynamicgraph::python::Interpreter* py_interpreter_;
64 void addDownsampledSignal(
const std::string& name,
65 dynamicgraph::SignalBase<int>& sig,
66 const unsigned int& downsamplingFactor);
67 void addDownsampledSignal(
const std::string& sigpath,
68 const unsigned int& downsamplingFactor);
70 void addSignal(
const std::string& name, dynamicgraph::SignalBase<int>& sig);
71 void addSignal(
const std::string& args);
72 void rmSignal(
const std::string& name);
74 void addCmd(
const std::string& args);
75 void rmCmd(
const std::string& args);
77 void runSignals(
const int& t);
79 void run(
const int& t);
87 void display(std::ostream& os)
const;
88 bool commandLine(
const std::string& cmdLine,
89 std::istringstream& cmdArgs,
91 void addSpecificCommands(dynamicgraph::Entity& ent,
92 dynamicgraph::Entity::CommandMap_t& commap,
93 const std::string& prefix =
"");
95 void setPyInterpreter(dynamicgraph::python::Interpreter* py_interpreter)
97 py_interpreter_ = py_interpreter;
103 #endif // #ifndef PERIODICCALL_HH Definition: periodic-call.hh:26
this is this package namespace in order to avoid naming conflict
Definition: device.hh:22
Definition: periodic-call.hh:29