Skip to content

Commit

Permalink
fix(behavior_velocity_planner): fix inversion of object orientation i…
Browse files Browse the repository at this point in the history
…n intersection planner (#280)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
  • Loading branch information
tkimura4 authored and TomohitoAndo committed Jan 29, 2022
1 parent 160c26f commit dbd022c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ static geometry_msgs::msg::Pose getObjectPoseWithVelocityDirection(
double yaw, pitch, roll;
tf2::getEulerYPR(obj_pose.orientation, yaw, pitch, roll);
tf2::Quaternion inv_q;
inv_q.setRPY(roll, pitch, -yaw);
inv_q.setRPY(roll, pitch, yaw + M_PI);
obj_pose.orientation = tf2::toMsg(inv_q);
return obj_pose;
}
Expand Down

0 comments on commit dbd022c

Please sign in to comment.