-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rudimentary geolocation #223
base: main
Are you sure you want to change the base?
Conversation
Added basic class we can build on and just copied the unit tests for now
Fixed imports and moved files in right folders
…e it more rudimentary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed.
@@ -0,0 +1,71 @@ | |||
""" | |||
Converts image space into world space in a more rudimentary sense |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does rudimentary sense
mean?
|
||
from .. import detection_in_world | ||
from .. import merged_odometry_detections | ||
from .geolocation import Geolocation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove. Rudimentary geolocation should be able to work even if geolocation.py
is deleted.
from .geolocation import Geolocation | ||
|
||
|
||
class RudimentaryGeolocation(Geolocation): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove inheritance.
dtype=np.float32, | ||
) | ||
|
||
result, perspective_transform_matrix = self.__get_perspective_transform_matrix( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is overkill and defeats the purpose of the task. Pull __ground_intersection_from_vector()
and other required helper functions into a separate file, and import that instead.
# Get Pylance to stop complaining | ||
assert perspective_transform_matrix is not None | ||
|
||
# pylint: disable=duplicate-code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Disabling the Pylint must include an explanation as comment.
Also, linter must be reenabled.
Rudimentary version of Geolocation