Feature suggestion - Common interface for road objects
See original GitHub issueAs we agree, using objects of type Obstacle
isn’t meaningful and convenient for goals. Also, the Obstacle
class inherits from Vehicle
and contains a massive amount of unnecessary overload.
Here is my suggestion for the new interface:
Common properties:
- position
- shape (we can stick with rectangular for now)
- heading_angle (for rotation ability)
- dimensions (length and width for rectangle, radius for circle)
- lane
- road
Common methods:
- make_on_lane()
Some inherited classes can be Obstacle
and Landmark
(or Goal
).
I suggest refactoring check_collision()
method the way that it checks intersections with Landmark
instances regardless of the COLLISION_ENABLED
property.
Please feel free to add your thoughts to complete the idea.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Why Do You Need To Know Interface Fundamentals?
An interface allows efficient means of generalizing attributes. It allows communicating affordances instead of having to consider the many types ...
Read more >Feature Toggles (aka Feature Flags) - Martin Fowler
In this article on Feature Toggling we'll start off with a short story showing some typical scenarios where Feature Toggles are helpful.
Read more >On-Road Evaluation of In-vehicle Interface Characteristics and ...
Objective:This study investigated the impact of in-vehicle interface characteristics on drivers' multitasking performance measures relating to visual ...
Read more >Enhanced Object Tracking - Cisco
The Enhanced Object Tracking feature separates the tracking mechanism ... To provide a common interface to tracking clients, route metric ...
Read more >java - Should I create interfaces for data transfer objects?
The general answer is no, because you should never add code without having a specific, concrete reason for it, and there is no...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, good point thank you!
Please do, I’ll review the pull request and make changes if necessary.