3 #include <VirtualRobot/MathTools.h>
4 #include <VirtualRobot/RobotNodeSet.h>
15 visual_servo_tcp_control::arondto::MoveTCPToTargetPoseAcceptedType
16 GetDefaultParameterization()
18 visual_servo_tcp_control::arondto::MoveTCPToTargetPoseAcceptedType
ret;
19 ret.orientationalAccuracy = 0.01;
20 ret.positionalAccuracy = 25;
26 "VisualServoToTargetPose",
27 "Visual Servo the TCP to a target pose",
30 visual_servo_tcp_control::arondto::MoveTCPToTargetPoseAcceptedType::ToAronType(),
31 GetDefaultParameterization().toAron()};
37 PeriodicSimpleSpecializedSkill<
38 visual_servo_tcp_control::arondto::MoveTCPToTargetPoseAcceptedType>(
48 VisualServoToTargetPose::init(
const SpecializedInitInput& in)
53 tcpControlUnitRequestedOnStart =
true;
56 tcpControlUnitRequestedOnStart =
false;
64 PeriodicSkill::StepResult
65 VisualServoToTargetPose::step(
const SpecializedMainInput& in)
211 VisualServoToTargetPose::exit(
const SpecializedExitInput& in)
215 if (!tcpControlUnitRequestedOnStart)
223 VirtualRobot::RobotIO::RobotDescription::eStructure);
226 ARMARX_WARNING <<
"Unable to get robot from robotstatememory. Abort exit method.";
230 std::string tcpName =
231 robot->getRobotNodeSet(in.parameters.kinematicChainName)->getTCP()->getName();