Skip to content
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

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Draft

Rudimentary geolocation #223

wants to merge 13 commits into from

Conversation

asterbot
Copy link

Rudimentary version of Geolocation

Copy link
Collaborator

@Xierumeng Xierumeng left a 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
Copy link
Collaborator

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
Copy link
Collaborator

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):
Copy link
Collaborator

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(
Copy link
Collaborator

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
Copy link
Collaborator

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.

@asterbot asterbot marked this pull request as draft November 16, 2024 19:49
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.

2 participants