UserCameraPrivate.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 
18 #ifndef _GAZEBO_USERCAMERA_PRIVATE_HH_
19 #define _GAZEBO_USERCAMERA_PRIVATE_HH_
20 
21 #include <string>
22 
23 namespace gazebo
24 {
25  namespace rendering
26  {
29  {
32 
35 
38 
41 
43  public: std::string prevViewControllerName;
44 
47 
50 
53 
55  // public: Ogre::SceneNode *axisNode;
56 
58  public: SelectionBuffer *selectionBuffer;
59 
62  public: bool isCameraSetInWorldFile;
63 
65  public: bool joyTwistControl;
66 
68  public: bool joyPoseControl;
69 
72 
74  public: Ogre::Camera *rightCamera;
75 
77  public: Ogre::Viewport *rightViewport;
78 
81 
83  public: bool stereoEnabled;
84 
87  };
88  }
89 }
90 #endif
bool joyTwistControl
Toggle joystick camera move through ~/user_camera/joy_twist.
Definition: UserCameraPrivate.hh:65
First Person Shooter style view controller.
Definition: FPSViewController.hh:34
OrthoViewController * orthoViewController
An orthographic view controller.
Definition: UserCameraPrivate.hh:49
bool stereoEnabled
True if stereo rendering should be enabled.
Definition: UserCameraPrivate.hh:83
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
Private data for the UserCamera class.
Definition: UserCameraPrivate.hh:28
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
Orbit view controller.
Definition: OrbitViewController.hh:38
FPSViewController * fpsViewController
A FPS view controller.
Definition: UserCameraPrivate.hh:52
Ogre::Camera * rightCamera
An optional Ogre camera for stereo rendering.
Definition: UserCameraPrivate.hh:74
bool joyPoseControl
Toggle joystick camera move through ~/user_camera/joy_pose.
Definition: UserCameraPrivate.hh:68
Ogre::Viewport * rightViewport
An optional viewport for stereo rendering.
Definition: UserCameraPrivate.hh:77
transport::SubscriberPtr joySubPose
Subscribes to absolute joystick messages.
Definition: UserCameraPrivate.hh:37
OrbitViewController * orbitViewController
An orbit view controller.
Definition: UserCameraPrivate.hh:46
transport::PublisherPtr posePub
Publishes user camera world pose.
Definition: UserCameraPrivate.hh:80
std::string prevViewControllerName
The previously used view controller.
Definition: UserCameraPrivate.hh:43
bool isCameraSetInWorldFile
Flag to detect if the user changed the camera pose in the world file.
Definition: UserCameraPrivate.hh:62
Orthographic view controller.
Definition: OrthoViewController.hh:38
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
transport::SubscriberPtr joySubTwist
Subscribes to relative joystick messages.
Definition: UserCameraPrivate.hh:34
SelectionBuffer * selectionBuffer
Draws a 3D axis in the viewport.
Definition: UserCameraPrivate.hh:58
bool joystickButtonToggleLast
Used to detect joystick button release.
Definition: UserCameraPrivate.hh:71
ViewController * viewController
The currently active view controller.
Definition: UserCameraPrivate.hh:40
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
transport::NodePtr node
Gazebo communication node pointer.
Definition: UserCameraPrivate.hh:31
math::Pose defaultPose
Default camera pose.
Definition: UserCameraPrivate.hh:86
Base class for view controllers.
Definition: ViewController.hh:34