Biorbd Release_1.13.0
Loading...
Searching...
No Matches
ActuatorConstant.h
1#ifndef BIORBD_ACTUATORS_ACTUATOR_CONSTANT_H
2#define BIORBD_ACTUATORS_ACTUATOR_CONSTANT_H
3
4#include "biorbdConfig.h"
5
6#include "InternalForces/Actuators/Actuator.h"
7
8namespace BIORBD_NAMESPACE {
9namespace internal_forces {
10namespace actuator {
11
16class BIORBD_API ActuatorConstant : public Actuator {
17 public:
22
28
35 ActuatorConstant(int direction, const utils::Scalar& Tmax, size_t dofIdx);
36
45 int direction,
46 const utils::Scalar& Tmax,
47 size_t dofIdx,
48 const utils::String& jointName);
49
55
60 void DeepCopy(const ActuatorConstant& other);
61
66 virtual utils::Scalar torqueMax();
67
68 protected:
72 virtual void setType();
73 std::shared_ptr<utils::Scalar> m_Tmax;
74};
75
76} // namespace actuator
77} // namespace internal_forces
78} // namespace BIORBD_NAMESPACE
79
80#endif // BIORBD_ACTUATORS_ACTUATOR_CONSTANT_H
virtual utils::Scalar torqueMax()
Return the maximal torque.
std::shared_ptr< utils::Scalar > m_Tmax
Maximal torque that can be done.
virtual void setType()
Set the type of the constant actuator.
ActuatorConstant DeepCopy() const
Deep copy of the constant 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