From ff83a9e184c0e2d49fcf71a491d6365a9bf7aa01 Mon Sep 17 00:00:00 2001 From: satoshi-ota Date: Fri, 7 Mar 2025 18:30:17 +0900 Subject: [PATCH] fix(autoware_test_utils): set timestamp in building trajectory msg Signed-off-by: satoshi-ota --- .../c8eb48c1a01df7f5d23d4fbae368bc825e09d018.json | 1 + .../include/autoware_test_utils/autoware_test_utils.hpp | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 node_modules/.cache/prettier/.prettier-caches/c8eb48c1a01df7f5d23d4fbae368bc825e09d018.json diff --git a/node_modules/.cache/prettier/.prettier-caches/c8eb48c1a01df7f5d23d4fbae368bc825e09d018.json b/node_modules/.cache/prettier/.prettier-caches/c8eb48c1a01df7f5d23d4fbae368bc825e09d018.json new file mode 100644 index 0000000000..6ed2d2c3f0 --- /dev/null +++ b/node_modules/.cache/prettier/.prettier-caches/c8eb48c1a01df7f5d23d4fbae368bc825e09d018.json @@ -0,0 +1 @@ +{"079529d90ff0ff6dcc54c6f39def24f5f2dc3c5d":{"files":{"testing/autoware_pyplot/README.md":["jn4CUU3tAbol7VexOyzQ9Z0d52U=",true],"planning/autoware_path_generator/param/path_generator_parameters.yaml":["KfQT4E0THpYGhVLWhDzk+cD7IZE=",true],".github/workflows/spell-check-daily.yaml":["KM5E8yPfOajimIHmSsYQTBBWEQs=",true],"testing/autoware_test_utils/config/path_with_lane_id_data.yaml":["nQAw9vjV24X0LWBoyEvc2Avnjno=",true]},"modified":1741339667261}} \ No newline at end of file diff --git a/testing/autoware_test_utils/include/autoware_test_utils/autoware_test_utils.hpp b/testing/autoware_test_utils/include/autoware_test_utils/autoware_test_utils.hpp index a15fb1fc77..12f31b7ac2 100644 --- a/testing/autoware_test_utils/include/autoware_test_utils/autoware_test_utils.hpp +++ b/testing/autoware_test_utils/include/autoware_test_utils/autoware_test_utils.hpp @@ -374,6 +374,7 @@ T generateTrajectory( using Point = typename T::_points_type::value_type; T traj; + traj.header.stamp = rclcpp::Clock{RCL_ROS_TIME}.now(); for (size_t i = 0; i < num_points; ++i) { const double theta = init_theta + static_cast(i) * delta_theta; const double x = static_cast(i) * point_interval * std::cos(theta); @@ -399,6 +400,7 @@ inline PathWithLaneId generateTrajectory( const double init_theta, const double delta_theta, const size_t overlapping_point_index) { PathWithLaneId traj; + traj.header.stamp = rclcpp::Clock{RCL_ROS_TIME}.now(); for (size_t i = 0; i < num_points; i++) { const double theta = init_theta + static_cast(i) * delta_theta;