Skip to content

Commit 2144b65

Browse files
authored
Fix flange-to-TCP wrench transformation (#1615)
1 parent 376b4c5 commit 2144b65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ur_robot_driver/src/hardware_interface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,7 +1219,7 @@ void URPositionHardwareInterface::transformForceTorque()
12191219
ft = base_to_flange.M.Inverse() * ft;
12201220

12211221
// Transform the wrench to the tcp frame
1222-
ft = flange_to_tcp * ft;
1222+
ft = flange_to_tcp.Inverse() * ft;
12231223
} else { // CB3
12241224
KDL::Vector vec = KDL::Vector(urcl_target_tcp_pose_[3], urcl_target_tcp_pose_[4], urcl_target_tcp_pose_[5]);
12251225
double angle = vec.Normalize();

0 commit comments

Comments
 (0)