29 #ifndef SWRI_ROUTE_UTIL_UTIL_H_ 30 #define SWRI_ROUTE_UTIL_UTIL_H_ 32 #include <marti_nav_msgs/RoutePosition.h> 48 const std::string &target_frame);
71 bool extrapolate_before_start,
72 bool extrapolate_past_end);
82 const marti_nav_msgs::RoutePosition &window_start,
83 const marti_nav_msgs::RoutePosition &window_end);
105 const marti_nav_msgs::RoutePosition &position);
113 const marti_nav_msgs::RoutePosition &position,
114 bool allow_extrapolation);
120 const marti_nav_msgs::RoutePosition &start,
121 const marti_nav_msgs::RoutePosition &end,
132 std::vector<double> &distances,
133 const marti_nav_msgs::RoutePosition &start,
134 const std::vector<marti_nav_msgs::RoutePosition> &ends,
141 const marti_nav_msgs::RoutePosition &start,
142 const marti_nav_msgs::RoutePosition &end);
144 #endif // SWRI_ROUTE_UTIL_UTIL_H_
bool normalizeRoutePosition(marti_nav_msgs::RoutePosition &normalized_position, const Route &route, const marti_nav_msgs::RoutePosition &position)
void transform(Route &route, const swri_transform_util::Transform &transform, const std::string &target_frame)
bool routeDistances(std::vector< double > &distances, const marti_nav_msgs::RoutePosition &start, const std::vector< marti_nav_msgs::RoutePosition > &ends, const Route &route)
bool interpolateRoutePosition(RoutePoint &point, const Route &route, const marti_nav_msgs::RoutePosition &position, bool allow_extrapolation)
bool projectOntoRoute(marti_nav_msgs::RoutePosition &position, const Route &route, const tf::Vector3 &point, bool extrapolate_before_start, bool extrapolate_past_end)
void fillOrientations(Route &route, const tf::Vector3 &up=tf::Vector3(0.0, 0.0, 1.0))
bool projectOntoRouteWindow(marti_nav_msgs::RoutePosition &position, const Route &route, const tf::Vector3 &point, const marti_nav_msgs::RoutePosition &window_start, const marti_nav_msgs::RoutePosition &window_end)
bool routeDistance(double &distance, const marti_nav_msgs::RoutePosition &start, const marti_nav_msgs::RoutePosition &end, const Route &route)
void projectToXY(Route &route)
bool extractSubroute(Route &sub_route, const Route &route, const marti_nav_msgs::RoutePosition &start, const marti_nav_msgs::RoutePosition &end)