42#include <yarp/sig/Vector.h>
43#include <yarp/sig/Matrix.h>
44#include <yarp/math/Math.h>
79double dot(
const yarp::sig::Matrix &
A,
int colA,
80 const yarp::sig::Matrix &B,
int colB);
91inline double norm2(
const yarp::sig::Matrix &M,
int col)
93 return dot(M,col,M,col);
105double norm(
const yarp::sig::Matrix &M,
int col);
118yarp::sig::Vector
cross(
const yarp::sig::Matrix &
A,
int colA,
119 const yarp::sig::Matrix &B,
int colB);
131yarp::sig::Vector
Dcross(
const yarp::sig::Vector &a,
const yarp::sig::Vector &Da,
132 const yarp::sig::Vector &b,
const yarp::sig::Vector &Db);
147yarp::sig::Vector
Dcross(
const yarp::sig::Matrix &
A,
const yarp::sig::Matrix &DA,
int colA,
148 const yarp::sig::Matrix &B,
const yarp::sig::Matrix &DB,
int colB);
double dot(const yarp::sig::Matrix &A, int colA, const yarp::sig::Matrix &B, int colB)
Returns the dot product between two vectors given in the form: matrix(:,col).
double norm2(const yarp::sig::Matrix &M, int col)
Returns the squared norm of the vector given in the form: matrix(:,col).
double norm(const yarp::sig::Matrix &M, int col)
Returns the norm of the vector given in the form: matrix(:,col).
yarp::sig::Vector Dcross(const yarp::sig::Vector &a, const yarp::sig::Vector &Da, const yarp::sig::Vector &b, const yarp::sig::Vector &Db)
Returns the derivatice of cross product between two vectors.
yarp::sig::Vector cross(const yarp::sig::Matrix &A, int colA, const yarp::sig::Matrix &B, int colB)
Returns the cross product between two vectors given in the form: matrix(:,col).
constexpr double CTRL_PI
The PI constant.
constexpr double CTRL_RAD2DEG
180/PI.
constexpr double CTRL_DEG2RAD
PI/180.
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.