32 #include <RobotAPI/interface/components/ViewSelectionInterface.h>
36 using namespace VisualServoGroup;
51 ChannelRefPtr TwoArmVisualServoTest::getChannelRef(std::string objectName)
54 VisualServoGroupStatechartContext* context = getContext<VisualServoGroupStatechartContext>();
55 ChannelRefBasePtr memoryChannel = context->getObjectMemoryObserver()->requestObjectClassRepeated(objectName, 250, armarx::DEFAULT_VIEWTARGET_PRIORITY);
59 memoryChannel->validate();
60 return ChannelRefPtr::dynamicCast(memoryChannel);
72 std::string leftObjectName = in.getLeftObjectName();
73 local.setLeftObjectMemoryChannel(getChannelRef(leftObjectName));
75 std::string rightObjectName = in.getRightObjectName();
76 if (leftObjectName != rightObjectName)
78 local.setRightObjectMemoryChannel(getChannelRef(rightObjectName));
82 local.setRightObjectMemoryChannel(local.getLeftObjectMemoryChannel());
86 std::string leftHandNameInMemory = in.getLeftHandNameInMemory();
87 local.setLeftHandMemoryChannel(getChannelRef(leftHandNameInMemory));
89 std::string rightHandNameInMemory = in.getRightHandNameInMemory();
90 local.setRightHandMemoryChannel(getChannelRef(rightHandNameInMemory));
92 VisualServoGroupStatechartContext* context = getContext<VisualServoGroupStatechartContext>();
97 std::string frameName = context->getRobotStateComponent()->getSynchronizedRobot()->getRootNode()->getName();
98 std::string agentName = context->getRobotStateComponent()->getSynchronizedRobot()->getName();
99 Eigen::Vector3f targetPos;
104 context->getViewSelection()->addManualViewTarget(viewTarget);
109 context->getViewSelection()->addManualViewTarget(viewTarget);
114 context->getViewSelection()->addManualViewTarget(viewTarget);
119 context->getViewSelection()->addManualViewTarget(viewTarget);