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"
41 size_t closest_segment_index;
58 const nav_msgs::msg::Path & path,
59 const geometry_msgs::msg::Pose & robot_pose,
60 const size_t start_index = 0,
61 const double search_window_length = std::numeric_limits<double>::max());
72 bool transformPathInTargetFrame(
73 const nav_msgs::msg::Path & input_path,
74 nav_msgs::msg::Path & transformed_path,
75 nav2::TransformBuffer & tf_buffer,
const std::string target_frame,
76 const double transform_timeout = 0.1);
85 unsigned int findFirstPathConstraint(
86 nav_msgs::msg::Path & path,
87 bool enforce_path_inversion,
88 float rotation_threshold);
97 unsigned int removePosesAfterFirstConstraint(
98 nav_msgs::msg::Path & path,
99 bool enforce_path_inversion,
100 float rotation_threshold);
109 nav_msgs::msg::Path & new_path,
110 nav_msgs::msg::Path & old_path);
119 nav_msgs::msg::Path & new_path,
120 nav_msgs::msg::Path & old_path);
Result of searching for the closest segment on a path.