6 #ifndef INCLUDE_CT_RBD_ROBOT_KINEMATICS_EEFORCE_H_ 7 #define INCLUDE_CT_RBD_ROBOT_KINEMATICS_EEFORCE_H_ 17 template <
typename SCALAR =
double>
22 typedef Eigen::VectorBlock<spatial_force_vector_t, 3>
24 typedef Eigen::VectorBlock<const spatial_force_vector_t, 3>
50 this->setConstant(zero);
57 inline bool operator==(
const spatial_force_vector_t& rhs)
const {
return Base::operator==(rhs); }
61 inline bool operator!=(
const spatial_force_vector_t& rhs)
const {
return Base::operator!=(rhs); }
65 inline spatial_force_vector_t
operator+(
const spatial_force_vector_t& rhs)
const 72 inline spatial_force_vector_t
operator-(
const spatial_force_vector_t& rhs)
const 110 typedef Eigen::Matrix<SCALAR, 6, 1> Base;
spatial_force_vector_t operator+(const spatial_force_vector_t &rhs) const
Sums two spatial forces component-wise.
Definition: SpatialForceVector.h:65
Eigen::Matrix< SCALAR, 6, 1 > spatial_force_vector_t
special vector type
Definition: SpatialForceVector.h:21
spatial_force_vector_t operator*(const SCALAR &scalar) const
Scales a spatial forces component-wise.
Definition: SpatialForceVector.h:80
spatial_force_vector_t operator/(const SCALAR &scalar) const
Divides a spatial forces component-wise.
Definition: SpatialForceVector.h:88
const ForceTorqueBlockConst force() const
Get the force block (lower 3D block)
Definition: SpatialForceVector.h:108
bool operator!=(const spatial_force_vector_t &rhs) const
Comparison operator (exact, subject to floating point rounding)
Definition: SpatialForceVector.h:61
SpatialForceVector & setZero()
Sets all entries to zero.
Definition: SpatialForceVector.h:46
Eigen::VectorBlock< const spatial_force_vector_t, 3 > ForceTorqueBlockConst
const 3D force or torque block inside of the spacial vector
Definition: SpatialForceVector.h:25
CppAD::AD< CppAD::cg::CG< double > > SCALAR
A spatial force vector This vector contains a torque (angular) in the upper three rows and a linear f...
Definition: SpatialForceVector.h:18
SpatialForceVector()
Default constructor.
Definition: SpatialForceVector.h:30
const ForceTorqueBlockConst torque() const
Get the torque block (upper 3D block)
Definition: SpatialForceVector.h:100
Eigen::VectorBlock< spatial_force_vector_t, 3 > ForceTorqueBlock
3D force or torque block inside of the spacial vector
Definition: SpatialForceVector.h:23
spatial_force_vector_t & toImplementation()
Returns the Eigen implementation.
Definition: SpatialForceVector.h:38
ForceTorqueBlock torque()
Get the torque block (upper 3D block)
Definition: SpatialForceVector.h:96
bool operator==(const spatial_force_vector_t &rhs) const
Comparison operator (exact, subject to floating point rounding)
Definition: SpatialForceVector.h:57
spatial_force_vector_t operator-(const spatial_force_vector_t &rhs) const
Substracts two spatial forces component-wise.
Definition: SpatialForceVector.h:72
ForceTorqueBlock force()
Get the force block (lower 3D block)
Definition: SpatialForceVector.h:104
SpatialForceVector(const spatial_force_vector_t &vector6)
Copy constructor.
Definition: SpatialForceVector.h:34
const spatial_force_vector_t & toImplementation() const
Returns the Eigen implementation.
Definition: SpatialForceVector.h:42