|
16 | 16 |
|
17 | 17 | #include "interpolation/spline_interpolation_points_2d.hpp"
|
18 | 18 | #include "motion_utils/marker/marker_helper.hpp"
|
| 19 | +#include "motion_utils/trajectory/conversion.hpp" |
19 | 20 | #include "obstacle_avoidance_planner/debug_marker.hpp"
|
20 | 21 | #include "obstacle_avoidance_planner/utils/geometry_utils.hpp"
|
21 | 22 | #include "obstacle_avoidance_planner/utils/trajectory_utils.hpp"
|
@@ -236,7 +237,7 @@ void ObstacleAvoidancePlanner::onPath(const Path::ConstSharedPtr path_ptr)
|
236 | 237 | "Backward path is NOT supported. Just converting path to trajectory");
|
237 | 238 |
|
238 | 239 | const auto traj_points = trajectory_utils::convertToTrajectoryPoints(path_ptr->points);
|
239 |
| - const auto output_traj_msg = trajectory_utils::createTrajectory(path_ptr->header, traj_points); |
| 240 | + const auto output_traj_msg = motion_utils::convertToTrajectory(traj_points, path_ptr->header); |
240 | 241 | traj_pub_->publish(output_traj_msg);
|
241 | 242 | return;
|
242 | 243 | }
|
@@ -268,7 +269,7 @@ void ObstacleAvoidancePlanner::onPath(const Path::ConstSharedPtr path_ptr)
|
268 | 269 | createFloat64Stamped(now(), time_keeper_ptr_->getAccumulatedTime()));
|
269 | 270 |
|
270 | 271 | const auto output_traj_msg =
|
271 |
| - trajectory_utils::createTrajectory(path_ptr->header, full_traj_points); |
| 272 | + motion_utils::convertToTrajectory(full_traj_points, path_ptr->header); |
272 | 273 | traj_pub_->publish(output_traj_msg);
|
273 | 274 | }
|
274 | 275 |
|
@@ -656,7 +657,7 @@ void ObstacleAvoidancePlanner::publishDebugData(const Header & header) const
|
656 | 657 |
|
657 | 658 | // publish trajectories
|
658 | 659 | const auto debug_extended_traj =
|
659 |
| - trajectory_utils::createTrajectory(header, debug_data_ptr_->extended_traj_points); |
| 660 | + motion_utils::convertToTrajectory(debug_data_ptr_->extended_traj_points, header); |
660 | 661 | debug_extended_traj_pub_->publish(debug_extended_traj);
|
661 | 662 |
|
662 | 663 | time_keeper_ptr_->toc(__func__, " ");
|
|
0 commit comments