sot-core
4.11.4
Hierarchical task solver plug-in for dynamic-graph.
|
Go to the documentation of this file.
10 #ifndef __SOT_SOTSEQUENCER_H__
11 #define __SOT_SOTSEQUENCER_H__
18 #include <dynamic-graph/linear-algebra.h>
21 #include <dynamic-graph/all-signals.h>
22 #include <dynamic-graph/entity.h>
35 #if defined(sequencer_EXPORTS)
36 #define SOTSEQUENCER_EXPORT __declspec(dllexport)
38 #define SOTSEQUENCER_EXPORT __declspec(dllimport)
41 #define SOTSEQUENCER_EXPORT
54 DYNAMIC_GRAPH_ENTITY_DECL();
63 void setName(
const std::string &name_) { name = name_; }
69 virtual const std::string &
getName()
const {
return name; }
71 virtual void operator()(
Sot *sotPtr) = 0;
72 virtual void display(std::ostream &os)
const { os << name; }
77 typedef std::list<sotEventAbstract *>
TaskList;
78 typedef std::map<unsigned int, TaskList>
TaskMap;
94 void addTask(sotEventAbstract *task,
const unsigned int time);
95 void rmTask(
int eventType,
const std::string &name,
const unsigned int time);
102 int &trigger(
int &dummy,
const int &time);
105 virtual void display(std::ostream &os)
const;
110 #endif // #ifndef __SOT_SOTSEQUENCER_H__
void setName(const std::string &name_)
Definition: sequencer.hh:63
Definition: sequencer.hh:57
Definition: sequencer.hh:53
Definition: abstract-sot-external-interface.hh:17
Sot * sotPtr
Definition: sequencer.hh:76
int eventType
Definition: sequencer.hh:64
virtual const std::string & getName() const
Definition: sequencer.hh:69
This class implements the Stack of Task. It allows to deal with the priority of the controllers throu...
Definition: sot.hh:56
sotEventType
Definition: sequencer.hh:59
dynamicgraph::SignalTimeDependent< int, int > triggerSOUT
Definition: sequencer.hh:99
std::map< unsigned int, TaskList > TaskMap
Definition: sequencer.hh:78
#define SOTSEQUENCER_EXPORT
Definition: sequencer.hh:41
sotEventAbstract(const std::string &name)
Definition: sequencer.hh:67
virtual ~sotEventAbstract(void)
Definition: sequencer.hh:68
virtual void display(std::ostream &os) const
Definition: sequencer.hh:72
std::ostream * outputStreamPtr
Definition: sequencer.hh:85
std::list< sotEventAbstract * > TaskList
Definition: sequencer.hh:77
int getEventType() const
Definition: sequencer.hh:70
void setSotRef(Sot *sot)
Definition: sequencer.hh:93
std::string name
Definition: sequencer.hh:62
int timeInit
Definition: sequencer.hh:83
TaskMap taskMap
Definition: sequencer.hh:80
bool noOutput
Definition: sequencer.hh:86
bool playMode
Definition: sequencer.hh:84