robot-simu.cpp
Go to the documentation of this file.
1 /*
2  * Copyright 2010,
3  * Nicolas Mansard, Olivier Stasse, François Bleibel, Florent Lamiraux
4  *
5  * CNRS
6  *
7  */
8 
9 #include "sot/core/robot-simu.hh"
10 
12 #include <dynamic-graph/factory.h>
13 
14 namespace dynamicgraph {
15 namespace sot {
16 DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(RobotSimu, "RobotSimu");
17 
18 RobotSimu::RobotSimu(const std::string &inName) : Device(inName) {
19  using namespace dynamicgraph::command;
20  std::string docstring;
21  /* Set Time step. */
22  docstring =
23  "\n"
24  " Set the time step provided\n"
25  "\n"
26  " take one floating point number as input\n"
27  "\n";
28  addCommand("setTimeStep",
29  makeDirectSetter(*this, &this->timestep_, docstring));
30 }
31 } // namespace sot
32 } // namespace dynamicgraph
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
RobotSimu(const std::string &inName)
Definition: robot-simu.cpp:18
void addCommand(const std::string &name, command::Command *command)
DirectSetter< E, T > * makeDirectSetter(E &entity, T *ptr, const std::string &docString)


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