Biorbd Release_1.13.0
Loading...
Searching...
No Matches
ActuatorLinear.h
1#ifndef BIORBD_ACTUATORS_ACTUATOR_LINEAR_H
2#define BIORBD_ACTUATORS_ACTUATOR_LINEAR_H
3
4#include "biorbdConfig.h"
5
6#include "InternalForces/Actuators/Actuator.h"
7
8namespace BIORBD_NAMESPACE {
9namespace rigidbody {
11}
12
13namespace internal_forces {
14namespace actuator {
15
19class BIORBD_API ActuatorLinear : public Actuator {
20 public:
25
30 ActuatorLinear(const ActuatorLinear& other);
31
40 int direction,
41 const utils::Scalar& T0,
42 const utils::Scalar& slope,
43 size_t dofIdx);
44
53
55 int direction,
56 const utils::Scalar& T0,
57 const utils::Scalar& slope,
58 size_t dofIdx,
59 const utils::String& jointName);
60
64 virtual ~ActuatorLinear();
65
71
76 void DeepCopy(const ActuatorLinear& other);
77
83 virtual utils::Scalar torqueMax();
84
90 virtual utils::Scalar torqueMax(
92
93 protected:
97 virtual void setType();
98
99 // mx+b
100 std::shared_ptr<utils::Scalar> m_m;
101 std::shared_ptr<utils::Scalar> m_b;
102};
103
104} // namespace actuator
105} // namespace internal_forces
106} // namespace BIORBD_NAMESPACE
107
108#endif // BIORBD_ACTUATORS_ACTUATOR_LINEAR_H
std::shared_ptr< utils::Scalar > m_b
Torque at zero.
virtual utils::Scalar torqueMax()
Return the maximal torque (invalid).
ActuatorLinear DeepCopy() const
Deep copy of the linear 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