pinocchio  3.9.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
Loading...
Searching...
No Matches
ForceRef< Vector6ArgType > Class Template Reference
Inheritance diagram for ForceRef< Vector6ArgType >:
Collaboration diagram for ForceRef< Vector6ArgType >:

Public Types

typedef ForceDense< ForceRefBase
typedef traits< ForceRef >::DataRefType DataRefType
Public Types inherited from ForceDense< ForceRef< Vector6ArgType > >
typedef ForceBase< ForceRef< Vector6ArgType > > Base
typedef traits< ForceRef< Vector6ArgType > >::ForceRefType ForceRefType

Public Member Functions

 ForceRef (const ForceRef &other)
 Copy constructor from another ForceRef.
 ForceRef (typename PINOCCHIO_EIGEN_REF_TYPE(Vector6ArgType) f_like)
 Default constructor from a 6 dimensional vector.
AngularType angular_impl ()
ConstAngularType angular_impl () const
template<typename V3>
void angular_impl (const Eigen::MatrixBase< V3 > &w)
 FORCE_TYPEDEF_TPL (ForceRef)
LinearType linear_impl ()
ConstLinearType linear_impl () const
template<typename V3>
void linear_impl (const Eigen::MatrixBase< V3 > &v)
ForceRefoperator= (const Eigen::MatrixBase< V6 > &v)
ForceRefoperator= (const ForceBase< ForceRef > &other)
 Copies the Derived Force into *this.
ForceRefoperator= (const ForceDense &other)
ForceRefoperator= (const ForceDense< D2 > &other)
ForceRefref ()
ToVectorReturnType toVector_impl ()
ToVectorConstReturnType toVector_impl () const
Public Member Functions inherited from ForceDense< ForceRef< Vector6ArgType > >
ForcePlain __div__ (const OtherScalar &alpha) const
ForceRef< Vector6ArgType > & __mequ__ (const ForceDense< M1 > &v)
ForcePlain __minus__ (const ForceDense< M1 > &v) const
ForcePlain __mult__ (const OtherScalar &alpha) const
ForcePlain __opposite__ () const
ForceRef< Vector6ArgType > & __pequ__ (const ForceDense< M1 > &v)
ForcePlain __plus__ (const ForceDense< M1 > &v) const
AngularType angular ()
 Return the angular part of the force vector.
ConstAngularType angular () const
 Return the angular part of the force vector.
void angular (const Eigen::MatrixBase< V3Like > &n)
 Set the angular part of the force vector.
ForceRef< Vector6ArgType > & derived ()
const ForceRef< Vector6ArgType > & derived () const
void disp_impl (std::ostream &os) const
Scalar dot (const MotionDense< F1 > &phi) const
 FORCE_TYPEDEF_TPL (ForceRef< Vector6ArgType >)
bool isApprox (const ForceRef< Vector6ArgType > &other, const Scalar &prec=Eigen::NumTraits< Scalar >::dummy_precision()) const
bool isApprox_impl (const ForceDense< D2 > &f, const Scalar &prec=Eigen::NumTraits< Scalar >::dummy_precision()) const
bool isEqual_impl (const ForceDense< D2 > &other) const
bool isZero (const Scalar &prec=Eigen::NumTraits< Scalar >::dummy_precision()) const
bool isZero_impl (const Scalar &prec=Eigen::NumTraits< Scalar >::dummy_precision()) const
LinearType linear ()
 Return the linear part of the force vector.
ConstLinearType linear () const
 Return the linear part of the force vector.
void linear (const Eigen::MatrixBase< V3Like > &f)
 Set the linear part of the force vector.
void motionAction (const MotionDense< M1 > &v, ForceDense< M2 > &fout) const
ForcePlain operator+ (const ForceDense< F1 > &f) const
ForceRef< Vector6ArgType > & operator+= (const ForceDense< F1 > &f)
ForcePlain operator- () const
ForceRef< Vector6ArgType > & operator-= (const ForceDense< M1 > &v)
ForceRef< Vector6ArgType > & operator= (const ForceBase< ForceRef< Vector6ArgType > > &other)
 Copies the Derived Force into *this.
ForceRefType ref ()
void se3Action_impl (const SE3Tpl< S2, O2 > &m, ForceDense< D2 > &f) const
void se3ActionInverse_impl (const SE3Tpl< S2, O2 > &m, ForceDense< D2 > &f) const
ForceRef< Vector6ArgType > & set (const ForceDense< D2 > &other)
ForceRef< Vector6ArgType > & setRandom ()
ForceRef< Vector6ArgType > & setZero ()
Public Member Functions inherited from ForceBase< ForceRef< Vector6ArgType > >
ConstAngularType angular () const
 Return the angular part of the force vector.
ForceRef< Vector6ArgType > & const_cast_derived () const
ForceRef< Vector6ArgType > & derived ()
void disp (std::ostream &os) const
Scalar dot (const MotionDense< MotionDerived > &m) const
 FORCE_TYPEDEF_TPL (ForceRef< Vector6ArgType >)
