Skip to content
Snippets Groups Projects
Commit 498a379b authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Copy gaussians to robot/global if the original frame matches

parent c68201c5
No related branches found
No related tags found
1 merge request!208Visualize PoseManifoldGaussians
......@@ -109,10 +109,32 @@ namespace armarx::objpose
framed.changeFrame(robot, robot->getRootNode()->getName());
objectPoseRobot = framed.toEigen();
objectPoseRobotGaussian = std::nullopt; // ToDo: Transform covariance matrices
if (objectPoseOriginalGaussian)
{
if (objectPoseOriginalFrame == robot->getRootNode()->getName())
{
objectPoseGlobalGaussian = objectPoseOriginalGaussian;
}
else
{
// ToDo: Transform covariance matrices
}
}
framed.changeToGlobal(robot);
objectPoseGlobal = framed.toEigen();
objectPoseGlobalGaussian = std::nullopt; // ToDo: Transform covariance matrices
objectPoseGlobalGaussian = std::nullopt;
if (objectPoseOriginalGaussian)
{
if (objectPoseOriginalFrame == armarx::GlobalFrame)
{
objectPoseGlobalGaussian = objectPoseOriginalGaussian;
}
else
{
// ToDo: Transform covariance matrices
}
}
robotConfig = robot->getConfig()->getRobotNodeJointValueMap();
robotPose = robot->getGlobalPose();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment