27 #include "VisualServoGroupStatechartContext.generated.h"
31 using namespace VisualServoGroup;
49 VisualServoGroupStatechartContext* context = getContext<VisualServoGroupStatechartContext>();
55 float posUncertainty = objectInstance->get<
float>(
"uncertaintyOfPosition");
56 ARMARX_INFO <<
"position Uncertainty " << posUncertainty;
57 FramedPosePtr objectPose =
new FramedPose(orientation->toEigen(), position->toEigen(), position->getFrame(), position->agent);
59 ARMARX_VERBOSE <<
"Object pose from localization: " << objectPose->output();
62 objectPose->changeFrame(context->getRobot(), context->getRobot()->getRootNode()->getName());
64 context->getDebugDrawerTopic()->setPoseDebugLayerVisu(
"objectPose", objectPose->toGlobal(getRobot()));
65 out.setObjectPose(objectPose);
66 emitObjectPoseAvailable();
93 return "GetObjectPose";