Base interface for forces representation. More...
#include <pinocchio/spatial/force-base.hpp>
Public Member Functions | |
AngularType | angular () |
Return the angular part of the force vector. More... | |
ConstAngularType | angular () const |
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 & | const_cast_derived () const |
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 |
LinearType | linear () |
Return the linear part of the force vector. More... | |
ConstLinearType | linear () const |
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. 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. More... | |
ToVectorReturnType | toVector () |
Return the force as an Eigen vector. More... | |
ToVectorConstReturnType | toVector () const |
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 23 of file force-base.hpp.
|
inline |
Return the angular part of the force vector.
Definition at line 63 of file force-base.hpp.
|
inline |
Return the angular part of the force vector.
Definition at line 47 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 82 of file force-base.hpp.
|
inline |
Definition at line 229 of file force-base.hpp.
|
inline |
Definition at line 148 of file force-base.hpp.
|
inline |
Definition at line 158 of file force-base.hpp.
|
inline |
Return the linear part of the force vector.
Definition at line 69 of file force-base.hpp.
|
inline |
Return the linear part of the force vector.
Definition at line 57 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 95 of file force-base.hpp.
|
inline |
*this
and other does not match. Definition at line 141 of file force-base.hpp.
|
inline |
Definition at line 199 of file force-base.hpp.
|
inline |
Definition at line 191 of file force-base.hpp.
|
inline |
Replaces *this by *this + other.
Definition at line 175 of file force-base.hpp.
|
inline |
Definition at line 214 of file force-base.hpp.
|
inline |
Definition at line 221 of file force-base.hpp.
|
inline |
Replaces *this by *this - other.
Definition at line 184 of file force-base.hpp.
|
inline |
Definition at line 207 of file force-base.hpp.
|
inline |
Copies the Derived Force into *this.
Definition at line 166 of file force-base.hpp.
|
inline |
*this
and other are all exactly equal. Definition at line 133 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 247 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 265 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 114 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 108 of file force-base.hpp.