gucoordinates
Public Attributes | List of all members
gu_camera Struct Reference

#include <camera.h>

Inheritance diagram for gu_camera:
Inheritance graph
Collaboration diagram for gu_camera:
Collaboration graph

Public Attributes

centimetres_d height
 The height from the pivot of the camera to the middle of the camera. More...
 
centimetres_d centerOffset
 The distance the camera is from the center point. More...
 
degrees_d vDirection
 The degree in which the camera is facing in the vertical direction. More...
 
degrees_d vFov
 The vertical field of view. More...
 
degrees_d hFov
 The horizontal field of view. More...
 

Detailed Description

Definition at line 70 of file camera.h.

Member Data Documentation

◆ centerOffset

centimetres_d gu_camera::centerOffset

The distance the camera is from the center point.

A positive value indicates that the camera is in front of the center point while a negative value indicates that the camera is behind the center point.

This property is useful for when the robot is mounted on a robot and distance calculations need to be calculated from the torso, not the camera.

Definition at line 92 of file camera.h.

Referenced by CGTEST::CameraCPPTests::cchange(), GU::Camera::centerOffset(), gu_camera_equals(), gu_camera_make(), gu_camera_pivot_calculate_camera_height(), gu_camera_pivot_can_see_object(), pct_coord_to_rr_coord(), CGTEST::CameraPivotCPPTests::preamble(), rr_coord_to_pct_coord(), and GU::Camera::set_centerOffset().

◆ height

centimetres_d gu_camera::height

The height from the pivot of the camera to the middle of the camera.

If there is no pivot then this is the height to the ground. If it is a camera on a stick then it's the length of the stick. If it's a camera on the head of the robot then its the length from the neck to the camera.

Definition at line 80 of file camera.h.

Referenced by CGTEST::CameraCPPTests::cchange(), gu_camera_equals(), gu_camera_make(), gu_camera_pivot_calculate_camera_height(), GU::Camera::height(), CGTEST::CameraPivotCPPTests::preamble(), and GU::Camera::set_height().

◆ hFov

degrees_d gu_camera::hFov

◆ vDirection

degrees_d gu_camera::vDirection

The degree in which the camera is facing in the vertical direction.

A positive value means that the camera is pointing more to the ground. A negative value means that the camera is pointing more to the sky.

Definition at line 100 of file camera.h.

Referenced by CGTEST::CameraCPPTests::cchange(), gu_camera_equals(), gu_camera_make(), gu_camera_pivot_can_see_object(), gu_camera_pivot_object_on_ground(), pct_coord_to_rr_coord(), CGTEST::CameraPivotCPPTests::preamble(), rr_coord_to_pct_coord(), GU::Camera::set_vDirection(), and GU::Camera::vDirection().

◆ vFov

degrees_d gu_camera::vFov

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