18 #ifndef _GAZEBO_OCULUS_CAMERA_HH_
19 #define _GAZEBO_OCULUS_CAMERA_HH_
29 class OculusCameraPrivate;
48 public:
void Load(sdf::ElementPtr _sdf);
57 public:
virtual void Update();
60 public:
virtual void PostRender();
68 public:
void Resize(
unsigned int _w,
unsigned int _h);
72 public:
void MoveToVisual(
VisualPtr _visual);
75 public:
virtual bool MoveToPosition(
const math::Pose &_pose,
80 public:
void MoveToVisual(
const std::string &_visualName);
86 public:
virtual void SetRenderTarget(Ogre::RenderTarget *_target);
90 public:
void AdjustAspect(
double _v);
93 public:
virtual unsigned int GetImageWidth()
const;
96 public:
virtual unsigned int GetImageHeight()
const;
99 public:
void ResetSensor();
103 public:
bool Ready();
106 protected:
virtual void RenderImpl();
119 protected:
virtual bool AttachToVisualImpl(
VisualPtr _visual,
120 bool _inheritOrientation,
double _minDist = 0,
121 double _maxDist = 0);
128 protected:
virtual bool TrackVisualImpl(
VisualPtr _visual);
132 private:
void OnControl(ConstWorldControlPtr &_data);
135 private:
void Oculus();
Basic camera sensor.
Definition: Camera.hh:78
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
#define GZ_RENDERING_VISIBLE
Definition: system.hh:241
A camera used for user visualization of a scene.
Definition: OculusCamera.hh:36
Private data for the Oculus Camera class.
Definition: OculusCameraPrivate.hh:35
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:79
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:107