Biorbd
Release_1.13.0
Toggle main menu visibility
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
8
namespace
BIORBD_NAMESPACE {
9
namespace
rigidbody {
10
class
GeneralizedCoordinates
;
11
}
12
13
namespace
internal_forces {
14
namespace
passive_torques {
15
21
class
BIORBD_API
PassiveTorqueExponential
:
public
PassiveTorque
{
22
public
:
26
PassiveTorqueExponential
();
27
32
PassiveTorqueExponential
(
const
PassiveTorqueExponential
& other);
33
48
PassiveTorqueExponential
(
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
77
PassiveTorqueExponential
(
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
94
virtual
~PassiveTorqueExponential
();
95
100
PassiveTorqueExponential
DeepCopy
()
const
;
101
107
void
DeepCopy
(
const
PassiveTorqueExponential
& other);
108
114
virtual
utils::Scalar
passiveTorque
();
115
122
virtual
utils::Scalar
passiveTorque
(
123
const
rigidbody::GeneralizedCoordinates
& Q,
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
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::passiveTorque
virtual utils::Scalar passiveTorque()
Return the passive torque (not available for this type, Q and QDot must be provided).
Definition
PassiveTorqueExponential.cpp:123
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::m_k2
std::shared_ptr< utils::Scalar > m_k2
Stiffness of the 2nd exponential.
Definition
PassiveTorqueExponential.h:133
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::m_qMid
std::shared_ptr< utils::Scalar > m_qMid
Midpoint angle.
Definition
PassiveTorqueExponential.h:136
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::setType
virtual void setType()
Set the type of passive torque.
Definition
PassiveTorqueExponential.cpp:140
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::m_sV
std::shared_ptr< utils::Scalar > m_sV
Velocity scaling factor.
Definition
PassiveTorqueExponential.h:140
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::m_b1
std::shared_ptr< utils::Scalar > m_b1
Scaling of the 1st exponential.
Definition
PassiveTorqueExponential.h:134
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::m_b2
std::shared_ptr< utils::Scalar > m_b2
Scaling of the 2nd exponential.
Definition
PassiveTorqueExponential.h:135
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::DeepCopy
PassiveTorqueExponential DeepCopy() const
Deep copy of the linear passive torque.
Definition
PassiveTorqueExponential.cpp:101
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::m_deltaP
std::shared_ptr< utils::Scalar > m_deltaP
Angle offset.
Definition
PassiveTorqueExponential.h:141
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::m_k1
std::shared_ptr< utils::Scalar > m_k1
Stiffness of the 1st exponential.
Definition
PassiveTorqueExponential.h:132
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::m_tauEq
std::shared_ptr< utils::Scalar > m_tauEq
Torque offset.
Definition
PassiveTorqueExponential.h:137
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::m_pBeta
std::shared_ptr< utils::Scalar > m_pBeta
Velocity damping factor.
Definition
PassiveTorqueExponential.h:138
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::m_wMax
std::shared_ptr< utils::Scalar > m_wMax
Maximal angular velocity.
Definition
PassiveTorqueExponential.h:139
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueExponential::PassiveTorqueExponential
PassiveTorqueExponential()
Construct a linear passive torque.
Definition
PassiveTorqueExponential.cpp:10
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorque::PassiveTorque
PassiveTorque()
Construct passive torque.
Definition
PassiveTorque.cpp:8
BIORBD_NAMESPACE::rigidbody::GeneralizedCoordinates
Class GeneralizedCoordinates.
Definition
GeneralizedCoordinates.h:15
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
include
InternalForces
PassiveTorques
PassiveTorqueExponential.h
Generated by
1.18.0