|
Biorbd Release_1.13.0
|
This is an internal structure holding the information for the local forces. RotoTransNodes could have suffised, but we need to have a structure that was holding the spatial vector as well. More...
#include <ExternalForceSet.h>
Public Member Functions | |
| void | addNode (const utils::SpatialVector &vector, utils::RotoTransNode node) |
| Add a force vector and its point of application. | |
| std::pair< utils::SpatialVector, utils::RotoTransNode > | get (int index) |
| Return the pair force vector/point of application in the local reference frame. | |
| size_t | size () const |
| Return the number of forces stored. | |
| void | clear () |
| Remove all the forces stored. | |
Public Attributes | |
| std::vector< utils::RotoTransNode > | m_nodes |
| All the points of application of the forces. | |
| std::vector< utils::SpatialVector > | m_vectors |
This is an internal structure holding the information for the local forces. RotoTransNodes could have suffised, but we need to have a structure that was holding the spatial vector as well.
Definition at line 38 of file ExternalForceSet.h.
|
inline |
Add a force vector and its point of application.
| vector | The spatial vector of the force |
| node | The point of application in the local reference frame |
Definition at line 45 of file ExternalForceSet.h.
|
inline |
Remove all the forces stored.
Definition at line 71 of file ExternalForceSet.h.
|
inline |
Return the pair force vector/point of application in the local reference frame.
| index | The index of the force |
Definition at line 57 of file ExternalForceSet.h.
|
inline |
Return the number of forces stored.
Definition at line 66 of file ExternalForceSet.h.
| std::vector<utils::RotoTransNode> BIORBD_NAMESPACE::rigidbody::ExternalForceSet::LocalForcesInternal::m_nodes |
All the points of application of the forces.
Definition at line 77 of file ExternalForceSet.h.
| std::vector<utils::SpatialVector> BIORBD_NAMESPACE::rigidbody::ExternalForceSet::LocalForcesInternal::m_vectors |
All the force vectors, the size of which should always match the size of m_nodes
Definition at line 79 of file ExternalForceSet.h.