![]() |
Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
|
Namespace containing functions related to ArUco operations on images. More...
Classes | |
struct | ArucoTag |
Represents a single ArUco tag. Stores all information about a specific tag detection. More... | |
Functions | |
cv::Point2f | FindTagCenter (const ArucoTag &stTag) |
Given an ArucoTag struct find the center point of the corners. | |
void | PreprocessFrame (const cv::Mat &cvInputFrame, cv::Mat &cvOutputFrame) |
Preprocess images for specifically for the Aruco Detect() method. This method creates a copy of the camera frame so as to not alter the original in case it's used after the call to this function completes. | |
std::vector< ArucoTag > | Detect (const cv::Mat &cvFrame, const cv::aruco::ArucoDetector &cvArucoDetector) |
Detect ArUco tags in the provided image. | |
void | DrawDetections (cv::Mat &cvDetectionsFrame, const std::vector< ArucoTag > &vDetectedTags) |
Given a vector of ArucoTag structs draw each tag corner and ID onto the given image. | |
void | EstimatePoseFromPointCloud (const cv::Mat &cvPointCloud, ArucoTag &stTag) |
Estimate the pose of a position with respect to the observer using a point cloud. | |
void | EstimatePoseFromPNP (cv::Mat &cvCameraMatrix, cv::Mat &cvDistCoeffs, ArucoTag &stTag) |
Estimate the pose of a position with respect to the observer using an image. | |
Namespace containing functions related to ArUco operations on images.
|
inline |
Given an ArucoTag struct find the center point of the corners.
stTag | - The tag to find the center of. |
Preprocess images for specifically for the Aruco Detect() method. This method creates a copy of the camera frame so as to not alter the original in case it's used after the call to this function completes.
cvInputFrame | - cv::Mat of the image to pre-process. This image should be in BGR format. |
cvOutputFrame | - cv::Mat to write the pre-processed image to. |
|
inline |
Detect ArUco tags in the provided image.
cvFrame | - The camera frame to run ArUco detection on. Should be BGR format or grayscale. |
cvArucoDetector | - The configured aruco detector to use for detection. |
Create instance variables.
|
inline |
Given a vector of ArucoTag structs draw each tag corner and ID onto the given image.
cvDetectionsFrame | - The frame to draw overlay onto. |
vDetectedTags | - The vector of ArucoTag struct used to draw tag corners and IDs onto image. |
Estimate the pose of a position with respect to the observer using a point cloud.
cvPointCloud | - A point cloud of x,y,z coordinates. |
stTag | - The tag we are estimating the pose of and then storing the distance and angle calculations in. |
|
inline |
Estimate the pose of a position with respect to the observer using an image.
cvCameraMatrix | - Matrix of camera's parameters including focal length and optical center. |
cvDistCoeffs | - Matrix of the camera's distortion coefficients. |
stTag | - The tag we are estimating the pose of and then storing the distance and angle calculations in. |