28#include <yarp/os/Portable.h>
29#include <yarp/sig/Vector.h>
30#include <yarp/sig/Matrix.h>
55 static unsigned long ID;
64 yarp::sig::Vector
CoP;
83 void init(
const BodyPart &_bodyPart,
unsigned int _linkNumber,
const yarp::sig::Vector &_CoP,
84 const yarp::sig::Vector &_Mu=yarp::sig::Vector(0),
const yarp::sig::Vector &_Fdir=yarp::sig::Vector(0));
85 bool checkVectorDim(
const yarp::sig::Vector &v,
unsigned int dim,
const std::string &descr=
"");
109 dynContact(
const BodyPart &_bodyPart,
unsigned int _linkNumber,
const yarp::sig::Vector &_CoP,
const yarp::sig::Vector &_Mu);
119 const yarp::sig::Vector &_Mu,
const yarp::sig::Vector &_Fdir);
133 virtual const yarp::sig::Vector&
getForce()
const;
148 virtual const yarp::sig::Vector&
getMoment()
const;
153 virtual const yarp::sig::Vector&
getCoP()
const;
173 virtual unsigned long getId()
const;
197 virtual bool setForce(
const yarp::sig::Vector &_F);
216 virtual bool setMoment(
const yarp::sig::Vector &_Mu);
223 virtual bool setForceMoment(
const yarp::sig::Vector &_F,
const yarp::sig::Vector &_Mu);
235 virtual bool setCoP(
const yarp::sig::Vector &_CoP);
299 virtual bool read(yarp::os::ConnectionReader& connection)
override;
309 virtual bool write(yarp::os::ConnectionWriter& connection)
const override;
319 virtual std::string
toString(
int precision=-1)
const;
This file contains the definition of unique IDs for the body parts and the skin parts of the robot.