scenario_simulator_v2 C++ API
transform.hpp
Go to the documentation of this file.
1 // Copyright 2015 TIER IV, Inc. All rights reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef GEOMETRY__TRANSFORM_HPP_
16 #define GEOMETRY__TRANSFORM_HPP_
17 
18 #include <geometry_msgs/msg/pose.hpp>
19 
20 namespace math
21 {
22 namespace geometry
23 {
30 const geometry_msgs::msg::Pose getRelativePose(
31  const geometry_msgs::msg::Pose & from, const geometry_msgs::msg::Pose & to);
38 const geometry_msgs::msg::Point transformPoint(
39  const geometry_msgs::msg::Pose & pose, const geometry_msgs::msg::Point & point);
47 const geometry_msgs::msg::Point transformPoint(
48  const geometry_msgs::msg::Pose & pose, const geometry_msgs::msg::Pose & sensor_pose,
49  const geometry_msgs::msg::Point & point);
56 std::vector<geometry_msgs::msg::Point> transformPoints(
57  const geometry_msgs::msg::Pose & pose, const std::vector<geometry_msgs::msg::Point> & points);
64 std::vector<geometry_msgs::msg::Point> transformPoints(
65  const geometry_msgs::msg::Pose & pose, const geometry_msgs::msg::Pose & sensor_pose,
66  const std::vector<geometry_msgs::msg::Point> & points);
67 } // namespace geometry
68 } // namespace math
69 
70 #endif // GEOMETRY__TRANSFORM_HPP_
const geometry_msgs::msg::Pose getRelativePose(const geometry_msgs::msg::Pose &from, const geometry_msgs::msg::Pose &to)
Get the relative pose between two poses.
Definition: transform.cpp:26
std::vector< geometry_msgs::msg::Point > transformPoints(const geometry_msgs::msg::Pose &pose, const std::vector< geometry_msgs::msg::Point > &points)
Get transformed points in world frame.
Definition: transform.cpp:105
const geometry_msgs::msg::Point transformPoint(const geometry_msgs::msg::Pose &pose, const geometry_msgs::msg::Point &point)
Get transformed pose in world frame.
Definition: transform.cpp:65
Definition: bounding_box.hpp:32