angle-estimator-command.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010,
3  * Florent Lamiraux
4  *
5  * CNRS/LAAS
6  *
7  */
8 
9 #ifndef ANGLE_ESTIMATOR_COMMAND_H
10 #define ANGLE_ESTIMATOR_COMMAND_H
11 
14 #include <dynamic-graph/command.h>
15 
16 #include <boost/assign/list_of.hpp>
17 
18 namespace dynamicgraph {
19 namespace sot {
20 namespace command {
21 using ::dynamicgraph::command::Command;
22 using ::dynamicgraph::command::Value;
23 
24 // Command FromSensor
25 class FromSensor : public Command {
26  public:
27  virtual ~FromSensor() {
28  sotDEBUGIN(15);
29  sotDEBUGOUT(15);
30  }
34  FromSensor(Dynamic& entity, const std::string& docstring)
35  : Command(entity,
36  boost::assign::list_of(Value::STRING)(Value::STRING)(
37  Value::STRING)(Value::STRING),
38  docstring) {}
39  virtual Value doExecute() {
40  Dynamic& robot = static_cast<Dynamic&>(owner());
41  std::vector<Value> values = getParameterValues();
42  std::string vrmlDirectory = values[0].value();
43  std::string vrmlMainFile = values[1].value();
44  std::string xmlSpecificityFiles = values[2].value();
45  std::string xmlRankFile = values[3].value();
46  robot.setVrmlDirectory(vrmlDirectory);
47  robot.setVrmlMainFile(vrmlMainFile);
48  robot.setXmlSpecificityFile(xmlSpecificityFiles);
49  robot.setXmlRankFile(xmlRankFile);
50  // return void
51  return Value();
52  }
53 }; // class FromSensor
54 } // namespace command
55 } // namespace sot
56 } // namespace dynamicgraph
57 
58 #endif // ANGLE_ESTIMATOR_COMMAND_H
#define sotDEBUGOUT(level)
#define sotDEBUGIN(level)
FromSensor(Dynamic &entity, const std::string &docstring)
list values


sot-dynamic-pinocchio
Author(s): Olivier Stasse
autogenerated on Tue Jun 20 2023 02:26:06