Skip to content

Commit

Permalink
Removed shifted orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
horverno committed Apr 8, 2022
1 parent cea4de5 commit 67db9dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/duro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ void orientation_callback(u16 sender_id, u8 len, u8 msg[], void *context)
double z = orimsg->z * pow(2, -31);
tf2::Quaternion tf_orig(x, y, z, w);
tf2::Quaternion tf_rot, tf_aligned;
tf_rot.setRPY(0.0, 0.0, -M_PI_2 - 0.02175); // left-handerd / right handed rotation
tf_rot.setRPY(0.0, 0.0, -M_PI_2); // left-handerd / right handed rotation
tf_aligned = tf_rot * tf_orig; // left-handerd / right handed rotation
pose_msg.pose.orientation.w = tf_aligned.w() * -1;
pose_msg.pose.orientation.x = tf_aligned.y(); // left-handerd / right handed orientation
Expand Down

0 comments on commit 67db9dc

Please sign in to comment.