sot-core  4.11.8
Hierarchical task solver plug-in for dynamic-graph.
abstract-sot-external-interface.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2011,
3  * Olivier Stasse, CNRS
4  *
5  * CNRS
6  *
7  */
8 
9 #ifndef ABSTRACT_SOT_EXTERNAL_INTERFACE_HH
10 #define ABSTRACT_SOT_EXTERNAL_INTERFACE_HH
11 
12 #include <map>
13 #include <sot/core/api.hh>
14 #include <string>
15 #include <vector>
16 
17 namespace dynamicgraph {
18 namespace sot {
19 
21  private:
22  std::string name_;
23  std::vector<double> values_;
24 
25  public:
28 
29  const std::string &getName() const { return name_; }
30 
31  void setName(const std::string &aname) { name_ = aname; }
32 
33  const std::vector<double> &getValues() const { return values_; }
34 
35  void setValues(const std::vector<double> &values) { values_ = values; }
36 };
39 
41  public:
43 
45 
46  virtual void setupSetSensors(
47  std::map<std::string, SensorValues> &sensorsIn) = 0;
48 
49  virtual void nominalSetSensors(
50  std::map<std::string, SensorValues> &sensorsIn) = 0;
51 
52  virtual void cleanupSetSensors(
53  std::map<std::string, SensorValues> &sensorsIn) = 0;
54 
55  virtual void getControl(std::map<std::string, ControlValues> &) = 0;
56  virtual void setSecondOrderIntegration(void) = 0;
57  virtual void setNoIntegration(void) = 0;
58 };
59 } // namespace sot
60 } // namespace dynamicgraph
61 
66 
67 #endif // ABSTRACT_SOT_EXTERNAL_INTERFACE_HH
dynamicgraph::sot::AbstractSotExternalInterface * createSotExternalInterface_t()
Definition: abstract-sot-external-interface.hh:63
void destroySotExternalInterface_t(dynamicgraph::sot::AbstractSotExternalInterface *)
Definition: abstract-sot-external-interface.hh:64
#define SOT_CORE_EXPORT
Definition: api.hh:20
Definition: abstract-sot-external-interface.hh:40
virtual void setupSetSensors(std::map< std::string, SensorValues > &sensorsIn)=0
AbstractSotExternalInterface()
Definition: abstract-sot-external-interface.hh:42
virtual void cleanupSetSensors(std::map< std::string, SensorValues > &sensorsIn)=0
virtual ~AbstractSotExternalInterface()
Definition: abstract-sot-external-interface.hh:44
virtual void getControl(std::map< std::string, ControlValues > &)=0
virtual void nominalSetSensors(std::map< std::string, SensorValues > &sensorsIn)=0
Definition: abstract-sot-external-interface.hh:20
const std::string & getName() const
Definition: abstract-sot-external-interface.hh:29
void setValues(const std::vector< double > &values)
Definition: abstract-sot-external-interface.hh:35
NamedVector()
Definition: abstract-sot-external-interface.hh:26
void setName(const std::string &aname)
Definition: abstract-sot-external-interface.hh:31
~NamedVector()
Definition: abstract-sot-external-interface.hh:27
const std::vector< double > & getValues() const
Definition: abstract-sot-external-interface.hh:33
NamedVector SensorValues
Definition: abstract-sot-external-interface.hh:37
NamedVector ControlValues
Definition: abstract-sot-external-interface.hh:38
Definition: abstract-sot-external-interface.hh:17