30 #include <OgreCamera.h>    31 #include <OgreQuaternion.h>    32 #include <OgreSceneManager.h>    33 #include <OgreSceneNode.h>    34 #include <OgreVector3.h>    35 #include <OgreViewport.h>    52         Ogre::Radian rollTarget, pitchTarget, yawTarget;
    53         rot.ToEulerAnglesXYZ(yawTarget, pitchTarget, rollTarget);
    55         yaw += rollTarget.valueRadians();
    56         pitch += pitchTarget.valueRadians();
    60         float x = distance * 
cos( yaw ) * 
cos( pitch ) + focal_point.x;
    61         float y = distance * 
sin( yaw ) * 
cos( pitch ) + focal_point.y;
    62         float z = distance *              
sin( pitch ) + focal_point.z;
    64         Ogre::Vector3 pos( x, y, z );
 
FloatProperty * distance_property_
FloatProperty * pitch_property_
GLM_FUNC_DECL genType::value_type distance(genType const &p0, genType const &p1)
virtual Ogre::Vector3 getVector() const
GLM_FUNC_DECL genType cos(genType const &angle)
GLM_FUNC_DECL genType sin(genType const &angle)
VectorProperty * focal_point_property_
Ogre::Quaternion reference_orientation_
void setPosition(const Ogre::Vector3 &position) override
FloatProperty * yaw_property_
virtual float getFloat() const
Ogre::SceneNode * target_scene_node_
PLUGINLIB_EXPORT_CLASS(rtabmap_ros::CoreWrapper, nodelet::Nodelet)
virtual void updateCamera()