GCC Code Coverage Report
Directory: ./ Exec Total Coverage
File: src/tools/robot-simu.cpp Lines: 0 8 0.0 %
Date: 2023-03-13 12:09:37 Branches: 0 18 0.0 %

Line Branch Exec Source
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
  /* Command increment. */
22
  docstring =
23
      "\n"
24
      "    Integrate dynamics for time step provided as input\n"
25
      "\n"
26
      "      take one floating point number as input\n"
27
      "\n";
28
  addCommand("increment", command::makeCommandVoid1(
29
                              (Device &)*this, &Device::increment, docstring));
30
31
  /* Set Time step. */
32
  docstring =
33
      "\n"
34
      "    Set the time step provided\n"
35
      "\n"
36
      "      take one floating point number as input\n"
37
      "\n";
38
  addCommand("setTimeStep",
39
             makeDirectSetter(*this, &this->timestep_, docstring));
40
}
41
}  // namespace sot
42
}  // namespace dynamicgraph