Biorbd Release_1.13.0
Loading...
Searching...
No Matches
PassiveTorqueExponential.h
1#ifndef BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUE_EXPONENTIAL_H
2#define BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUE_EXPONENTIAL_H
3
4#include "biorbdConfig.h"
5
6#include "InternalForces/PassiveTorques/PassiveTorque.h"
7
8namespace BIORBD_NAMESPACE {
9namespace rigidbody {
11}
12
13namespace internal_forces {
14namespace passive_torques {
15
21class BIORBD_API PassiveTorqueExponential : public PassiveTorque {
22 public:
27
33
49 const utils::Scalar& k1,
50 const utils::Scalar& k2,
51 const utils::Scalar& b1,
52 const utils::Scalar& b2,
53 const utils::Scalar& qMid,
54 const utils::Scalar& tauEq,
55 const utils::Scalar& pBeta,
56 const utils::Scalar& wMax,
57 const utils::Scalar& sV,
58 const utils::Scalar& delatP,
59 size_t dofIdx);
60
76
78 const utils::Scalar& k1,
79 const utils::Scalar& k2,
80 const utils::Scalar& b1,
81 const utils::Scalar& b2,
82 const utils::Scalar& qMid,
83 const utils::Scalar& tauEq,
84 const utils::Scalar& pBeta,
85 const utils::Scalar& wMax,
86 const utils::Scalar& sV,
87 const utils::Scalar& delatP,
88 size_t dofIdx,
89 const utils::String& jointName);
90
95
101
107 void DeepCopy(const PassiveTorqueExponential& other);
108
114 virtual utils::Scalar passiveTorque();
115
122 virtual utils::Scalar passiveTorque(
124 const rigidbody::GeneralizedCoordinates& QDot) const;
125
126 protected:
130 virtual void setType();
131
132 std::shared_ptr<utils::Scalar> m_k1;
133 std::shared_ptr<utils::Scalar> m_k2;
134 std::shared_ptr<utils::Scalar> m_b1;
135 std::shared_ptr<utils::Scalar> m_b2;
136 std::shared_ptr<utils::Scalar> m_qMid;
137 std::shared_ptr<utils::Scalar> m_tauEq;
138 std::shared_ptr<utils::Scalar> m_pBeta;
139 std::shared_ptr<utils::Scalar> m_wMax;
140 std::shared_ptr<utils::Scalar> m_sV;
141 std::shared_ptr<utils::Scalar> m_deltaP;
142};
143
144} // namespace passive_torques
145} // namespace internal_forces
146} // namespace BIORBD_NAMESPACE
147
148#endif // BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUE_EXPONENTIAL_H
virtual utils::Scalar passiveTorque()
Return the passive torque (not available for this type, Q and QDot must be provided).
std::shared_ptr< utils::Scalar > m_k2
Stiffness of the 2nd exponential.
std::shared_ptr< utils::Scalar > m_b1
Scaling of the 1st exponential.
std::shared_ptr< utils::Scalar > m_b2
Scaling of the 2nd exponential.
PassiveTorqueExponential DeepCopy() const
Deep copy of the linear passive torque.
std::shared_ptr< utils::Scalar > m_k1
Stiffness of the 1st exponential.
Wrapper around the std::string class with augmented functionality.
Definition String.h:18