src
tools
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
11
#include <
dynamic-graph/all-commands.h
>
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
all-commands.h
dynamicgraph::command
dynamicgraph::sot::DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN
DYNAMICGRAPH_FACTORY_ENTITY_PLUGIN(FeaturePosture, "FeaturePosture")
dynamicgraph::sot::Device::timestep_
double timestep_
Definition:
device.hh:66
dynamicgraph::sot::RobotSimu::RobotSimu
RobotSimu(const std::string &inName)
Definition:
robot-simu.cpp:18
robot-simu.hh
dynamicgraph::sot::Device
Definition:
device.hh:47
dynamicgraph::Entity::addCommand
void addCommand(const std::string &name, command::Command *command)
dynamicgraph
makeDirectSetter
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