Biorbd
Release_1.13.0
Toggle main menu visibility
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
8
namespace
BIORBD_NAMESPACE {
9
namespace
internal_forces {
10
namespace
passive_torques {
11
16
class
BIORBD_API
PassiveTorqueConstant
:
public
PassiveTorque
{
17
public
:
21
PassiveTorqueConstant
();
22
27
PassiveTorqueConstant
(
const
PassiveTorqueConstant
& other);
28
34
PassiveTorqueConstant
(
const
utils::Scalar& Torque,
size_t
dofIdx);
35
42
PassiveTorqueConstant
(
43
const
utils::Scalar& Torque,
44
size_t
dofIdx,
45
const
utils::String
& jointName);
46
51
PassiveTorqueConstant
DeepCopy
()
const
;
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
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueConstant::PassiveTorqueConstant
PassiveTorqueConstant()
Construct a constant passive torque.
Definition
PassiveTorqueConstant.cpp:9
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueConstant::m_Torque
std::shared_ptr< utils::Scalar > m_Torque
Maximal torque that can be done.
Definition
PassiveTorqueConstant.h:72
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueConstant::setType
virtual void setType()
Set the type of the constant passive torque.
Definition
PassiveTorqueConstant.cpp:57
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueConstant::passiveTorque
virtual utils::Scalar passiveTorque()
Return the maximal torque.
Definition
PassiveTorqueConstant.cpp:53
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorqueConstant::DeepCopy
PassiveTorqueConstant DeepCopy() const
Deep copy of the constant passive torque.
Definition
PassiveTorqueConstant.cpp:40
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorque::PassiveTorque
PassiveTorque()
Construct passive torque.
Definition
PassiveTorque.cpp:8
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
include
InternalForces
PassiveTorques
PassiveTorqueConstant.h
Generated by
1.18.0