Skip to content

Commit

Permalink
simplify code
Browse files Browse the repository at this point in the history
Signed-off-by: Masaya Kataoka <[email protected]>
  • Loading branch information
hakuturu583 committed Feb 19, 2024
1 parent d677203 commit 39169fc
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,11 @@ class EntityManager
} else {
entity_status.pose = pose;

/// @note If the entity is pedestrian or mis object, we have to consider matching to crosswalk lanelet.
if (const auto lanelet_pose = toLaneletPose(
pose, parameters.bounding_box, false,
pose, parameters.bounding_box,
entity_status.type.type == traffic_simulator_msgs::msg::EntityType::PEDESTRIAN ||
entity_status.type.type == traffic_simulator_msgs::msg::EntityType::MISC_OBJECT,
getDefaultMatchingDistanceForLaneletPoseCalculation(name));
lanelet_pose) {
entity_status.lanelet_pose = *lanelet_pose;
Expand Down

0 comments on commit 39169fc

Please sign in to comment.