bool isApprox (const ForceRef< Vector6ArgType > &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.
MotionAlgebraAction< ForceRef< Vector6ArgType >, M1 >::ReturnType motionAction (const MotionDense< M1 > &v) const
 operator Vector6 () const
bool operator!= (const ForceBase< F2 > &other) const
ForcePlain operator* (const OtherScalar &alpha) const
ForceRef< Vector6ArgType > operator+ (const ForceBase< ForceRef< Vector6ArgType > > &phi) const
ForceRef< Vector6ArgType > & operator+= (const ForceBase< ForceRef< Vector6ArgType > > &phi)
 Replaces *this by *this + other.
ForceRef< Vector6ArgType > operator- () const
ForceRef< Vector6ArgType > & operator-= (const ForceBase< ForceRef< Vector6ArgType > > &phi)
 Replaces *this by *this - other.
ForcePlain operator/ (const OtherScalar &alpha) const
ForceRef< Vector6ArgType > & operator= (const ForceBase< ForceRef< Vector6ArgType > > &other)
 Copies the Derived Force into *this.
bool operator== (const ForceBase< F2 > &other) const
SE3GroupAction< ForceRef< Vector6ArgType > >::ReturnType se3Action (const SE3Tpl< S2, O2 > &m) const
 Transform from A to B coordinates the Force represented by *this such that.
SE3GroupAction< ForceRef< Vector6ArgType > >::ReturnType se3ActionInverse (const SE3Tpl< S2, O2 > &m) const
 Transform from B to A coordinates the Force represented by *this such that.
ToVectorConstReturnType toVector () const
 Return the force as an Eigen vector.

Protected Attributes

DataRefType m_ref

Detailed Description

template<typename Vector6ArgType>
class pinocchio::ForceRef< Vector6ArgType >

Definition at line 53 of file force-ref.hpp.

Member Typedef Documentation

◆ Base

template<typename Vector6ArgType>
typedef ForceDense<ForceRef> Base

Definition at line 57 of file force-ref.hpp.

◆ DataRefType

template<typename Vector6ArgType>
typedef traits<ForceRef>::DataRefType DataRefType

Definition at line 58 of file force-ref.hpp.

Constructor & Destructor Documentation

◆ ForceRef() [1/2]

template<typename Vector6ArgType>
ForceRef(typename PINOCCHIO_EIGEN_REF_TYPE(Vector6ArgType)f_like)
inline

Default constructor from a 6 dimensional vector.

Definition at line 66 of file force-ref.hpp.

◆ ForceRef() [2/2]

template<typename Vector6ArgType>
ForceRef(const ForceRef< Vector6ArgType > &other)
inline

Copy constructor from another ForceRef.

Definition at line 75 of file force-ref.hpp.

Member Function Documentation

◆ angular_impl() [1/3]

template<typename Vector6ArgType>
AngularType angular_impl()
inline

Definition at line 98 of file force-ref.hpp.

◆ angular_impl() [2/3]

template<typename Vector6ArgType>
ConstAngularType angular_impl()const
inline

Definition at line 90 of file force-ref.hpp.

◆ angular_impl() [3/3]

template<typename Vector6ArgType>
template<typename V3>
void angular_impl(const Eigen::MatrixBase< V3 > &w)
inline

Definition at line 108 of file force-ref.hpp.

◆ linear_impl() [1/3]

template<typename Vector6ArgType>
LinearType linear_impl()
inline

Definition at line 102 of file force-ref.hpp.

◆ linear_impl() [2/3]

template<typename Vector6ArgType>
ConstLinearType linear_impl()const
inline

Definition at line 94 of file force-ref.hpp.

◆ linear_impl() [3/3]

template<typename Vector6ArgType>
template<typename V3>
void linear_impl(const Eigen::MatrixBase< V3 > &v)
inline

Definition at line 115 of file force-ref.hpp.

◆ operator=() [1/4]

template<typename Vector6ArgType>
ForceRef & operator=(const Eigen::MatrixBase< V6 > &v)
inline

Definition at line 84 of file force-dense.hpp.

◆ operator=() [2/4]

template<typename Vector6ArgType>
(const ForceBase< ForceRef< Vector6ArgType > > &other)

Copies the Derived Force into *this.

Returns
a reference to *this

◆ operator=() [3/4]

template<typename Vector6ArgType>
ForceRef & operator=(const ForceDense &other)
inline

Definition at line 70 of file force-dense.hpp.

◆ operator=() [4/4]

template<typename Vector6ArgType>
ForceRef & operator=(const ForceDense< D2 > &other)
inline

Definition at line 65 of file force-dense.hpp.

◆ ref()

template<typename Vector6ArgType>
ForceRef & ref()
inline

Definition at line 121 of file force-ref.hpp.

◆ toVector_impl() [1/2]

template<typename Vector6ArgType>
ToVectorReturnType toVector_impl()
inline

Definition at line 84 of file force-ref.hpp.

◆ toVector_impl() [2/2]

template<typename Vector6ArgType>
ToVectorConstReturnType toVector_impl()const
inline

Definition at line 80 of file force-ref.hpp.

Member Data Documentation

◆ m_ref

template<typename Vector6ArgType>
DataRefType m_ref
protected

Definition at line 127 of file force-ref.hpp.


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