24using namespace yarp::sig;
25using namespace yarp::math;
80 R=_H.submatrix(0,2,0,2);
87 R=H.submatrix(0,2,0,2);
97 for(
int i=0; i<3; i++)
98 for(
int j=0; j<3; j++)
107 for(
int i=0; i<3; i++)
109 for(
int j=0; j<3; j++)
118 R=_H.submatrix(0,2,0,2);
144void iFrameOnLink::initSFrame()
161 FT=Sensor->
setFT(_FT);
174 Matrix H1 = Link->
getH();
175 Matrix H2 = Sensor->
getH();
239 initiFTransformation();
248 initiFTransformation();
254 initiFTransformation();
256 Limb = _iDynChainWithSensor->
chain;
257 SensorFrame =
new iGenericFrame(_iDynChainWithSensor->
getH().submatrix(0,2,0,2),_iDynChainWithSensor->
getH().submatrix(0,2,0,3).getCol(3));
262 Sensor->
attach(SensorFrame);
278void iFTransformation::initiFTransformation()
333 He=EndEffector->
getH();
338 He=EndEffector->
getH();
342 EndEffector->
setH(_H);
343 He=EndEffector->
getH();
350 for(
int j=0; j<3; j++)
353 Teb(i+3,j+3)=He(i,j);
388 for(
int i=0; i<3;i++)
390 d(i)=(Hs(i,3)-He(i,3));
392 d=He.submatrix(0,2,0,2).transposed()*d;
400 R=He.submatrix(0,2,0,2).transposed()*Hs.submatrix(0,2,0,2);
403 for(
int i=0; i<3;i++)
405 for(
int j=0; j<3;j++)
A Base class for defining a Serial Link Chain, using dynamics and kinematics.
A class for computing force/moment of a sensor placed anywhere in a kinematic chain; its position in ...
yarp::sig::Matrix getH() const
Get the sensor roto-translational matrix defining its position/orientation wrt the link.
unsigned int getSensorLink() const
iDynChain * chain
the iDynChain describing the robotic chain
A Base class for defining the FT sensor over a generic link of a kinematic chain inherited by iKinLim...
yarp::sig::Vector getFT()
void setSensor(int _l, const yarp::sig::Vector &_FT)
void attach(iKin::iKinChain *_Limb)
void setFT(const yarp::sig::Vector &_FT)
A Base class for defining the Transformation of a Wrench from a frame to another.
yarp::sig::Vector setFT(const yarp::sig::Vector &_FT)
void setH(const yarp::sig::Matrix &_R, double _x, double _y, double _z)
void setR(const yarp::sig::Matrix &_R)
void setP(double _x, double _y, double _z)
A Base class for defining a Serial Link Chain.
yarp::sig::Matrix getH(const unsigned int i, const bool allLink=false)
Returns the rigid roto-translation matrix from the root reference frame to the ith frame in Denavit-H...