Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
|
Namespace for camera access system. More...
Classes | |
class | Camera |
Represents a camera on the rover, from which a video feed can be retrieved. More... | |
struct | CameraConfig |
A struct that represents the information outlined in Camera Configuration. More... | |
class | CameraParams |
Represents a set of intrinsic camera parameters. More... | |
class | invalid_camera_config |
Exception for errors in the camera configuration. More... | |
Functions | |
CameraConfig | readConfigFromFile (const std::string &filename) |
Read the camera config from the specified file. | |
void | read (const cv::FileNode &node, CameraParams ¶ms, const CameraParams &default_value=CameraParams()) |
Reads a CameraParams object from the given cv::FileNode object. | |
void | write (cv::FileStorage &fs, const std::string &name, const CameraParams ¶ms) |
Writes the given CameraParams object to the given cv::FileStorage object. | |
TEST_CASE ("Validation in constructor works", "[camera][camera_params]") | |
TEST_CASE ("Serialization works", "[camera][camera_params]") | |
TEST_CASE ("List Conversation Works") | |
Variables | |
const std::string | filename = "test_camera_params.yml" |
Configuration File Keys | |
The following are constants for the keys used in the camera configuration files. See Camera Configuration for more details. | |
const std::string | KEY_FILENAME = "filename" |
Config file key for camera filename. | |
const std::string | KEY_CAMERA_ID = "camera_id" |
Config file key for camera id. | |
const std::string | KEY_INTRINSIC_PARAMS = "intrinsic_params" |
Config file key for intrinsic parameters. | |
const std::string | KEY_EXTRINSIC_PARAMS = "extrinsic_params" |
Config file key for extrinsic parameters. | |
const std::string | KEY_CALIB_INFO = "calib_info" |
Config file key for calibration information. | |
const std::string | KEY_NAME = "name" |
Config file key for camera name. | |
const std::string | KEY_DESCRIPTION = "description" |
Config file key for camera description. | |
const std::string | KEY_IMAGE_WIDTH = "image_width" |
Config file key for image width. | |
const std::string | KEY_IMAGE_HEIGHT = "image_height" |
Config file key for image height. | |
const std::string | KEY_CAMERA_MATRIX = "camera_matrix" |
Config file key for the camera matrix. | |
const std::string | KEY_DIST_COEFFS = "distortion_coefficients" |
Config file key for the distortion coefficients. | |
Namespace for camera access system.