25 #include <boost/foreach.hpp>
26 #include <MemoryX/interface/components/LongtermMemoryInterface.h>
35 armarx::SharedRobotNodeInterfacePrx handNode = currentRobotSnapshot->getRobotNode(
handNodeName);
41 std::string parentName = handNode->getParent();
43 while (!parentName.empty())
45 armarx::SharedRobotNodeInterfacePrx node = currentRobotSnapshot->getRobotNode(parentName);
47 if (node->getType() == armarx::eRevolute)
52 parentName = node->getParent();
68 armarx::PosePtr oldHandNodePose = armarx::PosePtr::dynamicCast(poseAtLastLocalization->referenceRobot->getRobotNode(
handNodeName)->getGlobalPose());
69 armarx::PosePtr oldGlobalPoseOfFrame = armarx::PosePtr::dynamicCast(poseAtLastLocalization->referenceRobot->getRobotNode(poseAtLastLocalization->frame)->getGlobalPose());
75 unsigned int index = 0;
78 proprioception(
index) = currentRobotSnapshot->getRobotNode(nodeName)->getJointValue();
82 Eigen::VectorXf predictionXf = this->
model->predict(proprioception);
94 this->poseAtLastLocalization = poseAtLastLocalization;
95 this->globalRobotPoseAtLastLocalization = globalRobotPoseAtLastLocalization;
97 Eigen::Matrix4f mat = armarx::LinkedPosePtr::dynamicCast(this->poseAtLastLocalization)->toEigen();
102 armarx::SharedRobotNodeInterfacePrx handNode = poseAtLastLocalization->referenceRobot->getRobotNode(
handNodeName);
106 unsigned int index = 0;
109 proprioception(
index) = poseAtLastLocalization->referenceRobot->getRobotNode(nodeName)->getJointValue();
113 this->
model->online(proprioception, shape);
120 if (uncertaintyAtLastLocalization)
122 return uncertaintyAtLastLocalization;