17 #ifndef _GAZEBO_USERCAMERA_HH_
18 #define _GAZEBO_USERCAMERA_HH_
30 class UserCameraPrivate;
47 bool _stereoEnabled =
false);
54 public:
void Load(sdf::ElementPtr _sdf);
57 public:
virtual void SetClipDist(
float _near,
float _far);
66 public:
virtual void Update();
69 public:
virtual void PostRender();
76 public:
virtual void SetWorldPose(
const math::Pose &_pose);
81 public:
void SetDefaultPose(
const math::Pose &_pose);
93 public:
void HandleKeyPressEvent(
const std::string &_key);
97 public:
void HandleKeyReleaseEvent(
const std::string &_key);
101 public:
void SetViewController(
const std::string &_type);
106 public:
void SetViewController(
const std::string &_type,
111 public: std::string GetViewControllerTypeString();
116 public:
void Resize(
unsigned int _w,
unsigned int _h);
123 public:
void SetViewportDimensions(
float _x,
float _y,
128 public:
void MoveToVisual(
VisualPtr _visual);
131 public:
virtual bool MoveToPosition(
const math::Pose &_pose,
136 public:
void MoveToVisual(
const std::string &_visualName);
142 public:
virtual void SetRenderTarget(Ogre::RenderTarget *_target);
149 public:
void EnableViewController(
bool _value)
const;
168 public:
virtual unsigned int GetImageWidth()
const;
171 public:
virtual unsigned int GetImageHeight()
const;
175 public:
bool IsCameraSetInWorldFile();
179 public:
void SetUseSDFPose(
bool _value);
185 public:
void SetJoyTwistControl(
bool _value);
191 public:
void SetJoyPoseControl(
bool _value);
195 public:
bool StereoEnabled()
const;
204 public:
void EnableStereo(
bool _enable);
207 public:
virtual bool SetProjectionType(
const std::string &_type);
220 protected:
virtual bool AttachToVisualImpl(
VisualPtr _visual,
221 bool _inheritOrientation,
double _minDist = 0,
222 double _maxDist = 0);
225 protected:
virtual void AnimationComplete();
232 protected:
virtual bool TrackVisualImpl(
VisualPtr _visual);
235 protected:
virtual void UpdateFOV();
238 private:
void ToggleShowVisual();
243 private:
void ShowVisual(
bool _show);
247 private:
void OnMoveToVisualComplete();
253 private:
void OnJoyTwist(ConstJoystickPtr &_msg);
259 private:
void OnJoyPose(ConstPosePtr &_msg);
Basic camera sensor.
Definition: Camera.hh:85
Generic description of a mouse event.
Definition: MouseEvent.hh:35
Encapsulates a position and rotation in three space.
Definition: Pose.hh:37
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:39
Private data for the UserCamera class.
Definition: UserCameraPrivate.hh:28
Generic integer x, y vector.
Definition: Vector2i.hh:36
std::shared_ptr< Visual > VisualPtr
Definition: RenderTypes.hh:112
A camera used for user visualization of a scene.
Definition: UserCamera.hh:39
#define GZ_RENDERING_VISIBLE
Definition: system.hh:209
boost::shared_ptr< Scene > ScenePtr
Definition: RenderTypes.hh:80
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.