18 #ifndef _GAZEBO_RENDERING_DEPTHCAMERA_HH_
19 #define _GAZEBO_RENDERING_DEPTHCAMERA_HH_
44 class DepthCameraPrivate;
58 ScenePtr _scene,
bool _autoRender =
true);
65 public:
void Load(sdf::ElementPtr _sdf);
78 public:
void CreateDepthTexture(
const std::string &_textureName);
81 public:
virtual void PostRender();
90 public:
virtual const float *DepthData()
const;
94 public:
virtual void SetDepthTarget(Ogre::RenderTarget *_target);
100 std::function<
void (
const float *,
unsigned int,
unsigned int,
101 unsigned int,
const std::string &)> _subscriber);
111 std::function<
void (
const float *,
unsigned int,
unsigned int,
112 unsigned int,
const std::string &)> _subscriber);
119 private:
virtual void RenderImpl();
125 private:
void UpdateRenderTarget(Ogre::RenderTarget *_target,
126 Ogre::Material *_material,
127 const std::string &_matName);
140 private: std::unique_ptr<DepthCameraPrivate> dataPtr;
Basic camera sensor.
Definition: Camera.hh:85
#define GAZEBO_DEPRECATED(version)
Definition: CommonTypes.hh:48
Ogre::Texture * depthTexture
Pointer to the depth texture.
Definition: DepthCamera.hh:130
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:80
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
Ogre::RenderTarget * depthTarget
Pointer to the depth target.
Definition: DepthCamera.hh:133
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
Ogre::Viewport * depthViewport
Pointer to the depth viewport.
Definition: DepthCamera.hh:136
Depth camera used to render depth data into an image buffer.
Definition: DepthCamera.hh:51