sot-core
4.11.8
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>
36 #if defined(sequencer_EXPORTS)
37 #define SOTSEQUENCER_EXPORT __declspec(dllexport)
39 #define SOTSEQUENCER_EXPORT __declspec(dllimport)
42 #define SOTSEQUENCER_EXPORT
55 DYNAMIC_GRAPH_ENTITY_DECL();
64 void setName(
const std::string &name_) { name = name_; }
70 virtual const std::string &
getName()
const {
return name; }
72 virtual void operator()(
Sot *sotPtr) = 0;
73 virtual void display(std::ostream &os)
const { os << name; }
78 typedef std::list<sotEventAbstract *>
TaskList;
79 typedef std::map<unsigned int, TaskList>
TaskMap;
95 void addTask(sotEventAbstract *task,
const unsigned int time);
96 void rmTask(
int eventType,
const std::string &name,
const unsigned int time);
103 int &trigger(
int &dummy,
const int &time);
106 virtual void display(std::ostream &os)
const;
111 #endif // #ifndef __SOT_SOTSEQUENCER_H__
void setName(const std::string &name_)
Definition: sequencer.hh:64
Definition: sequencer.hh:58
Definition: sequencer.hh:54
Definition: abstract-sot-external-interface.hh:17
Sot * sotPtr
Definition: sequencer.hh:77
int eventType
Definition: sequencer.hh:65
virtual const std::string & getName() const
Definition: sequencer.hh:70
This class implements the Stack of Task. It allows to deal with the priority of the controllers throu...
Definition: sot.hh:57
sotEventType
Definition: sequencer.hh:60
dynamicgraph::SignalTimeDependent< int, int > triggerSOUT
Definition: sequencer.hh:100
std::map< unsigned int, TaskList > TaskMap
Definition: sequencer.hh:79
#define SOTSEQUENCER_EXPORT
Definition: sequencer.hh:42
sotEventAbstract(const std::string &name)
Definition: sequencer.hh:68
virtual ~sotEventAbstract(void)
Definition: sequencer.hh:69
virtual void display(std::ostream &os) const
Definition: sequencer.hh:73
std::ostream * outputStreamPtr
Definition: sequencer.hh:86
std::list< sotEventAbstract * > TaskList
Definition: sequencer.hh:78
int getEventType() const
Definition: sequencer.hh:71
void setSotRef(Sot *sot)
Definition: sequencer.hh:94
std::string name
Definition: sequencer.hh:63
int timeInit
Definition: sequencer.hh:84
TaskMap taskMap
Definition: sequencer.hh:81
bool noOutput
Definition: sequencer.hh:87
bool playMode
Definition: sequencer.hh:85