Biorbd Release_1.13.0
Loading...
Searching...
No Matches
BIORBD_NAMESPACE::utils::SpatialVector Class Reference

Wrapper of the Eigen::Matrix<double, 6, 1> or Casadi::MX(6, 1). More...

#include <SpatialVector.h>

Inheritance diagram for BIORBD_NAMESPACE::utils::SpatialVector:

Public Member Functions

 SpatialVector ()
 Construct SpatialVector.
 SpatialVector (const SpatialVector &other)
 Construct SpatialVector from Casadi SpatialVector.
 SpatialVector (const Vector3d &moment, const Vector3d &force)
 Construct SpatialVector from Casadi SpatialVector.
 SpatialVector (const RigidBodyDynamics::Math::SpatialVector &other)
 Construct SpatialVector from Casadi SpatialVector.
 SpatialVector (Scalar mx, Scalar my, Scalar mz, Scalar fx, Scalar fy, Scalar fz)
 Construct SpatialVector by its values.
void operator= (const SpatialVector &other)
 operator= For submatrices
utils::Vector3d force () const
 Return the force part of the vector (last three elements).
utils::Vector3d moment () const
 Return the moment part of the vector (first three elements).

Detailed Description

Wrapper of the Eigen::Matrix<double, 6, 1> or Casadi::MX(6, 1).

Definition at line 19 of file SpatialVector.h.

Constructor & Destructor Documentation

◆ SpatialVector() [1/5]

utils::SpatialVector::SpatialVector ( )

Construct SpatialVector.

Definition at line 10 of file SpatialVector.cpp.

◆ SpatialVector() [2/5]

utils::SpatialVector::SpatialVector ( const SpatialVector & other)

Construct SpatialVector from Casadi SpatialVector.

Parameters
otherThe SpatialVector to copy

Definition at line 13 of file SpatialVector.cpp.

◆ SpatialVector() [3/5]

utils::SpatialVector::SpatialVector ( const Vector3d & moment,
const Vector3d & force )

Construct SpatialVector from Casadi SpatialVector.

Parameters
momentThe vector for the moment
forceThe vector for the force

Definition at line 20 of file SpatialVector.cpp.

◆ SpatialVector() [4/5]

utils::SpatialVector::SpatialVector ( const RigidBodyDynamics::Math::SpatialVector & other)

Construct SpatialVector from Casadi SpatialVector.

Parameters
otherThe SpatialVector to copy

Definition at line 16 of file SpatialVector.cpp.

◆ SpatialVector() [5/5]

utils::SpatialVector::SpatialVector ( Scalar mx,
Scalar my,
Scalar mz,
Scalar fx,
Scalar fy,
Scalar fz )

Construct SpatialVector by its values.

Parameters
mxMoment about the X axis
myMoment about the Y axis
mzMoment about the Z axis
fxFroce along the X axis
fyForce along the Y axis
fzForce along the Z axis

Definition at line 31 of file SpatialVector.cpp.

Member Function Documentation

◆ force()

utils::Vector3d utils::SpatialVector::force ( ) const

Return the force part of the vector (last three elements).

Returns
The force part of the vector

Definition at line 67 of file SpatialVector.cpp.

◆ moment()

utils::Vector3d utils::SpatialVector::moment ( ) const

Return the moment part of the vector (first three elements).

Returns
The moment part of the vector

Definition at line 71 of file SpatialVector.cpp.

◆ operator=()

void utils::SpatialVector::operator= ( const SpatialVector & other)

operator= For submatrices

Parameters
otherThe SpatialVector to copy

Definition at line 50 of file SpatialVector.cpp.


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