Base interface for forces representation. More...
#include <spatial/force-base.hpp>
Public Member Functions | |
ConstAngularType | angular () const |
Return the angular part of the force vector. More... | |
AngularType | angular () |
Return the angular part of the force vector. More... | |
template<typename V3Like > | |
void | angular (const Eigen::MatrixBase< V3Like > &n) |
Set the angular part of the force vector. More... | |
Derived & | derived () |
const Derived & | derived () const |
void | disp (std::ostream &os) const |
template<typename MotionDerived > | |
Scalar | dot (const MotionDense< MotionDerived > &m) const |
FORCE_TYPEDEF_TPL (Derived) | |
bool | isApprox (const Derived &other, const Scalar &prec=Eigen::NumTraits< Scalar >::dummy_precision()) const |
bool | isZero (const Scalar &prec=Eigen::NumTraits< Scalar >::dummy_precision()) const |
ConstLinearType | linear () const |
Return the linear part of the force vector. More... | |
LinearType | linear () |
Return the linear part of the force vector. More... | |
template<typename V3Like > | |
void | linear (const Eigen::MatrixBase< V3Like > &f) |
Set the linear part of the force vector. More... | |
template<typename M1 > | |
MotionAlgebraAction< Derived, M1 >::ReturnType | motionAction (const MotionDense< M1 > &v) const |
operator Vector6 () const | |
template<typename F2 > | |
bool | operator!= (const ForceBase< F2 > &other) const |
template<typename OtherScalar > | |
ForcePlain | operator* (const OtherScalar &alpha) const |
Derived | operator+ (const ForceBase< Derived > &phi) const |
Derived & | operator+= (const ForceBase< Derived > &phi) |
Replaces *this by *this + other. More... | |
Derived | operator- () const |
Derived | operator- (const ForceBase< Derived > &phi) const |
Derived & | operator-= (const ForceBase< Derived > &phi) |
Replaces *this by *this - other. More... | |
template<typename OtherScalar > | |
ForcePlain | operator/ (const OtherScalar &alpha) const |
Derived & | operator= (const ForceBase< Derived > &other) |
Copies the Derived Force into *this. More... | |
template<typename F2 > | |
bool | operator== (const ForceBase< F2 > &other) const |
template<typename S2 , int O2> | |
SE3GroupAction< Derived >::ReturnType | se3Action (const SE3Tpl< S2, O2 > &m) const |
Transform from A to B coordinates the Force represented by *this such that \begin{equation*} {}^{B}f = {}^{B}X_A^* * {}^{A}f \end{equation*} . More... | |
template<typename S2 , int O2> | |
SE3GroupAction< Derived >::ReturnType | se3ActionInverse (const SE3Tpl< S2, O2 > &m) const |
Transform from B to A coordinates the Force represented by *this such that \begin{equation*} {}^{A}f = {}^{A}X_B^* * {}^{A}f \end{equation*} . More... | |
ToVectorConstReturnType | toVector () const |
Return the force as an Eigen vector. More... | |
ToVectorReturnType | toVector () |
Return the force as an Eigen vector. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const ForceBase< Derived > &X) |
Base interface for forces representation.
The Class implements all
This class hierarchy represents a spatial force, e.g. a spatial impulse or force associated to a body. The spatial force is the mathematical representation of \( se^{*}(3) \), the dual of \( se(3) \).
Derived | { description } |
Definition at line 22 of file force-base.hpp.
|
inline |
Return the angular part of the force vector.
Definition at line 35 of file force-base.hpp.
|
inline |
Return the angular part of the force vector.
Definition at line 45 of file force-base.hpp.
|
inline |
Set the angular part of the force vector.
V3Like | A vector 3 like type. |
[in] | n |
Definition at line 59 of file force-base.hpp.
|
inline |
Definition at line 157 of file force-base.hpp.
|
inline |
Definition at line 106 of file force-base.hpp.
|
inline |
Definition at line 111 of file force-base.hpp.
|
inline |
Return the linear part of the force vector.
Definition at line 42 of file force-base.hpp.
|
inline |
Return the linear part of the force vector.
Definition at line 48 of file force-base.hpp.
|
inline |
Set the linear part of the force vector.
V3Like | A vector 3 like type. |
[in] | f |
Definition at line 70 of file force-base.hpp.
|
inline |
*this
and other does not match. Definition at line 102 of file force-base.hpp.
|
inline |
Definition at line 139 of file force-base.hpp.
|
inline |
Definition at line 134 of file force-base.hpp.
|
inline |
Replaces *this by *this + other.
Definition at line 124 of file force-base.hpp.
|
inline |
Definition at line 148 of file force-base.hpp.
|
inline |
Definition at line 152 of file force-base.hpp.
|
inline |
Replaces *this by *this - other.
Definition at line 130 of file force-base.hpp.
|
inline |
Definition at line 144 of file force-base.hpp.
|
inline |
Copies the Derived Force into *this.
Definition at line 117 of file force-base.hpp.
|
inline |
*this
and other are all exactly equal. Definition at line 97 of file force-base.hpp.
|
inline |
Transform from A to B coordinates the Force represented by *this such that
\begin{equation*} {}^{B}f = {}^{B}X_A^* * {}^{A}f \end{equation*}
.
[in] | m | The rigid transformation \( {}^{B}m_A \) whose coordinates transform for forces is {}^{B}X_A^* |
Definition at line 173 of file force-base.hpp.
|
inline |
Transform from B to A coordinates the Force represented by *this such that
\begin{equation*} {}^{A}f = {}^{A}X_B^* * {}^{A}f \end{equation*}
.
[in] | m | The rigid transformation \( {}^{B}m_A \) whose coordinates transform for forces is {}^{B}X_A^* |
Definition at line 189 of file force-base.hpp.
|
inline |
Return the force as an Eigen vector.
\begin{equation*} {}^{A}\phi = \begin{bmatrix} {}^{A}f \\ {}^{A}\tau \end{bmatrix} \end{equation*}
Definition at line 81 of file force-base.hpp.
|
inline |
Return the force as an Eigen vector.
\begin{equation*} {}^{A}\phi = \begin{bmatrix} {}^{A}f \\ {}^{A}\tau \end{bmatrix} \end{equation*}
Definition at line 84 of file force-base.hpp.