From fd9659312425d506694cf49f2f1b3a730f2c435a Mon Sep 17 00:00:00 2001 From: Kotaro Yoshimoto Date: Wed, 21 Feb 2024 16:24:05 +0900 Subject: [PATCH] Update simulation/simple_sensor_simulator/src/vehicle_simulation/ego_entity_simulation.cpp Co-authored-by: Masaya Kataoka --- .../src/vehicle_simulation/ego_entity_simulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulation/simple_sensor_simulator/src/vehicle_simulation/ego_entity_simulation.cpp b/simulation/simple_sensor_simulator/src/vehicle_simulation/ego_entity_simulation.cpp index e0ae1aca47c..168ec3321a3 100644 --- a/simulation/simple_sensor_simulator/src/vehicle_simulation/ego_entity_simulation.cpp +++ b/simulation/simple_sensor_simulator/src/vehicle_simulation/ego_entity_simulation.cpp @@ -381,7 +381,7 @@ auto EgoEntitySimulation::calculateEgoPitch() const -> double const auto & prev_point = centerline_points.at(ego_seg_idx); const auto & next_point = centerline_points.at(ego_seg_idx + 1); - // calculate ego yaw angle on lanelet coordinates + // @note Calculate ego yaw angle on lanelet coordinates const double lanelet_yaw = std::atan2(next_point.y - prev_point.y, next_point.x - prev_point.x); const double ego_yaw_against_lanelet = vehicle_model_ptr_->getYaw() - lanelet_yaw;