SupportFSM_backup.hh
Go to the documentation of this file.
1 /*
2  * Copyright 2010,
3  *
4  * Andrei Herdt
5  * Olivier Stasse
6  *
7  * JRL, CNRS/AIST
8  *
9  * This file is part of walkGenJrl.
10  * walkGenJrl is free software: you can redistribute it and/or modify
11  * it under the terms of the GNU Lesser General Public License as published by
12  * the Free Software Foundation, either version 3 of the License, or
13  * (at your option) any later version.
14  *
15  * walkGenJrl is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Lesser Public License for more details.
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with walkGenJrl. If not, see <http://www.gnu.org/licenses/>.
21  *
22  * Research carried out within the scope of the
23  * Joint Japanese-French Robotics Laboratory (JRL)
24  */
25 /* This object provides the finite state machine to determine the support
26  * parameters. */
27 
28 #ifndef _SUPPORT_FSM_
29 #define _SUPPORT_FSM_
30 
31 #include <jrl/walkgen/pgtypes.hh>
32 #include <privatepgtypes.hh>
33 
34 namespace PatternGeneratorJRL {
35 class SupportFSM {
36  public:
38  SupportFSM(const double &SamplingPeriod);
39 
41  ~SupportFSM();
42 
44  void setSupportState(const double &Time, const int &pi,
45  SupportState_t &Support,
46  const ReferenceAbsoluteVelocity &RefVel);
47 
49  double m_eps;
50 
53 
54  // Number of steps done before DS
55  unsigned int m_NbOfStepsSSDS;
56 
57  private:
59  double m_T;
60 
61  bool m_ReferenceGiven;
62 
63  int m_FullDebug;
64 };
65 } // namespace PatternGeneratorJRL
66 
67 #endif /* _SUPPORT_FSM_ */
PatternGeneratorJRL::SupportFSM::~SupportFSM
~SupportFSM()
Destructor.
Definition: SupportFSM.cpp:49
PatternGeneratorJRL::ReferenceAbsoluteVelocity
struct ReferenceAbsoluteVelocity_t ReferenceAbsoluteVelocity
Definition: pgtypes.hh:249
PatternGeneratorJRL::SupportFSM::setSupportState
void setSupportState(const double &Time, const int &pi, SupportState_t &Support, const ReferenceAbsoluteVelocity &RefVel)
Initialize the previewed state.
PatternGeneratorJRL::SupportFSM::m_DSDuration
double m_DSDuration
Numerical precision *‍/ double m_eps;.
Definition: SupportFSM_backup.hh:52
pgtypes.hh
PatternGeneratorJRL
\doc Simulate a rigid body
Definition: patterngeneratorinterface.hh:41
PatternGeneratorJRL::SupportFSM::SamplingPeriod
double SamplingPeriod() const
Definition: SupportFSM.hh:79
PatternGeneratorJRL::SupportFSM::m_DSSSDuration
double m_DSSSDuration
Definition: SupportFSM_backup.hh:52
PatternGeneratorJRL::SupportFSM::m_NbOfStepsSSDS
unsigned int m_NbOfStepsSSDS
Definition: SupportFSM_backup.hh:55
PatternGeneratorJRL::SupportFSM::SupportFSM
SupportFSM()
Constructor.
Definition: SupportFSM.cpp:33
PatternGeneratorJRL::SupportFSM::m_SSPeriod
double m_SSPeriod
Definition: SupportFSM_backup.hh:52