Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
PassiveTorques.h
1
#ifndef BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUES_H
2
#define BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUES_H
3
4
#include "biorbdConfig.h"
5
6
#include <memory>
7
#include <vector>
8
9
#include "Utils/Scalar.h"
10
11
namespace
BIORBD_NAMESPACE {
12
namespace
utils {
13
class
Vector
;
14
}
15
16
namespace
rigidbody {
17
class
GeneralizedCoordinates
;
18
class
GeneralizedVelocity
;
19
class
GeneralizedTorque
;
20
}
// namespace rigidbody
21
22
namespace
internal_forces {
23
namespace
passive_torques {
24
class
PassiveTorque
;
28
class
BIORBD_API
PassiveTorques
{
29
public
:
33
PassiveTorques
();
34
39
PassiveTorques
(
const
PassiveTorques
& other);
40
44
virtual
~PassiveTorques
();
45
51
void
DeepCopy
(
const
PassiveTorques
& other);
52
57
void
addPassiveTorque
(
const
PassiveTorque
& other);
58
65
rigidbody::GeneralizedTorque
passiveJointTorque
(
66
const
rigidbody::GeneralizedCoordinates
& Q,
67
const
rigidbody::GeneralizedVelocity
& Qdot);
68
69
// Get and set
74
size_t
nbPassiveTorques
()
const
;
75
81
const
std::shared_ptr<PassiveTorque>&
getPassiveTorque
(
size_t
dof);
82
83
protected
:
84
std::shared_ptr<std::vector<
85
std::shared_ptr<internal_forces::passive_torques::PassiveTorque>>>
86
m_pas
;
87
std::shared_ptr<std::vector<bool>>
m_isDofSet
;
88
};
89
90
}
// namespace passive_torques
91
}
// namespace internal_forces
92
}
// namespace BIORBD_NAMESPACE
93
94
#endif
// BIORBD_PASSIVE_TORQUES_PASSIVE_TORQUES_H
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorque
Class PassiveTorque.
Definition
PassiveTorque.h:21
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorques::PassiveTorques
PassiveTorques()
Construct passive torques.
Definition
PassiveTorques.cpp:19
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorques::m_isDofSet
std::shared_ptr< std::vector< bool > > m_isDofSet
If DoF all dof are set.
Definition
PassiveTorques.h:87
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorques::nbPassiveTorques
size_t nbPassiveTorques() const
Return the toal number of passive torques.
Definition
PassiveTorques.cpp:130
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorques::getPassiveTorque
const std::shared_ptr< PassiveTorque > & getPassiveTorque(size_t dof)
Return a specific passive torque.
Definition
PassiveTorques.cpp:123
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorques::m_pas
std::shared_ptr< std::vector< std::shared_ptr< internal_forces::passive_torques::PassiveTorque > > > m_pas
Passive torque to add.
Definition
PassiveTorques.h:86
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorques::addPassiveTorque
void addPassiveTorque(const PassiveTorque &other)
Add a passive torque to the set of passive torques.
Definition
PassiveTorques.cpp:67
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorques::DeepCopy
void DeepCopy(const PassiveTorques &other)
Deep copy of the passive torque holder from other passive torque holder.
Definition
PassiveTorques.cpp:33
BIORBD_NAMESPACE::internal_forces::passive_torques::PassiveTorques::passiveJointTorque
rigidbody::GeneralizedTorque passiveJointTorque(const rigidbody::GeneralizedCoordinates &Q, const rigidbody::GeneralizedVelocity &Qdot)
Return the passiveJointTorques.
Definition
PassiveTorques.cpp:136
BIORBD_NAMESPACE::rigidbody::GeneralizedCoordinates
Class GeneralizedCoordinates.
Definition
GeneralizedCoordinates.h:15
BIORBD_NAMESPACE::rigidbody::GeneralizedTorque
Class GeneralizedTorque.
Definition
GeneralizedTorque.h:15
BIORBD_NAMESPACE::rigidbody::GeneralizedVelocity
Class GeneralizedVelocity.
Definition
GeneralizedVelocity.h:15
BIORBD_NAMESPACE::utils::Vector
Wrapper of the Eigen VectorXd.
Definition
Vector.h:21
include
InternalForces
PassiveTorques
PassiveTorques.h
Generated by
1.18.0