Robot Core Documentation
Loading...
Searching...
No Matches
robotCore.apriltags.ApriltagLocation Class Reference

This class specifies the location and orientation of an individual Apriltag. More...

Public Member Functions

 ApriltagLocation (int tag, double x, double y, double angle)
 
Pose2d toPose2d ()
 

Public Attributes

int m_tag
 
double m_xMeters
 
double m_yMeters
 
double m_targetAngleDegrees
 

Detailed Description

This class specifies the location and orientation of an individual Apriltag.

Author
John Gaby

Constructor & Destructor Documentation

◆ ApriltagLocation()

robotCore.apriltags.ApriltagLocation.ApriltagLocation ( int tag,
double x,
double y,
double angle )
Parameters
tag- Specifies the Apriltag number
x- Specifies the x position of the tag on the field in meters
y- Specifies the y position of the tag on the field in meters
angle- Specifies the orientation of the tag in degrees

Member Function Documentation

◆ toPose2d()

Pose2d robotCore.apriltags.ApriltagLocation.toPose2d ( )

Returns the position of the tag as a Pose2d

Returns
Returns the position and orientation of the tag

Member Data Documentation

◆ m_tag

int robotCore.apriltags.ApriltagLocation.m_tag

Specifies the Apriltag number.

◆ m_targetAngleDegrees

double robotCore.apriltags.ApriltagLocation.m_targetAngleDegrees

Specifies the orientation of the tag in degrees.

◆ m_xMeters

double robotCore.apriltags.ApriltagLocation.m_xMeters

Specifies the x position of the tag in meters.

◆ m_yMeters

double robotCore.apriltags.ApriltagLocation.m_yMeters

Specifies the y position of the tag in meters.


The documentation for this class was generated from the following file: