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

Replace the 8 vehicle part classes with one configurable part class

Đang mở
#121 0 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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
62/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
robotics

Hướng nghiên cứu

Start in src/components/vehicle/ by reading the eight named part classes, then inspect FourWheelsVehicle and test_vehicle_specification.py. Compare each part’s outline, mounting offset, and steering behavior to see how the vehicle specification creates them. Done means all eight parts are represented clearly through one configurable class, the vehicle looks identical in all simulations, and the specification and smoke tests pass.

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

Mô tả

refactoring

Problem

src/components/vehicle/ has 8 almost identical classes (FrontLeftTire, FrontRightTire, RearLeftTire, RearRightTire, FrontAxle, RearAxle, Body, Chassis), about 45 lines each. They differ only in their outline, mounting offset and whether they rotate with the steering angle.

Expected fix

One class, e.g. VehiclePart(outline_xy, offset_x_m, offset_y_m, steerable), and FourWheelsVehicle creates the 8 parts from the specification. Keep it easy to read: a learner should still see clearly which part is which.

Done when

The vehicle looks identical in all simulations and test_vehicle_specification.py/smoke tests pass.

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.