Skip to content

Remove unused modules#10

Merged
SamuelFoo merged 6 commits into
mainfrom
clean
May 27, 2026
Merged

Remove unused modules#10
SamuelFoo merged 6 commits into
mainfrom
clean

Conversation

@SamuelFoo

@SamuelFoo SamuelFoo commented May 27, 2026

Copy link
Copy Markdown
Member

What changed

Removes stale files from the bb_filters package:

Why each file can be deleted

  • log.py: just implements logger from rclpy to "avoid depending on rclpy".
  • min_bounding_rect.py: use cv2.boundingRect or cv2.minAreaRect
  • detected_object_2d_vis.cpp: only converts 2D detections into visualization_msgs/MarkerArray debug markers. It does not filter, track, label, or publish perception outputs; with Foxglove handling visualization, this marker adapter is no longer needed in bb_filters.
  • detected_object_3d_labelling.cpp: the C++ node is not built, registered, or installed by CMakeLists.txt; it is a strict subset of scripts/detected_object_3d_labelling.py.
  • detected_object_3d_vis.cpp: only converts 3D detections into visualization_msgs/MarkerArray debug markers and optional visualization TFs. With Foxglove handling visualization, this marker adapter is no longer part of the runtime perception pipeline.
  • detect_red_buoy.py: does not log or publish anything. Appears to be half-written. Just reads detection data, which is obsolete and should be done in pose_estimator.
  • placard_pose_estimator.py: simple quad pose estimator.
  • pinger_gate_detection.py: counts frequency of DoA ranges. Too specific and not useful otherwise. Can be easily re-written to be more general.
  • robotx_placard_detection.py: is similar in purpose to the generic best-fit-quad pose estimator in pose_estimator: both estimate an object pose from a quadrilateral image observation and camera geometry. The archived placard node adds HSV red detection, but that should be in a separate image_processing node.

@SamuelFoo SamuelFoo changed the title [codex] remove unused logging and bounding rectangle modules Remove unused modules May 27, 2026
@SamuelFoo SamuelFoo self-assigned this May 27, 2026
@SamuelFoo SamuelFoo requested a review from wes-w-z-h May 27, 2026 01:17
SamuelFoo added 3 commits May 27, 2026 03:26
- Moved clustering utilities in `bb_filters/utils/cluster/` including `cluster.py` for HDBSCAN clustering and `cluster_tf_action_base.py` for action server implementation.
- Added utility functions for pose handling in `bb_filters/utils/pose.py`.
- Refactored launch files `asv4_filters.launch.py` and `asv4_filters_sim.launch.py` to remove deprecated nodes and update topic names.
- Updated `package.xml` to reflect new dependencies and changed build type to `ament_python`.
- Created `setup.py` and `setup.cfg` for package installation and configuration.
- Removed unused scripts and adjusted test imports to align with the new package structure.
@SamuelFoo SamuelFoo marked this pull request as ready for review May 27, 2026 01:56
@SamuelFoo SamuelFoo merged commit 84d7fc0 into main May 27, 2026
1 check passed
@SamuelFoo SamuelFoo deleted the clean branch May 27, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant