From: dre (dre++at++phoebe.cps.unizar.es)
Date: 01/22/2001 11:59:25
Can I define the axis where the drive motion moves ?
My code look like that
pfiIXformMotionFuncs(Shared->drive, StartMotionCB, StopMotionCB,
NULL);
pfCoord *vista;
pfiGetXformerResetCoord(Shared->drive,vista);
fprintf(stderr, "HOLA X %f Y %f Z
%f\n",vista->xyz[0],vista->xyz[1],vista->xyz[2]);
fprintf(stderr, "h %f p %f
r%f\n",vista->hpr[0],vista->hpr[1],vista->hpr[2]);
pfiIXformDBLimits(Shared->drive, &bbox);
pfiXformerResetCoord(Shared->drive, &(Shared->view));
pfiGetXformerResetCoord(Shared->drive,vista);
fprintf(stderr, "ADIOS X %f Y %f Z
%f\n",vista->xyz[0],vista->xyz[1],vista->xyz[2]);
fprintf(stderr, "h %f p %f
r%f\n",vista->hpr[0],vista->hpr[1],vista->hpr[2]);
pfiResetXformerPosition(Shared->drive);
A trace make the next results
HOLA X 0.000000 Y 0.000000 Z 0.000000
h 0.000000 p 0.000000 r0.000000
ADIOS X 1075.834961 Y 0.000047 Z 268.958740
h 90.000000 p -15.000000 r90.000000
X 1075.834961 Y 0.000047 Z 268.958740
h 90.000000 p -15.000000 r90.000000
All right till now start moving with the mouse..
X 1074.871948 Y 0.000168 Z 268.958740
h 89.986641 p -7.315124 r43.890747
It returns to
X 1080.605469 Y 0.088868 Z 268.958740
h 78.621063 p -0.000075 r0.000449
If I return to resetCoord It goes to the first position
X 1075.834961 Y 0.000047 Z 268.958740
h 90.000000 p -15.000000 r90.000000
Is there a function that I'ven't realized?
Thx in advance
dre
dre++at++phoebe.cps.unizar.es
This archive was generated by hypermail 2b29 : Mon Jan 22 2001 - 12:01:27 PST