Biorbd Release_1.13.0
Loading...
Searching...
No Matches
ActuatorGauss6p.h
1#ifndef BIORBD_ACTUATORS_ACTUATOR_GAUSS_6P_H
2#define BIORBD_ACTUATORS_ACTUATOR_GAUSS_6P_H
3
4#include "biorbdConfig.h"
5
6#include "InternalForces/Actuators/Actuator.h"
7
8namespace BIORBD_NAMESPACE {
9namespace rigidbody {
12} // namespace rigidbody
13
14namespace internal_forces {
15namespace actuator {
21class BIORBD_API ActuatorGauss6p : public Actuator {
22 public:
27
32 ActuatorGauss6p(const ActuatorGauss6p& other);
33
53 int direction,
54 const utils::Scalar& Tmax,
55 const utils::Scalar& T0,
56 const utils::Scalar& wmax,
57 const utils::Scalar& wc,
58 const utils::Scalar& amin,
59 const utils::Scalar& wr,
60 const utils::Scalar& w1,
61 const utils::Scalar& r,
62 const utils::Scalar& qopt,
63 const utils::Scalar& facteur,
64 const utils::Scalar& r2,
65 const utils::Scalar& qopt2,
66 size_t dofIdx);
67
88 int direction,
89 const utils::Scalar& Tmax,
90 const utils::Scalar& T0,
91 const utils::Scalar& wmax,
92 const utils::Scalar& wc,
93 const utils::Scalar& amin,
94 const utils::Scalar& wr,
95 const utils::Scalar& w1,
96 const utils::Scalar& r,
97 const utils::Scalar& qopt,
98 const utils::Scalar& facteur,
99 const utils::Scalar& r2,
100 const utils::Scalar& qopt2,
101 size_t dofIdx,
102 const utils::String& jointName);
103
107 virtual ~ActuatorGauss6p();
108
114
119 void DeepCopy(const ActuatorGauss6p& other);
120
126 virtual utils::Scalar torqueMax();
127
134 virtual utils::Scalar torqueMax(
137
138 protected:
142 virtual void setType();
143
144 // For informations on these parameters, see Monique Iris Jackson's these from
145 // page 54 Angular/velocity relationship
146 std::shared_ptr<utils::Scalar>
148 std::shared_ptr<utils::Scalar>
150 std::shared_ptr<utils::Scalar> m_T0;
151 std::shared_ptr<utils::Scalar> m_wmax;
153 std::shared_ptr<utils::Scalar>
156
157 // Activation/velocity relationship
158 std::shared_ptr<utils::Scalar>
160 std::shared_ptr<utils::Scalar> m_amin;
161 std::shared_ptr<utils::Scalar> m_wr;
162 std::shared_ptr<utils::Scalar> m_w1;
163
164 // Torque/angle relationship
165 std::shared_ptr<utils::Scalar> m_r;
166 std::shared_ptr<utils::Scalar> m_qopt;
167 std::shared_ptr<utils::Scalar> m_facteur;
168 std::shared_ptr<utils::Scalar> m_r2;
169 std::shared_ptr<utils::Scalar> m_qopt2;
170};
171
172} // namespace actuator
173} // namespace internal_forces
174} // namespace BIORBD_NAMESPACE
175
176#endif // BIORBD_ACTUATORS_ACTUATOR_GAUSS_6P_H
std::shared_ptr< utils::Scalar > m_facteur
Factor of the 6p.
std::shared_ptr< utils::Scalar > m_amin
Low plateau level.
ActuatorGauss6p DeepCopy() const
Deep copy of the Gauss6p actuator.
std::shared_ptr< utils::Scalar > m_T0
Maximum torque isometric.
std::shared_ptr< utils::Scalar > m_Tmax
Maximum torque in the eccentric phase.
std::shared_ptr< utils::Scalar > m_w1
Mid point plateau.
std::shared_ptr< utils::Scalar > m_k
Ratio of slope of the eccentric and concentric phases.
std::shared_ptr< utils::Scalar > m_r2
width of the 2nd gaussian curve
std::shared_ptr< utils::Scalar > m_r
width of the 1st gaussian curve
std::shared_ptr< utils::Scalar > m_qopt2
2nd Optimal position
virtual utils::Scalar torqueMax()
Return the maximal torque (invalid).
std::shared_ptr< utils::Scalar > m_amax
Maximum activation level (set to 1).
std::shared_ptr< utils::Scalar > m_qopt
1st Optimal position
std::shared_ptr< utils::Scalar > m_wr
1/10 of the distance amax/amin
int direction() const
Return the direction of the actuator.
Definition Actuator.cpp:58
Wrapper around the std::string class with augmented functionality.
Definition String.h:18