dummy-sot-external-interface.cc
Go to the documentation of this file.
1 /*
2  * Copyright 2011,
3  * Olivier Stasse,
4  *
5  * CNRS
6  *
7  */
8 /* -------------------------------------------------------------------------- */
9 /* --- INCLUDES ------------------------------------------------------------- */
10 /* -------------------------------------------------------------------------- */
11 
13 
14 #include <iostream>
15 #include <sot/core/debug.hh>
16 
17 using namespace std;
18 using namespace dynamicgraph::sot;
19 
21  std::map<std::string, dynamicgraph::sot::SensorValues> &sensorsIn) {
22  nominalSetSensors(sensorsIn);
23  return;
24 }
25 
27  std::map<std::string, dynamicgraph::sot::SensorValues> & /*sensorsIn*/) {
28  return;
29 }
30 
32  std::map<std::string, dynamicgraph::sot::SensorValues> &sensorsIn) {
33  nominalSetSensors(sensorsIn);
34  return;
35 }
36 
38  std::map<std::string, dynamicgraph::sot::ControlValues> &controlOut,
39  const double &) {
40  controlOut["ctrl_map_name"] = dynamicgraph::sot::ControlValues();
41  controlOut["ctrl_map_name"].setName("ctrl_value_name");
42  controlOut["ctrl_map_name"].setValues(std::vector<double>(5, 3.1415));
43  return;
44 }
45 
47 
49  second_integration_ = true;
50  return;
51 }
52 
54  second_integration_ = false;
55  return;
56 }
57 
58 extern "C" {
60  return new DummySotExternalInterface();
61 }
62 }
63 
64 extern "C" {
67  delete p;
68 }
69 }
void destroySotExternalInterface(dynamicgraph::sot::AbstractSotExternalInterface *p)
virtual void getControl(std::map< std::string, dynamicgraph::sot::ControlValues > &controlOut, const double &)
virtual void nominalSetSensors(std::map< std::string, dynamicgraph::sot::SensorValues > &sensorsIn)
virtual void cleanupSetSensors(std::map< std::string, dynamicgraph::sot::SensorValues > &sensorsIn)
virtual void setControlSize(const int &size)
virtual void setupSetSensors(std::map< std::string, dynamicgraph::sot::SensorValues > &sensorsIn)
dynamicgraph::sot::AbstractSotExternalInterface * createSotExternalInterface()


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