From e54054cd087e433c062a18050459c9a89d9be6e7 Mon Sep 17 00:00:00 2001 From: Rainer Kartmann <rainer.kartmann@kit.edu> Date: Mon, 21 Sep 2020 13:10:49 +0200 Subject: [PATCH] Fixed unused variable warnings --- source/RobotAPI/components/NaturalIKTest/NaturalIKTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/RobotAPI/components/NaturalIKTest/NaturalIKTest.cpp b/source/RobotAPI/components/NaturalIKTest/NaturalIKTest.cpp index 1c4733b05..65fa2f6dd 100644 --- a/source/RobotAPI/components/NaturalIKTest/NaturalIKTest.cpp +++ b/source/RobotAPI/components/NaturalIKTest/NaturalIKTest.cpp @@ -269,6 +269,7 @@ namespace armarx Eigen::VectorXf optimizationGradient(unsigned int id) override { int size = nodeSet->getSize(); + (void) size; Eigen::MatrixXf J = ik->getJacobianMatrix(tcp);//.block(0, 0, 3, size); //Eigen::Vector3f d = eef->getGlobalPose().block<3,1>(0,3) - target; @@ -326,6 +327,7 @@ namespace armarx Eigen::Vector3f shoulder_L = sho1_L->getPositionInRootFrame(); Eigen::Vector3f offset = (shoulder_R + shoulder_L) / 2; + (void) offset; NaturalIK ik_R("Right", shoulder_R, 1); NaturalIK ik_L("Left", shoulder_L, 1); -- GitLab