|
Biorbd Release_1.13.0
|
Holder for the biorbd contact set. More...
#include <SoftContacts.h>
Public Member Functions | |
| SoftContacts () | |
| Construct a contact biorbd set. | |
| virtual | ~SoftContacts () |
| Virtual destructor. | |
| SoftContacts | DeepCopy () const |
| Deep copy of the contacts. | |
| void | DeepCopy (const SoftContacts &other) |
| Deep copy of the contacts. | |
| utils::String | softContactName (size_t i) |
| Return the name of the soft contact. | |
| std::vector< utils::String > | softContactNames () |
| Return the names of the soft contact. | |
| void | addSoftContact (const SoftContactNode &contact) |
| Add a new contact to the contact set. | |
| SoftContactNode & | softContact (size_t idx) |
| Return a specified contact. | |
| NodeSegment | softContact (const GeneralizedCoordinates &Q, size_t idx, bool updateKin=true) |
| Return a specified contact at a given position Q. | |
| std::vector< NodeSegment > | softContacts (const GeneralizedCoordinates &Q, bool updateKin=true) |
| Return a the contacts at a given position Q. | |
| NodeSegment | softContactVelocity (const GeneralizedCoordinates &Q, const GeneralizedVelocity &Qdot, size_t idx, bool updateKin=true) |
| Return the linear velocity of a contact. | |
| NodeSegment | softContactAngularVelocity (const GeneralizedCoordinates &Q, const GeneralizedVelocity &Qdot, size_t idx, bool updateKin=true) |
| Return the angular velocity of a contact. | |
| std::vector< NodeSegment > | softContactsVelocity (const GeneralizedCoordinates &Q, const GeneralizedVelocity &Qdot, bool updateKin=true) |
| Return the velocity of all the contacts. | |
| std::vector< NodeSegment > | softContactsAngularVelocity (const GeneralizedCoordinates &Q, const GeneralizedVelocity &Qdot, bool updateKin=true) |
| Return the angular velocity of all the contacts. | |
| size_t | nbSoftContacts () const |
| Return the number of contacts. | |
| std::vector< size_t > | segmentSoftContactIdx (size_t idx) const |
| Return all the soft contacts indices of a segment. | |
Protected Attributes | |
| std::shared_ptr< std::vector< std::shared_ptr< SoftContactNode > > > | m_softContacts |
| The contacts. | |
Holder for the biorbd contact set.
Definition at line 25 of file SoftContacts.h.
| rigidbody::SoftContacts::SoftContacts | ( | ) |
Construct a contact biorbd set.
Definition at line 17 of file SoftContacts.cpp.
|
inlinevirtual |
Virtual destructor.
Definition at line 35 of file SoftContacts.h.
| void rigidbody::SoftContacts::addSoftContact | ( | const SoftContactNode & | contact | ) |
Add a new contact to the contact set.
| contact | The contact to add |
Definition at line 52 of file SoftContacts.cpp.
| rigidbody::SoftContacts rigidbody::SoftContacts::DeepCopy | ( | ) | const |
Deep copy of the contacts.
Definition at line 21 of file SoftContacts.cpp.
| void rigidbody::SoftContacts::DeepCopy | ( | const SoftContacts & | other | ) |
Deep copy of the contacts.
| other | The contacts to copy from |
Definition at line 27 of file SoftContacts.cpp.
| size_t rigidbody::SoftContacts::nbSoftContacts | ( | ) | const |
Return the number of contacts.
Definition at line 148 of file SoftContacts.cpp.
| std::vector< size_t > rigidbody::SoftContacts::segmentSoftContactIdx | ( | size_t | idx | ) | const |
Return all the soft contacts indices of a segment.
| idx | The index of the segment |
Definition at line 152 of file SoftContacts.cpp.
| rigidbody::NodeSegment rigidbody::SoftContacts::softContact | ( | const GeneralizedCoordinates & | Q, |
| size_t | idx, | ||
| bool | updateKin = true ) |
Return a specified contact at a given position Q.
| Q | The generalized coordinates |
| idx | The index of the marker |
| updateKin | If the model should be updated |
Definition at line 67 of file SoftContacts.cpp.
| rigidbody::SoftContactNode & rigidbody::SoftContacts::softContact | ( | size_t | idx | ) |
Return a specified contact.
| idx | The index of the marker |
Definition at line 63 of file SoftContacts.cpp.
| rigidbody::NodeSegment rigidbody::SoftContacts::softContactAngularVelocity | ( | const GeneralizedCoordinates & | Q, |
| const GeneralizedVelocity & | Qdot, | ||
| size_t | idx, | ||
| bool | updateKin = true ) |
Return the angular velocity of a contact.
| Q | The generalized coordinates |
| Qdot | The generalized velocities |
| idx | The index of the marker in the contact set |
| updateKin | If the model should be updated |
Definition at line 105 of file SoftContacts.cpp.
| utils::String rigidbody::SoftContacts::softContactName | ( | size_t | i | ) |
Return the name of the soft contact.
| i | The index of the contact |
Definition at line 40 of file SoftContacts.cpp.
| std::vector< utils::String > rigidbody::SoftContacts::softContactNames | ( | ) |
Return the names of the soft contact.
Definition at line 44 of file SoftContacts.cpp.
| std::vector< rigidbody::NodeSegment > rigidbody::SoftContacts::softContacts | ( | const GeneralizedCoordinates & | Q, |
| bool | updateKin = true ) |
Return a the contacts at a given position Q.
| Q | The generalized coordinates |
| updateKin | If the model should be updated |
Definition at line 78 of file SoftContacts.cpp.
| std::vector< rigidbody::NodeSegment > rigidbody::SoftContacts::softContactsAngularVelocity | ( | const GeneralizedCoordinates & | Q, |
| const GeneralizedVelocity & | Qdot, | ||
| bool | updateKin = true ) |
Return the angular velocity of all the contacts.
| Q | The generalized coordinates |
| Qdot | The generalized velocities |
| updateKin | If the model should be updated |
Definition at line 135 of file SoftContacts.cpp.
| std::vector< rigidbody::NodeSegment > rigidbody::SoftContacts::softContactsVelocity | ( | const GeneralizedCoordinates & | Q, |
| const GeneralizedVelocity & | Qdot, | ||
| bool | updateKin = true ) |
Return the velocity of all the contacts.
| Q | The generalized coordinates |
| Qdot | The generalized velocities |
| updateKin | If the model should be updated |
Definition at line 121 of file SoftContacts.cpp.
| rigidbody::NodeSegment rigidbody::SoftContacts::softContactVelocity | ( | const GeneralizedCoordinates & | Q, |
| const GeneralizedVelocity & | Qdot, | ||
| size_t | idx, | ||
| bool | updateKin = true ) |
Return the linear velocity of a contact.
| Q | The generalized coordinates |
| Qdot | The generalized velocities |
| idx | The index of the marker in the contact set |
| updateKin | If the model should be updated |
Definition at line 91 of file SoftContacts.cpp.
|
protected |
The contacts.
Definition at line 164 of file SoftContacts.h.