Biorbd Release_1.13.0
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
11namespace BIORBD_NAMESPACE {
12namespace utils {
13class Vector;
14}
15
16namespace rigidbody {
20} // namespace rigidbody
21
22namespace internal_forces {
23namespace passive_torques {
24class PassiveTorque;
28class BIORBD_API PassiveTorques {
29 public:
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
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>>>
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
std::shared_ptr< std::vector< bool > > m_isDofSet
If DoF all dof are set.
size_t nbPassiveTorques() const
Return the toal number of passive torques.
const std::shared_ptr< PassiveTorque > & getPassiveTorque(size_t dof)
Return a specific passive torque.
std::shared_ptr< std::vector< std::shared_ptr< internal_forces::passive_torques::PassiveTorque > > > m_pas
Passive torque to add.
void addPassiveTorque(const PassiveTorque &other)
Add a passive torque to the set of passive torques.
void DeepCopy(const PassiveTorques &other)
Deep copy of the passive torque holder from other passive torque holder.
rigidbody::GeneralizedTorque passiveJointTorque(const rigidbody::GeneralizedCoordinates &Q, const rigidbody::GeneralizedVelocity &Qdot)
Return the passiveJointTorques.
Wrapper of the Eigen VectorXd.
Definition Vector.h:21