Skip to content

Commit

Permalink
Remove unused function and update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymonParapura committed Dec 10, 2024
1 parent 80c5c89 commit 547cb0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ class DetectionSensorBase
private:
std::optional<math::geometry::Plane> ego_plane_opt_;
std::optional<geometry_msgs::msg::Pose> ego_plane_pose_opt_;
auto hasEgoOrientationChanged() const -> bool;
};

template <typename T, typename U = autoware_perception_msgs::msg::TrackedObjects>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ auto DetectionSensorBase::isOnOrAboveEgoPlane(
ego_pose_ros.orientation, ego_plane_pose_opt_->orientation) > rotation_threshold_;
};

// if other entity is just above ego return true
// if other entity is at the same altitude as Ego or within max_downward_z_offset_ below Ego
if (entity_pose.position().z() >= (ego_pose.position().z() - max_downward_z_offset_)) {
return true;
// otherwise check if other entity is above ego plane
Expand Down

0 comments on commit 547cb0a

Please sign in to comment.