Skip to content

Commit

Permalink
Update simulation/simple_sensor_simulator/src/vehicle_simulation/ego_…
Browse files Browse the repository at this point in the history
…entity_simulation.cpp

Co-authored-by: Masaya Kataoka <[email protected]>
  • Loading branch information
HansRobo and hakuturu583 authored Feb 21, 2024
1 parent 445030b commit fd96593
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fd96593

Please sign in to comment.