scenario_simulator_v2 C++ API
distance.hpp
Go to the documentation of this file.
1 
12 // Copyright 2015 TIER IV.inc. All rights reserved.
13 //
14 // Licensed under the Apache License, Version 2.0 (the "License");
15 // you may not use this file except in compliance with the License.
16 // You may obtain a copy of the License at
17 //
18 // http://www.apache.org/licenses/LICENSE-2.0
19 //
20 // Unless required by applicable law or agreed to in writing, software
21 // distributed under the License is distributed on an "AS IS" BASIS,
22 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 // See the License for the specific language governing permissions and
24 // limitations under the License.
25 
26 #ifndef GEOMETRY__DISTANCE_HPP_
27 #define GEOMETRY__DISTANCE_HPP_
28 
29 #include <geometry_msgs/msg/pose.hpp>
30 #include <vector>
31 
32 namespace math
33 {
34 namespace geometry
35 {
36 double getDistance(const geometry_msgs::msg::Point & p0, const geometry_msgs::msg::Point & p1);
37 double getDistance(const geometry_msgs::msg::Pose & p0, const geometry_msgs::msg::Point & p1);
38 double getDistance(const geometry_msgs::msg::Point & p0, const geometry_msgs::msg::Pose & p1);
39 double getDistance(const geometry_msgs::msg::Pose & p0, const geometry_msgs::msg::Pose & p1);
40 double getDistance2D(
41  const std::vector<geometry_msgs::msg::Point> & polygon0,
42  const std::vector<geometry_msgs::msg::Point> & polygon1);
43 } // namespace geometry
44 } // namespace math
45 
46 #endif // GEOMETRY__DISTANCE_HPP_
double getDistance(const geometry_msgs::msg::Point &p0, const geometry_msgs::msg::Point &p1)
Definition: distance.cpp:37
double getDistance2D(const std::vector< geometry_msgs::msg::Point > &polygon0, const std::vector< geometry_msgs::msg::Point > &polygon1)
Definition: distance.cpp:57
Definition: bounding_box.hpp:32