15
15
#ifndef AUTOWARE__MOTION_UTILS__TRAJECTORY__CONVERSION_HPP_
16
16
#define AUTOWARE__MOTION_UTILS__TRAJECTORY__CONVERSION_HPP_
17
17
18
+ #include " autoware_internal_planning_msgs/msg/detail/path_with_lane_id__struct.hpp"
18
19
#include " autoware_planning_msgs/msg/detail/path__struct.hpp"
19
20
#include " autoware_planning_msgs/msg/detail/trajectory__struct.hpp"
20
21
#include " autoware_planning_msgs/msg/detail/trajectory_point__struct.hpp"
21
22
#include " std_msgs/msg/header.hpp"
22
- #include " tier4_planning_msgs/msg/detail/path_with_lane_id__struct.hpp"
23
23
24
24
#include < vector>
25
25
@@ -58,7 +58,7 @@ autoware_planning_msgs::msg::Path convertToPath([[maybe_unused]] const T & input
58
58
59
59
template <>
60
60
inline autoware_planning_msgs::msg::Path convertToPath (
61
- const tier4_planning_msgs ::msg::PathWithLaneId & input)
61
+ const autoware_internal_planning_msgs ::msg::PathWithLaneId & input)
62
62
{
63
63
autoware_planning_msgs::msg::Path output{};
64
64
output.header = input.header ;
@@ -80,7 +80,7 @@ TrajectoryPoints convertToTrajectoryPoints([[maybe_unused]] const T & input)
80
80
81
81
template <>
82
82
inline TrajectoryPoints convertToTrajectoryPoints (
83
- const tier4_planning_msgs ::msg::PathWithLaneId & input)
83
+ const autoware_internal_planning_msgs ::msg::PathWithLaneId & input)
84
84
{
85
85
TrajectoryPoints output{};
86
86
for (const auto & p : input.points ) {
@@ -95,19 +95,20 @@ inline TrajectoryPoints convertToTrajectoryPoints(
95
95
}
96
96
97
97
template <class T >
98
- tier4_planning_msgs::msg::PathWithLaneId convertToPathWithLaneId ([[maybe_unused]] const T & input)
98
+ autoware_internal_planning_msgs::msg::PathWithLaneId convertToPathWithLaneId (
99
+ [[maybe_unused]] const T & input)
99
100
{
100
101
static_assert (sizeof (T) == 0 , " Only specializations of convertToPathWithLaneId can be used." );
101
102
throw std::logic_error (" Only specializations of convertToPathWithLaneId can be used." );
102
103
}
103
104
104
105
template <>
105
- inline tier4_planning_msgs ::msg::PathWithLaneId convertToPathWithLaneId (
106
+ inline autoware_internal_planning_msgs ::msg::PathWithLaneId convertToPathWithLaneId (
106
107
const TrajectoryPoints & input)
107
108
{
108
- tier4_planning_msgs ::msg::PathWithLaneId output{};
109
+ autoware_internal_planning_msgs ::msg::PathWithLaneId output{};
109
110
for (const auto & p : input) {
110
- tier4_planning_msgs ::msg::PathPointWithLaneId pp;
111
+ autoware_internal_planning_msgs ::msg::PathPointWithLaneId pp;
111
112
pp.point .pose = p.pose ;
112
113
pp.point .longitudinal_velocity_mps = p.longitudinal_velocity_mps ;
113
114
output.points .emplace_back (pp);
0 commit comments