generated from Choate-Robotics/7407-DriveCode-Template-v2
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from toolkit.sensors.odometry.vision_estimator import VisionEstimator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from wpimath.geometry import Pose3d | ||
from wpilib import Timer | ||
|
||
|
||
class VisionEstimator: | ||
""" | ||
An estimator (e.g. limelight, photon-vision) that returns a list of robot poses relative to the field. | ||
""" | ||
|
||
def __init__(self): | ||
pass | ||
|
||
def get_estimated_robot_pose(self) -> list[Pose3d, float] | None: | ||
""" | ||
Returns the robot's pose relative to the field, estimated by the vision system. Override this method. | ||
:return: Vision system estimate of robot pose along with the associated timestamp. | ||
:rtype: list[Pose3d, seconds: float] | None | ||
""" | ||
raise NotImplementedError |