Skip to content

Commit 9fda8e6

Browse files
fixing pose orientations while loading (ros-navigation#3354)
1 parent 63e4072 commit 9fda8e6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nav2_rviz_plugins/src/nav2_panel.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -717,9 +717,9 @@ geometry_msgs::msg::PoseStamped Nav2Panel::convert_to_msg(
717717
msg.pose.position.z = pose[2];
718718

719719
msg.pose.orientation.w = orientation[0];
720-
msg.pose.orientation.w = orientation[1];
721-
msg.pose.orientation.w = orientation[2];
722-
msg.pose.orientation.w = orientation[3];
720+
msg.pose.orientation.x = orientation[1];
721+
msg.pose.orientation.y = orientation[2];
722+
msg.pose.orientation.z = orientation[3];
723723

724724
return msg;
725725
}

0 commit comments

Comments
 (0)