Biorbd
Release_1.13.0
Toggle main menu visibility
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
8
namespace
BIORBD_NAMESPACE {
9
namespace
rigidbody {
10
class
GeneralizedCoordinates
;
11
}
12
13
namespace
internal_forces {
14
namespace
passive_torques {
15
19
class
BIORBD_API
PassiveTorqueLinear
:
public
PassiveTorque
{
20
public
:
24
PassiveTorqueLinear
();
25
30
PassiveTorqueLinear
(
const
PassiveTorqueLinear
& other);
31
38
PassiveTorqueLinear
(
39
const
utils::Scalar& T0,
40
const
utils::Scalar& slope,
41
size_t
dofIdx);
42
50
51
PassiveTorqueLinear
(
52
const
utils::Scalar& T0,
53
const
utils::Scalar& slope,
54
size_t
dofIdx,
55
const
utils::String
& jointName);
56
60
virtual
~PassiveTorqueLinear
();
61
66
PassiveTorqueLinear
DeepCopy
()
const
;
67
73
void
DeepCopy
(
const
PassiveTorqueLinear
& other);
74
80
virtual
utils::Scalar
passiveTorque
();
81
87
virtual
utils::Scalar
passiveTorque
(
88
const
rigidbody::GeneralizedCoordinates
& Q)
const
;
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
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueLinear::DeepCopy
PassiveTorqueLinear DeepCopy() const
Deep copy of the linear passive torque.
Definition
PassiveTorqueLinear.cpp:49
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueLinear::PassiveTorqueLinear
PassiveTorqueLinear()
Construct a linear passive torque.
Definition
PassiveTorqueLinear.cpp:10
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueLinear::setType
virtual void setType()
Set the type of passive torque.
Definition
PassiveTorqueLinear.cpp:74
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueLinear::m_m
std::shared_ptr< utils::Scalar > m_m
Slope.
Definition
PassiveTorqueLinear.h:96
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueLinear::m_b
std::shared_ptr< utils::Scalar > m_b
Torque at zero.
Definition
PassiveTorqueLinear.h:97
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueLinear::passiveTorque
virtual utils::Scalar passiveTorque()
Return the passive torque (not available for this type, Q must be provided).
Definition
PassiveTorqueLinear.cpp:63
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorque::PassiveTorque
PassiveTorque()
Construct passive torque.
Definition
PassiveTorque.cpp:8
BIORBD_NAMESPACE::rigidbody::GeneralizedCoordinates
Class GeneralizedCoordinates.
Definition
GeneralizedCoordinates.h:15
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
include
InternalForces
PassiveTorques
PassiveTorqueLinear.h
Generated by
1.18.0