ARGoS
3
A parallel, multi-engine simulator for swarm robotics
|
Go to the documentation of this file.
7 #ifndef QTOPENGL_CAMERA_H
8 #define QTOPENGL_CAMERA_H
11 class CQTOpenGLCamera;
17 #include <argos3/core/utility/datatypes/datatypes.h>
18 #include <argos3/core/utility/math/ray3.h>
19 #include <argos3/core/utility/configuration/argos_configuration.h>
95 m_sSettings[m_unActiveSettings].
Do();
99 return m_sSettings[m_unActiveSettings].
Position;
103 return m_sSettings[m_unActiveSettings].
Target;
110 void Rotate(
const QPoint& c_delta);
117 return m_sSettings[m_unActiveSettings];
121 return m_sSettings[m_unActiveSettings];
125 m_unActiveSettings = un_settings;
129 return m_sSettings[n_index];
134 UInt32 m_unActiveSettings;
135 SSettings m_sSettings[12];
Real LensFocalLength
The focal length of the lens (if this was a real camera)
void Do()
Places this camera in the right position.
void CalculateSensitivity()
Calculate the sensitivity of the camera.
The namespace containing all the ARGoS related code.
Real GetLensFocalLength() const
It defines the basic type CRadians, used to store an angle value in radians.
CDegrees YFieldOfView
The focal length of the camera.
void RotateUpDown(const CRadians &c_angle)
Rotation around the local Y axis.
CVector3 Up
The local Z axis of the camera in the global reference frame.
void RotateLeftRight(const CRadians &c_angle)
Rotation around the local Z axis.
void Init(TConfigurationNode &t_tree)
Initialize from XML.
void SetActiveSettings(UInt32 un_settings)
void RotateLeftRight2(const CRadians &c_angle)
Rotation around the global Z axis.
void Move(SInt32 n_forwards_backwards, SInt32 n_sideways, SInt32 n_up_down)
ticpp::Element TConfigurationNode
The ARGoS configuration XML node.
CVector3 Left
The local Y axis of the camera in the global reference frame.
void Rotate(const QPoint &c_delta)
CVector3 Position
The position of the camera in the global reference frame.
void CalculateYFieldOfView()
Calculates the value of YFieldOfView.
SSettings & GetActiveSettings()
signed int SInt32
32-bit signed integer.
const CVector3 & GetPosition() const
Real MotionSensitivity
Motion sensitivity.
void Init(TConfigurationNode &t_tree)
CVector3 Target
The direction of sight of the camera in the global reference frame.
CVector3 Forward
The local X axis of the camera in the global reference frame.
unsigned int UInt32
32-bit unsigned integer.
const SSettings & GetActiveSettings() const
Real RotationSensitivity
Rotation sensitivity.
It defines the basic type CDegrees, used to store an angle value in degrees.
SSettings & GetSetting(UInt32 n_index)
float Real
Collects all ARGoS code.
void Translate(const CVector3 &c_delta)
c_delta is expressed in the camera local coordinates
const CVector3 & GetTarget() const