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);
76 public:
void MoveToVisual(
const std::string &_visualName);
82 public:
virtual void SetRenderTarget(Ogre::RenderTarget *_target);
86 public:
void AdjustAspect(
double _v);
89 public:
virtual unsigned int GetImageWidth()
const;
92 public:
virtual unsigned int GetImageHeight()
const;
95 public:
void ResetSensor();
102 protected:
virtual void RenderImpl();
115 protected:
virtual bool AttachToVisualImpl(
VisualPtr _visual,
116 bool _inheritOrientation,
double _minDist = 0,
117 double _maxDist = 0);
124 protected:
virtual bool TrackVisualImpl(
VisualPtr _visual);
128 private:
void OnControl(ConstWorldControlPtr &_data);
131 private:
void Oculus();
135 private: OculusCameraPrivate *dataPtr;
Basic camera sensor.
Definition: Camera.hh:85
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:81
A camera used for user visualization of a scene.
Definition: OculusCamera.hh:36
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:113
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.