Biorbd
Release_1.13.0
Toggle main menu visibility
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
8
namespace
BIORBD_NAMESPACE {
9
namespace
rigidbody {
10
class
GeneralizedCoordinates
;
11
class
GeneralizedVelocity
;
12
}
// namespace rigidbody
13
14
namespace
internal_forces {
15
namespace
actuator {
16
22
class
BIORBD_API
ActuatorSigmoidGauss3p
:
public
Actuator
{
23
public
:
27
ActuatorSigmoidGauss3p
();
28
34
ActuatorSigmoidGauss3p
(
const
ActuatorSigmoidGauss3p
& other);
35
46
ActuatorSigmoidGauss3p
(
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
66
ActuatorSigmoidGauss3p
(
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
79
virtual
~ActuatorSigmoidGauss3p
();
80
85
ActuatorSigmoidGauss3p
DeepCopy
()
const
;
86
92
void
DeepCopy
(
const
ActuatorSigmoidGauss3p
& other);
93
99
virtual
utils::Scalar
torqueMax
();
100
107
virtual
utils::Scalar
torqueMax
(
108
const
rigidbody::GeneralizedCoordinates
& Q,
109
const
rigidbody::GeneralizedVelocity
& Qdot);
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
BIORBD_NAMESPACE::internal_forces::actuator::ActuatorSigmoidGauss3p::m_lambda
std::shared_ptr< utils::Scalar > m_lambda
Tilt factor of the Sigmoid.
Definition
ActuatorSigmoidGauss3p.h:124
BIORBD_NAMESPACE::internal_forces::actuator::ActuatorSigmoidGauss3p::m_qopt
std::shared_ptr< utils::Scalar > m_qopt
Optimal position.
Definition
ActuatorSigmoidGauss3p.h:120
BIORBD_NAMESPACE::internal_forces::actuator::ActuatorSigmoidGauss3p::m_r
std::shared_ptr< utils::Scalar > m_r
Width of the gaussian curve.
Definition
ActuatorSigmoidGauss3p.h:119
BIORBD_NAMESPACE::internal_forces::actuator::ActuatorSigmoidGauss3p::setType
virtual void setType()
Set the type of actuator.
Definition
ActuatorSigmoidGauss3p.cpp:101
BIORBD_NAMESPACE::internal_forces::actuator::ActuatorSigmoidGauss3p::torqueMax
virtual utils::Scalar torqueMax()
Return the maximal torque (invalid).
Definition
ActuatorSigmoidGauss3p.cpp:83
BIORBD_NAMESPACE::internal_forces::actuator::ActuatorSigmoidGauss3p::ActuatorSigmoidGauss3p
ActuatorSigmoidGauss3p()
Construct SigmoidGauss3p actuator.
Definition
ActuatorSigmoidGauss3p.cpp:10
BIORBD_NAMESPACE::internal_forces::actuator::ActuatorSigmoidGauss3p::m_theta
std::shared_ptr< utils::Scalar > m_theta
Amplitude of the Sigmoid.
Definition
ActuatorSigmoidGauss3p.h:123
BIORBD_NAMESPACE::internal_forces::actuator::ActuatorSigmoidGauss3p::m_offset
std::shared_ptr< utils::Scalar > m_offset
Height of the Sigmoid.
Definition
ActuatorSigmoidGauss3p.h:125
BIORBD_NAMESPACE::internal_forces::actuator::ActuatorSigmoidGauss3p::DeepCopy
ActuatorSigmoidGauss3p DeepCopy() const
Deep copy of the SigmoidGauss3p actuator.
Definition
ActuatorSigmoidGauss3p.cpp:67
BIORBD_NAMESPACE::internal_forces::actuator::Actuator::direction
int direction() const
Return the direction of the actuator.
Definition
Actuator.cpp:58
BIORBD_NAMESPACE::internal_forces::actuator::Actuator::Actuator
Actuator()
Construct actuator.
Definition
Actuator.cpp:9
BIORBD_NAMESPACE::rigidbody::GeneralizedCoordinates
Class GeneralizedCoordinates.
Definition
GeneralizedCoordinates.h:15
BIORBD_NAMESPACE::rigidbody::GeneralizedVelocity
Class GeneralizedVelocity.
Definition
GeneralizedVelocity.h:15
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
include
InternalForces
Actuators
ActuatorSigmoidGauss3p.h
Generated by
1.18.0