Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add unit tests that check algorithm outputs

Đang mở
#103 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 9 ngày

@kocaemre đang làm issue này rồi.

Từ ngày 4/10/2026.

  • #140 của @kocaemre — đang mở

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python

Hướng nghiên cứu

Read test/test_polar_histogram.py for the project’s testing example, then choose one component from the listed localizers, controllers, planners, maps, search algorithms, or detectors. Build small tests with known inputs and expected outputs; for example, check A* path length, straight-ahead Pure Pursuit steering, or kd-tree results against brute force. Done means the chosen component has focused output-checking unit tests; coordinate the component in the issue and open one PR for it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement help wanted

Problem

Most tests are smoke tests that only run main() with show_plot = False. They don't check outputs, so wrong results pass (e.g. an obstacle yaw bug or a planner that finds a bad path). There are no direct unit tests for:

  • Localizers: EKF, UKF, particle filter
  • Controllers: Pure Pursuit, Adaptive Pure Pursuit, Stanley, Rear Wheel Feedback, LQR, MPC, MPPI
  • Planners: A*, Dijkstra, RRT family, PRM and others
  • Maps and search: grid map, binary occupancy grid, cost/NDT/potential maps, kd-tree
  • Detectors: L-shape fitting, robust least squares

Expected fix

Add small unit tests that check outputs on simple inputs where the answer is known, for example:

  • A* on an empty grid returns a path of the expected length
  • Pure Pursuit returns zero steering when the target point is straight ahead
  • kd-tree nearest neighbor matches a brute-force search

Please open one PR per component, and mention which component you are working on in this issue to avoid duplicate work. See test/test_polar_histogram.py for an example.

Ngôn ngữ chính
Python
Star
1.9k
Fork
313
Merge trung bình
9 ngày 10 giờ
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ShisatoYano/AutonomousVehicleControlBeginnersGuide

Tất cả issue của ShisatoYano/AutonomousVehicleControlBeginnersGuide

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.