#include <pinocchio/algorithm/constraints/coulomb-friction-cone.hpp>
Public Types | |
typedef DualCoulombFrictionConeTpl< Scalar > | DualCone |
typedef _Scalar | Scalar |
typedef Eigen::Matrix< Scalar, 3, 1 > | Vector3 |
Public Member Functions | |
CoulombFrictionConeTpl (const CoulombFrictionConeTpl &other)=default | |
Copy constructor. | |
CoulombFrictionConeTpl (const Scalar mu) | |
Default constructor. | |
template<typename Vector3Like1 , typename Vector3Like2 > | |
Scalar | computeConicComplementarity (const Eigen::MatrixBase< Vector3Like1 > &v, const Eigen::MatrixBase< Vector3Like2 > &f) const |
template<typename Vector3Like1 , typename Vector3Like2 > | |
Scalar | computeContactComplementarity (const Eigen::MatrixBase< Vector3Like1 > &v, const Eigen::MatrixBase< Vector3Like2 > &f) const |
template<typename Vector3Like > | |
Vector3Like | computeNormalCorrection (const Eigen::MatrixBase< Vector3Like > &v) const |
Compute the complementary shift associted to the Coulomb friction cone for complementarity satisfaction in complementary problems. | |
template<typename Vector3Like > | |
Vector3Like | computeRadialProjection (const Eigen::MatrixBase< Vector3Like > &f) const |
Compute the radial projection associted to the Coulomb friction cone. | |
DualCone | dual () const |
Returns the dual cone associated to this. | |
template<typename Vector3Like > | |
bool | isInside (const Eigen::MatrixBase< Vector3Like > &f, const Scalar prec=Scalar(0)) const |
Check whether a vector x lies within the cone. | |
bool | operator!= (const CoulombFrictionConeTpl &other) const |
Difference operator. | |
CoulombFrictionConeTpl & | operator= (const CoulombFrictionConeTpl &other)=default |
Copy operator. | |
bool | operator== (const CoulombFrictionConeTpl &other) const |
Comparison operator. | |
template<typename Vector3Like > | |
Vector3Like | project (const Eigen::MatrixBase< Vector3Like > &x) const |
Project a vector x onto the cone. | |
template<typename Vector3Like > | |
Vector3Like | weightedProject (const Eigen::MatrixBase< Vector3Like > &x, const Eigen::MatrixBase< Vector3Like > &R) const |
Project a vector x onto the cone with a matric specified by the diagonal matrix R. | |
Static Public Member Functions | |
static int | dim () |
Returns the dimension of the cone. | |
Public Attributes | |
Scalar | mu |
Definition at line 23 of file coulomb-friction-cone.hpp.
Definition at line 22 of file coulomb-friction-cone.hpp.
Definition at line 24 of file coulomb-friction-cone.hpp.
|
inlineexplicit |
Default constructor.
[in] | mu | Friction coefficient |
Definition at line 29 of file coulomb-friction-cone.hpp.
|
inline |
Definition at line 178 of file coulomb-friction-cone.hpp.
|
inline |
Definition at line 170 of file coulomb-friction-cone.hpp.
|
inline |
Compute the complementary shift associted to the Coulomb friction cone for complementarity satisfaction in complementary problems.
[in] | v | a dual vector. |
Definition at line 130 of file coulomb-friction-cone.hpp.
|
inline |
Compute the radial projection associted to the Coulomb friction cone.
[in] | f | a force vector. |
Definition at line 148 of file coulomb-friction-cone.hpp.
Returns the dimension of the cone.
Definition at line 191 of file coulomb-friction-cone.hpp.
Returns the dual cone associated to this.
Definition at line 185 of file coulomb-friction-cone.hpp.
|
inline |
Check whether a vector x lies within the cone.
[in] | f | vector to check (assimilated to a force vector). |
Definition at line 58 of file coulomb-friction-cone.hpp.
|
inline |
Difference operator.
Definition at line 48 of file coulomb-friction-cone.hpp.
|
inline |
Comparison operator.
Definition at line 42 of file coulomb-friction-cone.hpp.
|
inline |
Project a vector x onto the cone.
[in] | x | a 3d vector to project. |
Definition at line 72 of file coulomb-friction-cone.hpp.
|
inline |
Project a vector x onto the cone with a matric specified by the diagonal matrix R.
[in] | x | a 3d vector to project. |
[in] | R | a 3d vector representing the diagonal of the weights matrix. The tangential components (the first two) of R should be equal. |
Definition at line 108 of file coulomb-friction-cone.hpp.
Definition at line 197 of file coulomb-friction-cone.hpp.