control-gr.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2010,
3  * François Bleibel,
4  * Olivier Stasse,
5  *
6  * CNRS/AIST
7  *
8  */
9 
10 #ifndef __SOT_Control_GR_HH__
11 #define __SOT_Control_GR_HH__
12 
13 /* --------------------------------------------------------------------- */
14 /* --- INCLUDE --------------------------------------------------------- */
15 /* --------------------------------------------------------------------- */
16 
17 /* Matrix */
19 
20 /* SOT */
21 #include <dynamic-graph/entity.h>
24 
25 /* --------------------------------------------------------------------- */
26 /* --- API ------------------------------------------------------------- */
27 /* --------------------------------------------------------------------- */
28 
29 #if defined(WIN32)
30 #if defined(control_gr_EXPORTS)
31 #define ControlGR_EXPORT __declspec(dllexport)
32 #else
33 #define ControlGR_EXPORT __declspec(dllimport)
34 #endif
35 #else
36 #define ControlGR_EXPORT
37 #endif
38 
39 namespace dynamicgraph {
40 namespace sot {
41 
42 /* --------------------------------------------------------------------- */
43 /* --- CLASS ----------------------------------------------------------- */
44 /* --------------------------------------------------------------------- */
45 
47  public: /* --- CONSTRUCTOR ---- */
48  ControlGR(const std::string &name);
49 
50  public: /* --- INIT --- */
51  void init(const double &step);
52 
53  public: /* --- CONSTANTS --- */
54  /* Default values. */
55  static const double TIME_STEP_DEFAULT; // = 0.001
56 
57  public: /* --- ENTITY INHERITANCE --- */
58  static const std::string CLASS_NAME;
59  virtual void display(std::ostream &os) const;
60  virtual const std::string &getClassName(void) const { return CLASS_NAME; }
61 
62  protected:
63  /* Parameters of the torque-control function:
64  * tau = - A*qddot = g */
65  double TimeStep;
66  double _dimension;
67 
68  public: /* --- SIGNALS --- */
73 
74  protected:
75  double &setsize(size_type dimension);
77 };
78 
79 } // namespace sot
80 } // namespace dynamicgraph
81 
82 #endif // #ifndef __SOT_Control_GR_HH__
dynamicgraph::sot::ControlGR::accelerationSIN
SignalPtr< dynamicgraph::Vector, sigtime_t > accelerationSIN
Definition: control-gr.hh:70
signal-ptr.h
init
void init(bool compute_local_aabb=true)
signal-time-dependent.h
dynamicgraph::sot::ControlGR::_dimension
double _dimension
Definition: control-gr.hh:66
dynamicgraph::sot::ControlGR::getClassName
virtual const std::string & getClassName(void) const
Definition: control-gr.hh:60
dynamicgraph::SignalPtr< dynamicgraph::Matrix, sigtime_t >
dynamicgraph
dynamicgraph::sot::ControlGR
Definition: control-gr.hh:46
dynamicgraph::sot::ControlGR::matrixASIN
SignalPtr< dynamicgraph::Matrix, sigtime_t > matrixASIN
Definition: control-gr.hh:69
dynamicgraph::sot::ControlGR::TimeStep
double TimeStep
Definition: control-gr.hh:65
dynamicgraph::Entity
dynamicgraph::sot::ControlGR::gravitySIN
SignalPtr< dynamicgraph::Vector, sigtime_t > gravitySIN
Definition: control-gr.hh:71
dynamicgraph::sot::ControlGR::CLASS_NAME
static const std::string CLASS_NAME
Definition: control-gr.hh:58
dynamicgraph::sigtime_t
int64_t sigtime_t
dynamicgraph::sot::ControlGR::TIME_STEP_DEFAULT
static const double TIME_STEP_DEFAULT
Definition: control-gr.hh:55
dynamicgraph::size_type
Matrix::Index size_type
display
dynamicgraph::Vector
Eigen::VectorXd Vector
linear-algebra.h
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, sigtime_t >
dynamicgraph::sot::ControlGR::controlSOUT
SignalTimeDependent< dynamicgraph::Vector, sigtime_t > controlSOUT
Definition: control-gr.hh:72
t
Transform3f t
ControlGR_EXPORT
#define ControlGR_EXPORT
Definition: control-gr.hh:36
compile.name
name
Definition: compile.py:23


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