Biorbd Release_1.13.0
Loading...
Searching...
No Matches
ActuatorSigmoidGauss3p.h
1#ifndef BIORBD_ACTUATORS_ACTUATOR_SIGMOID_GAUSS_3P_H
2#define BIORBD_ACTUATORS_ACTUATOR_SIGMOID_GAUSS_3P_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 {
16
22class BIORBD_API ActuatorSigmoidGauss3p : public Actuator {
23 public:
28
35
47 int direction,
48 const utils::Scalar& theta,
49 const utils::Scalar& lambda,
50 const utils::Scalar& offset,
51 const utils::Scalar& r,
52 const utils::Scalar& qopt,
53 size_t dofIdx);
54
67 int direction,
68 const utils::Scalar& theta,
69 const utils::Scalar& lambda,
70 const utils::Scalar& offset,
71 const utils::Scalar& r,
72 const utils::Scalar& qopt,
73 size_t dofIdx,
74 const utils::String& jointName);
75
80
86
92 void DeepCopy(const ActuatorSigmoidGauss3p& other);
93
99 virtual utils::Scalar torqueMax();
100
107 virtual utils::Scalar torqueMax(
110
111 protected:
115 virtual void setType();
116
117 // Coefficients needed for the SigmoidGauss3p
118 // Torque/angle relationship for the Gauss3p
119 std::shared_ptr<utils::Scalar> m_r;
120 std::shared_ptr<utils::Scalar> m_qopt;
121
122 // Coefficients needed for the Sigmoid
123 std::shared_ptr<utils::Scalar> m_theta;
124 std::shared_ptr<utils::Scalar> m_lambda;
125 std::shared_ptr<utils::Scalar> m_offset;
126};
127
128} // namespace actuator
129} // namespace internal_forces
130} // namespace BIORBD_NAMESPACE
131
132#endif // BIORBD_ACTUATORS_ACTUATOR_SIGMOID_GAUSS_3P_H
std::shared_ptr< utils::Scalar > m_lambda
Tilt factor of the Sigmoid.
std::shared_ptr< utils::Scalar > m_r
Width of the gaussian curve.
virtual utils::Scalar torqueMax()
Return the maximal torque (invalid).
std::shared_ptr< utils::Scalar > m_theta
Amplitude of the Sigmoid.
std::shared_ptr< utils::Scalar > m_offset
Height of the Sigmoid.
ActuatorSigmoidGauss3p DeepCopy() const
Deep copy of the SigmoidGauss3p actuator.
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