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 cfed625 commit 445030b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ auto EgoEntitySimulation::getMatchedLaneletPoseFromEntityStatus(
const traffic_simulator_msgs::msg::EntityStatus & status, const double entity_width) const
-> std::optional<traffic_simulator_msgs::msg::LaneletPose>
{
// the lanelet matching algorithm should be equivalent to the one used in EgoEntity::setMapPose
// @note The lanelet matching algorithm should be equivalent to the one used in EgoEntity::setMapPose
const auto unique_route_lanelets =
traffic_simulator::helper::getUniqueValues(autoware->getRouteLanelets());
const auto matching_length = [entity_width] { return entity_width * 0.5 + 1.0; }();
Expand Down

0 comments on commit 445030b

Please sign in to comment.