Skip to content

Commit

Permalink
Fixed orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
chacalnoir committed Nov 13, 2023
1 parent ae959f2 commit 2a407a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/navsat_transform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ namespace RobotLocalization
double enu_heading_rad = nav_pvt_heading_rad;
if(ned_to_enu_nav_pvt_)
{
enu_heading_rad = PI / 2.0 - nav_pvt_heading_rad;
enu_heading_rad = PI - nav_pvt_heading_rad;
}
quat.setRPY(0.0, 0.0, enu_heading_rad);
request.geo_pose.orientation = tf2::toMsg(quat);
Expand Down Expand Up @@ -937,7 +937,7 @@ namespace RobotLocalization
double enu_heading_rad = nav_pvt_heading_rad;
if(ned_to_enu_nav_pvt_)
{
enu_heading_rad = PI / 2.0 - nav_pvt_heading_rad;
enu_heading_rad = PI - nav_pvt_heading_rad;
}
orientation_quat.setRPY(0.0, 0.0, enu_heading_rad);

Expand Down

0 comments on commit 2a407a3

Please sign in to comment.