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
dynamicgraph
dynamicgraph::sot::command::FromSensor::doExecute
virtual Value doExecute()
Definition: angle-estimator-command.h:39
command-getter.h
boost
command-setter.h
sotDEBUGOUT
#define sotDEBUGOUT(level)
sotDEBUGIN
#define sotDEBUGIN(level)
dynamic_pinocchio.kine_romeo.robot
robot
Definition: kine_romeo.py:31
dynamicgraph::sot::command::FromSensor::FromSensor
FromSensor(Dynamic &entity, const std::string &docstring)
Definition: angle-estimator-command.h:34
dynamicgraph::sot::command::FromSensor
Definition: angle-estimator-command.h:25
values
list values
command.h
dynamicgraph::sot::command::FromSensor::~FromSensor
virtual ~FromSensor()
Definition: angle-estimator-command.h:27
sot
Definition: zmp-from-forces.cpp:11


sot-dynamic-pinocchio
Author(s): Olivier Stasse
autogenerated on Fri Jul 28 2023 02:10:01