Skip to content

Commit

Permalink
tcp in thread
Browse files Browse the repository at this point in the history
  • Loading branch information
jgvictores committed Sep 8, 2023
1 parent d5de4c5 commit 3a535a5
Showing 1 changed file with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,6 @@ class OpenraveYarpIroning : public OpenRAVE::ModuleBase,
probot->SetActiveManipulator("rightArm");
_pRobotManip = probot->GetManipulator("rightArm");

OpenRAVE::Transform ee = _pRobotManip->GetEndEffector()->GetTransform();
OpenRAVE::Transform tool;
//tool.trans = Vector(0.0,0.0,1.3);
tool.rot = OpenRAVE::geometry::quatFromAxisAngle(OpenRAVE::Vector(0,0,0)); //-- Converts an axis-angle rotation into a quaternion.
tool.rot = ee.rot;
OpenRAVE::Transform tcp = ee * tool;
//Transform tcp = ee;
yCInfo(ORYPS) << "TCP at" << tcp.trans.x << tcp.trans.y << tcp.trans.z;

{
// lock the environment!
#if OPENRAVE_VERSION >= OPENRAVE_VERSION_COMBINED(0, 68, 0)
Expand Down Expand Up @@ -197,7 +188,16 @@ class OpenraveYarpIroning : public OpenRAVE::ModuleBase,

void run() override
{
yCInfo(ORYPS) << "thread";
//yCInfo(ORYPS) << "thread";

OpenRAVE::Transform ee = _pRobotManip->GetEndEffector()->GetTransform();
OpenRAVE::Transform tool;
//tool.trans = Vector(0.0,0.0,1.3);
tool.rot = OpenRAVE::geometry::quatFromAxisAngle(OpenRAVE::Vector(0,0,0)); //-- Converts an axis-angle rotation into a quaternion.
tool.rot = ee.rot;
OpenRAVE::Transform tcp = ee * tool;
//Transform tcp = ee;
yCInfo(ORYPS) << "TCP at" << tcp.trans.x << tcp.trans.y << tcp.trans.z;

// Get new object (pen) position
/*T_base_object = _objPtr->GetTransform();
Expand Down

0 comments on commit 3a535a5

Please sign in to comment.