Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
PassiveTorque.h
1
#ifndef BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUE_H
2
#define BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUE_H
3
4
#include "biorbdConfig.h"
5
6
#include <memory>
7
8
#include "InternalForces/PassiveTorques/PassiveTorqueEnums.h"
9
#include "Utils/Scalar.h"
10
11
namespace
BIORBD_NAMESPACE {
12
namespace
utils {
13
class
String
;
14
}
15
namespace
internal_forces {
16
namespace
passive_torques {
17
21
class
BIORBD_API
PassiveTorque
{
22
public
:
26
PassiveTorque
();
27
32
PassiveTorque
(
const
PassiveTorque
& other);
33
38
PassiveTorque
(
const
std::shared_ptr<PassiveTorque> other);
39
44
PassiveTorque
(
size_t
dofIdx);
45
51
PassiveTorque
(
size_t
dofIdx,
const
utils::String
& jointName);
52
56
virtual
~PassiveTorque
();
57
62
void
DeepCopy
(
const
PassiveTorque
& other);
63
68
size_t
index
()
const
;
69
74
TORQUE_TYPE
type
()
const
;
75
80
virtual
utils::Scalar
passiveTorque
() = 0;
81
82
protected
:
86
virtual
void
setType
() = 0;
87
88
std::shared_ptr<TORQUE_TYPE>
m_type
;
89
std::shared_ptr<utils::String>
m_jointName
;
90
std::shared_ptr<size_t>
91
m_dofIdx
;
92
};
93
94
}
// namespace passive_torques
95
}
// namespace internal_forces
96
}
// namespace BIORBD_NAMESPACE
97
98
#endif
// BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUE_H
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorque::passiveTorque
virtual utils::Scalar passiveTorque()=0
Return the passive torque.
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorque::index
size_t index() const
Return the index of the DoF associated with passive torque.
Definition
PassiveTorque.cpp:51
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorque::DeepCopy
void DeepCopy(const PassiveTorque &other)
Deep copy of passive torque.
Definition
PassiveTorque.cpp:44
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorque::type
TORQUE_TYPE type() const
Return the type of the passive torque.
Definition
PassiveTorque.cpp:56
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorque::m_type
std::shared_ptr< TORQUE_TYPE > m_type
The type of the passive torque.
Definition
PassiveTorque.h:88
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorque::m_jointName
std::shared_ptr< utils::String > m_jointName
Name of the parent joint.
Definition
PassiveTorque.h:89
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorque::setType
virtual void setType()=0
Set the type of passive torque ^.
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorque::m_dofIdx
std::shared_ptr< size_t > m_dofIdx
Index of the DoF associated with the passive torque.
Definition
PassiveTorque.h:91
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
PassiveTorque.h
Generated by
1.18.0