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::sot::RobotSimu::RobotSimu
RobotSimu(const std::string &inName)
Definition: robot-simu.cpp:18
dynamicgraph::sot::Device
Definition: device.hh:47
dynamicgraph
dynamicgraph::command
dynamicgraph::sot::DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
robot-simu.hh
dynamicgraph::sot::Device::timestep_
double timestep_
Definition: device.hh:66
makeDirectSetter
DirectSetter< E, T > * makeDirectSetter(E &entity, T *ptr, const std::string &docString)
dynamicgraph::Entity::addCommand
void addCommand(const std::string &name, command::Command *command)
all-commands.h


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