forked from Patribots4738/ChargedUp2023
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@GalexY727 i mist be going insane but where do we log our robot pose
- Loading branch information
1 parent
b2e8698
commit 295adf4
Showing
2 changed files
with
23 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package frc.robot.util; | ||
|
||
import edu.wpi.first.math.geometry.Pose3d; | ||
import io.github.oblarg.oblog.Logger; | ||
import io.github.oblarg.oblog.annotations.Log; | ||
|
||
public class Pose3dLogger extends Logger{ | ||
@Log | ||
private Pose3d pose = new Pose3d(); | ||
|
||
public Pose3dLogger(Pose3d pose) { | ||
this.pose = pose; | ||
} | ||
|
||
public Pose3d getPose() { | ||
return this.pose; | ||
} | ||
|
||
public void setPose(Pose3d pose) { | ||
this.pose = pose; | ||
} | ||
} |
295adf4
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.