Skip to content

Commit

Permalink
fix: Use correct quaternion assigment
Browse files Browse the repository at this point in the history
as voraus robot control publishes the `w` quaternion at the fist index.
  • Loading branch information
philipp-caspers committed Oct 14, 2024
1 parent 58f9495 commit 7262283
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ros_message_creation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ pub fn create_pose_stamped_msg(
z: pose[2],
},
orientation: geometry_msgs::msg::Quaternion {
x: quaternion[0],
y: quaternion[1],
z: quaternion[2],
w: quaternion[3],
x: quaternion[1],
y: quaternion[2],
z: quaternion[3],
w: quaternion[0],
},
},
}
Expand Down Expand Up @@ -133,10 +133,10 @@ mod tests {
z: 3.0,
},
orientation: Quaternion {
x: 4.0,
y: 5.0,
z: 6.0,
w: 7.0,
x: 5.0,
y: 6.0,
z: 7.0,
w: 4.0,
},
},
};
Expand Down

0 comments on commit 7262283

Please sign in to comment.