15 #ifndef NAV2_UTIL__PATH_UTILS_HPP_
16 #define NAV2_UTIL__PATH_UTILS_HPP_
23 #include "geometry_msgs/msg/pose.hpp"
24 #include "geometry_msgs/msg/pose_stamped.hpp"
25 #include "geometry_msgs/msg/point.hpp"
26 #include "geometry_msgs/msg/quaternion.hpp"
27 #include "nav_msgs/msg/path.hpp"
28 #include "nav2_ros_common/tf2_factories.hpp"
29 #include "tf2/utils.hpp"
30 #include "angles/angles.h"
31 #include "nav2_util/geometry_utils.hpp"
32 #include "nav2_util/robot_utils.hpp"
42 size_t closest_segment_index;
59 const nav_msgs::msg::Path & path,
60 const geometry_msgs::msg::Pose & robot_pose,
61 const size_t start_index = 0,
62 const double search_window_length = std::numeric_limits<double>::max());
73 bool transformPathInTargetFrame(
74 const nav_msgs::msg::Path & input_path,
75 nav_msgs::msg::Path & transformed_path,
76 nav2::TransformBuffer & tf_buffer,
const std::string target_frame,
77 const double transform_timeout = 0.1);
86 unsigned int findFirstPathConstraint(
87 nav_msgs::msg::Path & path,
88 bool enforce_path_inversion,
89 float rotation_threshold);
98 unsigned int removePosesAfterFirstConstraint(
99 nav_msgs::msg::Path & path,
100 bool enforce_path_inversion,
101 float rotation_threshold);
110 nav_msgs::msg::Path & new_path,
111 nav_msgs::msg::Path & old_path);
120 nav_msgs::msg::Path & new_path,
121 nav_msgs::msg::Path & old_path);
Result of searching for the closest segment on a path.