A first-person camera, controlled by yaw, pitch, and position. More...
#include <fps_motion_view_controller.h>

| Public Member Functions | |
| void | changeZ (float z) | 
| void | fly (float x, float y, float z) | 
| FPSMotionViewController () | |
| virtual void | handleMouseEvent (ViewportMouseEvent &evt) | 
| virtual void | lookAt (const Ogre::Vector3 &point) | 
| virtual void | mimic (ViewController *source_view) | 
| Configure the settings of this view controller to give, as much as possible, a similar view as that given by the source_view. | |
| void | move (float x, float y, float z) | 
| virtual void | onInitialize () | 
| void | pitch (float angle) | 
| virtual void | reset () | 
| void | setCamera (Ogre::Camera *source_camera) | 
| virtual void | update (float dt, float ros_dt) | 
| void | yaw (float angle) | 
| virtual | ~FPSMotionViewController () | 
| Protected Member Functions | |
| Ogre::Quaternion | getOrientation () | 
| Return a Quaternion based on the yaw and pitch properties. | |
| virtual void | onTargetFrameChanged (const Ogre::Vector3 &old_reference_position, const Ogre::Quaternion &old_reference_orientation) | 
| void | setPropertiesFromCamera (Ogre::Camera *source_camera) | 
| void | updateCamera () | 
| void | updateCamera (Ogre::Vector3 &position, Ogre::Quaternion &orientation) | 
| Protected Attributes | |
| BoolProperty * | fly_property_ | 
| FloatProperty * | pitch_property_ | 
| The camera's pitch (rotation around the x-axis), in radians. | |
| VectorProperty * | position_property_ | 
| FloatProperty * | yaw_property_ | 
| The camera's yaw (rotation around the y-axis), in radians. | |
A first-person camera, controlled by yaw, pitch, and position.
Definition at line 49 of file fps_motion_view_controller.h.
Definition at line 58 of file fps_motion_view_controller.cpp.
| rviz::FPSMotionViewController::~FPSMotionViewController | ( | ) |  [virtual] | 
Definition at line 69 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::changeZ | ( | float | z | ) | 
Definition at line 217 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::fly | ( | float | x, | 
| float | y, | ||
| float | z | ||
| ) | 
Definition at line 224 of file fps_motion_view_controller.cpp.
| Ogre::Quaternion rviz::FPSMotionViewController::getOrientation | ( | ) |  [protected] | 
Return a Quaternion based on the yaw and pitch properties.
Definition at line 199 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::handleMouseEvent | ( | ViewportMouseEvent & | evt | ) |  [virtual] | 
Reimplemented from rviz::ViewController.
Definition at line 90 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::lookAt | ( | const Ogre::Vector3 & | point | ) |  [virtual] | 
Reimplemented from rviz::ViewController.
Definition at line 165 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::mimic | ( | ViewController * | source_view | ) |  [virtual] | 
Configure the settings of this view controller to give, as much as possible, a similar view as that given by the source_view.
source_view must return a valid Ogre::Camera* from getCamera(). 
Reimplemented from rviz::FramePositionTrackingViewController.
Definition at line 153 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::move | ( | float | x, | 
| float | y, | ||
| float | z | ||
| ) | 
Definition at line 209 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::onInitialize | ( | ) |  [virtual] | 
Reimplemented from rviz::FramePositionTrackingViewController.
Definition at line 73 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::onTargetFrameChanged | ( | const Ogre::Vector3 & | old_reference_position, | 
| const Ogre::Quaternion & | old_reference_orientation | ||
| ) |  [protected, virtual] | 
Reimplemented from rviz::FramePositionTrackingViewController.
Definition at line 171 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::pitch | ( | float | angle | ) | 
Definition at line 194 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::reset | ( | ) |  [virtual] | 
Implements rviz::ViewController.
Definition at line 79 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::setCamera | ( | Ogre::Camera * | source_camera | ) |  [inline] | 
Definition at line 79 of file fps_motion_view_controller.h.
| void rviz::FPSMotionViewController::setPropertiesFromCamera | ( | Ogre::Camera * | source_camera | ) |  [protected] | 
Definition at line 117 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::update | ( | float | dt, | 
| float | ros_dt | ||
| ) |  [virtual] | 
Reimplemented from rviz::FramePositionTrackingViewController.
Definition at line 159 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::updateCamera | ( | ) |  [protected] | 
Definition at line 176 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::updateCamera | ( | Ogre::Vector3 & | position, | 
| Ogre::Quaternion & | orientation | ||
| ) |  [protected] | 
Definition at line 182 of file fps_motion_view_controller.cpp.
| void rviz::FPSMotionViewController::yaw | ( | float | angle | ) | 
Definition at line 189 of file fps_motion_view_controller.cpp.
| BoolProperty* rviz::FPSMotionViewController::fly_property_  [protected] | 
Definition at line 93 of file fps_motion_view_controller.h.
The camera's pitch (rotation around the x-axis), in radians.
Definition at line 91 of file fps_motion_view_controller.h.
Definition at line 92 of file fps_motion_view_controller.h.
The camera's yaw (rotation around the y-axis), in radians.
Definition at line 90 of file fps_motion_view_controller.h.