Nav2 Navigation Stack - rolling  main
ROS 2 Navigation Stack
controller_utils.hpp
1 // Copyright (c) 2020 Shrijit Singh
2 // Copyright (c) 2020 Samsung Research America
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 
16 
17 #ifndef NAV2_UTIL__CONTROLLER_UTILS_HPP_
18 #define NAV2_UTIL__CONTROLLER_UTILS_HPP_
19 
20 #include "geometry_msgs/msg/pose_stamped.hpp"
21 #include "geometry_msgs/msg/point.hpp"
22 #include "nav_msgs/msg/path.hpp"
23 
24 namespace nav2_util
25 {
35 geometry_msgs::msg::Point circleSegmentIntersection(
36  const geometry_msgs::msg::Point & p1,
37  const geometry_msgs::msg::Point & p2,
38  double r);
39 
48 geometry_msgs::msg::PoseStamped getLookAheadPoint(
49  double &, const nav_msgs::msg::Path &,
50  const bool interpolate_after_goal = false);
51 
52 } // namespace nav2_util
53 
54 #endif // NAV2_UTIL__CONTROLLER_UTILS_HPP_