Skip to content

Commit

Permalink
Flip normal direction.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmurooka committed Apr 25, 2024
1 parent bc22999 commit 91faaf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TactileSensorPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void TactileSensorPlugin::before(mc_control::MCGlobalController & gc)
Eigen::Quaterniond quat;
tf::pointMsgToEigen(cellMsg.pose.position, position);
tf::quaternionMsgToEigen(cellMsg.pose.orientation, quat);
Eigen::Vector3d normal = quat.toRotationMatrix().col(2);
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;
Eigen::Vector3d moment = position.cross(force);
Expand Down

0 comments on commit 91faaf7

Please sign in to comment.