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;
20 
22  std::map<std::string, dynamicgraph::sot::SensorValues> &sensorsIn) {
23  nominalSetSensors(sensorsIn);
24  return;
25 }
26 
28  std::map<std::string, dynamicgraph::sot::SensorValues> & /*sensorsIn*/) {
29  return;
30 }
31 
33  std::map<std::string, dynamicgraph::sot::SensorValues> &sensorsIn) {
34  nominalSetSensors(sensorsIn);
35  return;
36 }
37 
39  std::map<std::string, dynamicgraph::sot::ControlValues> &controlOut,
40  const double &) {
41  controlOut["ctrl_map_name"] = dynamicgraph::sot::ControlValues();
42  controlOut["ctrl_map_name"].setName("ctrl_value_name");
43  controlOut["ctrl_map_name"].setValues(std::vector<double>(5, 3.1415));
44  return;
45 }
46 
48 
50  second_integration_ = true;
51  return;
52 }
53 
55  second_integration_ = false;
56  return;
57 }
58 
59 extern "C" {
61  return new DummySotExternalInterface();
62 }
63 }
64 
65 extern "C" {
68  delete p;
69 }
70 }
createSotExternalInterface
dynamicgraph::sot::AbstractSotExternalInterface * createSotExternalInterface()
Definition: dummy-sot-external-interface.cc:60
DummySotExternalInterface::nominalSetSensors
virtual void nominalSetSensors(std::map< std::string, dynamicgraph::sot::SensorValues > &sensorsIn)
Definition: dummy-sot-external-interface.cc:27
destroySotExternalInterface
void destroySotExternalInterface(dynamicgraph::sot::AbstractSotExternalInterface *p)
Definition: dummy-sot-external-interface.cc:66
DummySotExternalInterface::cleanupSetSensors
virtual void cleanupSetSensors(std::map< std::string, dynamicgraph::sot::SensorValues > &sensorsIn)
Definition: dummy-sot-external-interface.cc:32
dynamicgraph::sot::ControlValues
NamedVector ControlValues
Definition: abstract-sot-external-interface.hh:39
DummySotExternalInterface
Definition: dummy-sot-external-interface.hh:19
debug.hh
p
p
DummySotExternalInterface::setNoIntegration
virtual void setNoIntegration(void)
Definition: dummy-sot-external-interface.cc:54
dummy-sot-external-interface.hh
size_type
dynamicgraph::size_type size_type
Definition: dummy-sot-external-interface.cc:19
DummySotExternalInterface::getControl
virtual void getControl(std::map< std::string, dynamicgraph::sot::ControlValues > &controlOut, const double &)
Definition: dummy-sot-external-interface.cc:38
dynamicgraph::size_type
Matrix::Index size_type
DummySotExternalInterface::setupSetSensors
virtual void setupSetSensors(std::map< std::string, dynamicgraph::sot::SensorValues > &sensorsIn)
Definition: dummy-sot-external-interface.cc:21
DummySotExternalInterface::setControlSize
virtual void setControlSize(const size_type &size)
Definition: dummy-sot-external-interface.cc:47
dynamicgraph::sot::AbstractSotExternalInterface
Definition: abstract-sot-external-interface.hh:41
dynamicgraph::sot
DummySotExternalInterface::setSecondOrderIntegration
virtual void setSecondOrderIntegration(void)
Definition: dummy-sot-external-interface.cc:49


sot-core
Author(s): Olivier Stasse, ostasse@laas.fr
autogenerated on Tue Oct 24 2023 02:26:31