35 #include "dwb_critics/alignment_util.hpp"
37 #include "tf2/utils.hpp"
38 #include "tf2_geometry_msgs/tf2_geometry_msgs.hpp"
45 geometry_msgs::msg::Pose getForwardPose(
const geometry_msgs::msg::Pose & pose,
double distance)
47 geometry_msgs::msg::Pose forward_pose;
48 double theta = tf2::getYaw(pose.orientation);
49 forward_pose.position.x = pose.position.x + distance * cos(theta);
50 forward_pose.position.y = pose.position.y + distance * sin(theta);
51 forward_pose.position.z = pose.position.z;
52 forward_pose.orientation = pose.orientation;