Skip to content

Commit

Permalink
Flip the "pose error" calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyZe authored and destogl committed Oct 26, 2021
1 parent 9dfb76c commit 1546a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admittance_controller/src/admittance_rule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ controller_interface::return_type AdmittanceRule::update(
std::array<double, 6> pose_error;

for (auto i = 0u; i < 6; ++i) {
pose_error[i] = target_pose_control_frame_arr_[i] - current_pose_control_frame_arr_[i];
pose_error[i] = current_pose_control_frame_arr_[i] - target_pose_control_frame_arr_[i];
if (i >= 3) {
pose_error[i] = angles::normalize_angle(pose_error[i]);
}
Expand Down

0 comments on commit 1546a58

Please sign in to comment.