Go to the documentation of this file.
30 #ifndef RVIZ_FPS_VIEW_CONTROLLER_H
31 #define RVIZ_FPS_VIEW_CONTROLLER_H
50 void reset()
override;
52 void lookAt(
const Ogre::Vector3& point)
override;
55 void move(
float x,
float y,
float z);
56 void rotate(
float yaw,
float pitch,
float roll);
60 const Ogre::Quaternion& old_reference_orientation)
override;
63 Ogre::Quaternion
getOrientation(
float yaw,
float pitch,
float roll);
83 #endif // RVIZ_VIEW_CONTROLLER_H
FloatProperty * pitch_property_
The camera's pitch (rotation around the y-axis), in radians.
VectorProperty * position_property_
The camera's position.
void setPropertiesFromCamera()
set yaw, pitch, roll, position properties from camera
void move(float x, float y, float z)
void lookAt(const Ogre::Vector3 &point) override
This should be implemented in each subclass to aim the camera at the given point in space (relative t...
A first-person camera, controlled by yaw, pitch, roll, and position.
virtual void changedPosition()
static const Ogre::Quaternion ROBOT_TO_CAMERA_ROTATION
void onTargetFrameChanged(const Ogre::Vector3 &old_reference_position, const Ogre::Quaternion &old_reference_orientation) override
Override to implement the change in properties which nullifies the change in target frame.
FloatProperty * yaw_property_
The camera's yaw (rotation around the z-axis), in radians.
Ogre::Quaternion getOrientation(float yaw, float pitch, float roll)
yield camera orientation for given Euler angles
Property specialized to enforce floating point max/min.
FloatProperty * roll_property_
The camera's roll (rotation around the x-axis), in radians.
void onInitialize() override
Do subclass-specific initialization. Called by ViewController::initialize after context_ and camera_ ...
void handleMouseEvent(ViewportMouseEvent &event) override
void mimic(ViewController *source_view) override
Configure the settings of this view controller to give, as much as possible, a similar view as that g...
void rotate(float yaw, float pitch, float roll)
Base class of ViewControllers which have a "Target Frame" which is a TF frame whose position they tra...
void resetRoll()
zero roll angle
virtual void changedOrientation()
~FPSViewController() override=default
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:02