Biorbd Release_1.13.0
Loading...
Searching...
No Matches
BIORBD_NAMESPACE::rigidbody::ExternalForceSet::LocalForcesInternal Class Reference

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

Detailed Description

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.

Member Function Documentation

◆ addNode()

void BIORBD_NAMESPACE::rigidbody::ExternalForceSet::LocalForcesInternal::addNode ( const utils::SpatialVector & vector,
utils::RotoTransNode node )
inline

Add a force vector and its point of application.

Parameters
vectorThe spatial vector of the force
nodeThe point of application in the local reference frame

Definition at line 45 of file ExternalForceSet.h.

◆ clear()

void BIORBD_NAMESPACE::rigidbody::ExternalForceSet::LocalForcesInternal::clear ( )
inline

Remove all the forces stored.

Definition at line 71 of file ExternalForceSet.h.

◆ get()

std::pair< utils::SpatialVector, utils::RotoTransNode > BIORBD_NAMESPACE::rigidbody::ExternalForceSet::LocalForcesInternal::get ( int index)
inline

Return the pair force vector/point of application in the local reference frame.

Parameters
indexThe index of the force
Returns
The pair force vector/point of application

Definition at line 57 of file ExternalForceSet.h.

◆ size()

size_t BIORBD_NAMESPACE::rigidbody::ExternalForceSet::LocalForcesInternal::size ( ) const
inline

Return the number of forces stored.

Returns
The number of forces stored

Definition at line 66 of file ExternalForceSet.h.

Member Data Documentation

◆ m_nodes

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.

◆ m_vectors

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.


The documentation for this class was generated from the following file: