From 8640f2322dc0cdcec8b41f762a08ec2876079eac Mon Sep 17 00:00:00 2001 From: Masaki Murooka Date: Fri, 24 May 2024 19:24:12 +0900 Subject: [PATCH] Change the e-skin calibration parameters based on new data. --- src/TactileSensorPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TactileSensorPlugin.cpp b/src/TactileSensorPlugin.cpp index 0af5bf3..ac56283 100644 --- a/src/TactileSensorPlugin.cpp +++ b/src/TactileSensorPlugin.cpp @@ -185,8 +185,8 @@ void TactileSensorPlugin::before(mc_control::MCGlobalController & gc) tf::pointMsgToEigen(cellMsg.pose.position, position); tf::quaternionMsgToEigen(cellMsg.pose.orientation, quat); Eigen::Vector3d normal = -1.0 * quat.toRotationMatrix().col(2); - // \todo Calibrate force measurements from e-Skin - Eigen::Vector3d force = 10.0 * (cellMsg.forces[0] + cellMsg.forces[1] + cellMsg.forces[2]) * normal; + // Edit here to change the conversion calibration from e-Skin tactile measurements to force + Eigen::Vector3d force = 35.0 * (cellMsg.forces[0] + cellMsg.forces[1] + cellMsg.forces[2]) * normal; Eigen::Vector3d moment = position.cross(force); wrench.force() += force; wrench.moment() += moment;