Biorbd Release_1.13.0
Loading...
Searching...
No Matches
PassiveTorqueConstant.h
1#ifndef BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUE_CONSTANT_H
2#define BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUE_CONSTANT_H
3
4#include "biorbdConfig.h"
5
6#include "InternalForces/PassiveTorques/PassiveTorque.h"
7
8namespace BIORBD_NAMESPACE {
9namespace internal_forces {
10namespace passive_torques {
11
16class BIORBD_API PassiveTorqueConstant : public PassiveTorque {
17 public:
22
28
34 PassiveTorqueConstant(const utils::Scalar& Torque, size_t dofIdx);
35
43 const utils::Scalar& Torque,
44 size_t dofIdx,
45 const utils::String& jointName);
46
52
58 void DeepCopy(const PassiveTorqueConstant& other);
59
64 virtual utils::Scalar passiveTorque();
65
66 protected:
70 virtual void setType();
71 // virtual void setDofType();
72 std::shared_ptr<utils::Scalar> m_Torque;
73};
74
75} // namespace passive_torques
76} // namespace internal_forces
77} // namespace BIORBD_NAMESPACE
78
79#endif // BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUE_CONSTANT_H
std::shared_ptr< utils::Scalar > m_Torque
Maximal torque that can be done.
virtual void setType()
Set the type of the constant passive torque.
PassiveTorqueConstant DeepCopy() const
Deep copy of the constant passive torque.
Wrapper around the std::string class with augmented functionality.
Definition String.h:18