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  // Get control vector
56  // \param map map string to vector of doubles. This method is expected to
57  // fill in entry "control"
58  // \param period time since last call.
59  virtual void getControl(std::map<std::string, ControlValues> &,
60  const double &period = 0) = 0;
61  virtual void setSecondOrderIntegration(void) = 0;
62  virtual void setNoIntegration(void) = 0;
63  // Set the number of joints that are controlled
64  virtual void setControlSize(const int &) = 0;
65 };
66 } // namespace sot
67 } // namespace dynamicgraph
68 
73 
74 #endif // ABSTRACT_SOT_EXTERNAL_INTERFACE_HH
const std::vector< double > & getValues() const
#define SOT_CORE_EXPORT
Definition: api.hh:20
void setValues(const std::vector< double > &values)
dynamicgraph::sot::AbstractSotExternalInterface * createSotExternalInterface_t()
void destroySotExternalInterface_t(dynamicgraph::sot::AbstractSotExternalInterface *)


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Wed Jun 21 2023 02:51:26