Biorbd Release_1.13.0
Loading...
Searching...
No Matches
PassiveTorqueLinear.h
1#ifndef BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUE_LINEAR_H
2#define BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUE_LINEAR_H
3
4#include "biorbdConfig.h"
5
6#include "InternalForces/PassiveTorques/PassiveTorque.h"
7
8namespace BIORBD_NAMESPACE {
9namespace rigidbody {
11}
12
13namespace internal_forces {
14namespace passive_torques {
15
19class BIORBD_API PassiveTorqueLinear : public PassiveTorque {
20 public:
25
31
39 const utils::Scalar& T0,
40 const utils::Scalar& slope,
41 size_t dofIdx);
42
50
52 const utils::Scalar& T0,
53 const utils::Scalar& slope,
54 size_t dofIdx,
55 const utils::String& jointName);
56
60 virtual ~PassiveTorqueLinear();
61
67
73 void DeepCopy(const PassiveTorqueLinear& other);
74
80 virtual utils::Scalar passiveTorque();
81
87 virtual utils::Scalar passiveTorque(
89
90 protected:
94 virtual void setType();
95
96 std::shared_ptr<utils::Scalar> m_m;
97 std::shared_ptr<utils::Scalar> m_b;
98};
99
100} // namespace passive_torques
101} // namespace internal_forces
102} // namespace BIORBD_NAMESPACE
103
104#endif // BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUE_H
PassiveTorqueLinear DeepCopy() const
Deep copy of the linear passive torque.
virtual utils::Scalar passiveTorque()
Return the passive torque (not available for this type, Q must be provided).
Wrapper around the std::string class with augmented functionality.
Definition String.h:18