smooth-reach.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_SMOOTHREACH_H_H
11 #define __SOT_SMOOTHREACH_H_H
12 
13 /* --------------------------------------------------------------------- */
14 /* --- INCLUDE --------------------------------------------------------- */
15 /* --------------------------------------------------------------------- */
16 
17 /* Matrix */
19 
20 /* SOT */
22 #include <dynamic-graph/entity.h>
23 
24 /* --------------------------------------------------------------------- */
25 /* --- API ------------------------------------------------------------- */
26 /* --------------------------------------------------------------------- */
27 
28 #if defined(WIN32)
29 #if defined(com_freezer_EXPORTS)
30 #define SOTSMOOTHREACH_EXPORT __declspec(dllexport)
31 #else
32 #define SOTSMOOTHREACH_EXPORT __declspec(dllimport)
33 #endif
34 #else
35 #define SOTSMOOTHREACH_EXPORT
36 #endif
37 
38 namespace dynamicgraph {
39 namespace sot {
40 
41 /* --------------------------------------------------------------------- */
42 /* --- CLASS ----------------------------------------------------------- */
43 /* --------------------------------------------------------------------- */
44 
46  public:
47  static const std::string CLASS_NAME;
48  virtual const std::string &getClassName() const { return CLASS_NAME; }
49 
50  private:
52  size_type startTime, lengthTime;
53  bool isStarted, isParam;
55  double smoothParam;
56 
57  double smoothFunction(double x);
58 
59  public: /* --- CONSTRUCTION --- */
60  SmoothReach(const std::string &name);
61  virtual ~SmoothReach(void){};
62 
63  public: /* --- SIGNAL --- */
66 
67  public: /* --- FUNCTION --- */
68  dynamicgraph::Vector &goalSOUT_function(dynamicgraph::Vector &goal,
69  const sigtime_t &time);
70 
71  void set(const dynamicgraph::Vector &goal, const size_type &length);
72  const dynamicgraph::Vector &getGoal(void);
73  const size_type &getLength(void);
74  const size_type &getStart(void);
75 
76  void setSmoothing(const size_type &mode, const double &param);
77 
78  public: /* --- PARAMS --- */
79  virtual void display(std::ostream &os) const;
80  void initCommands(void);
81 };
82 
83 } /* namespace sot */
84 } /* namespace dynamicgraph */
85 
86 #endif /* #ifndef __SOT_SMOOTHREACH_H_H */
dynamicgraph::sot::SmoothReach::goalSOUT
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, sigtime_t > goalSOUT
Definition: smooth-reach.hh:65
dynamicgraph::sot::SmoothReach::startTime
size_type startTime
Definition: smooth-reach.hh:52
dynamicgraph::SignalPtr< dynamicgraph::Vector, sigtime_t >
dynamicgraph
dynamicgraph::Entity
dynamicgraph::sot::SmoothReach::CLASS_NAME
static const std::string CLASS_NAME
Definition: smooth-reach.hh:47
SOTSMOOTHREACH_EXPORT
#define SOTSMOOTHREACH_EXPORT
Definition: smooth-reach.hh:35
dynamicgraph::sot::SmoothReach::getClassName
virtual const std::string & getClassName() const
Definition: smooth-reach.hh:48
dynamicgraph::sigtime_t
int64_t sigtime_t
set
void set(bool ownStorage, Vec3f *points_, unsigned int num_points_)
dynamicgraph::sot::SmoothReach::smoothMode
size_type smoothMode
Definition: smooth-reach.hh:54
all-signals.h
dynamicgraph::size_type
Matrix::Index size_type
display
dynamicgraph::Vector
Eigen::VectorXd Vector
dynamicgraph::sot::SmoothReach
Definition: smooth-reach.hh:45
linear-algebra.h
dynamicgraph::sot::SmoothReach::smoothParam
double smoothParam
Definition: smooth-reach.hh:55
dynamicgraph::SignalTimeDependent< dynamicgraph::Vector, sigtime_t >
dynamicgraph::sot::SmoothReach::~SmoothReach
virtual ~SmoothReach(void)
Definition: smooth-reach.hh:61
dynamicgraph::sot::SmoothReach::start
dynamicgraph::Vector start
Definition: smooth-reach.hh:51
dynamicgraph::sot::SmoothReach::isStarted
bool isStarted
Definition: smooth-reach.hh:53
length
FCL_REAL length[2]
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