30 #ifndef RVIZ_FRAME_POSITION_TRACKING_VIEW_CONTROLLER_H 31 #define RVIZ_FRAME_POSITION_TRACKING_VIEW_CONTROLLER_H 33 #include <OgreQuaternion.h> 34 #include <OgreVector3.h> 41 class TfFrameProperty;
64 virtual void update(
float dt,
float ros_dt);
87 virtual void onTargetFrameChanged(
const Ogre::Vector3& old_reference_position,
const Ogre::Quaternion& old_reference_orientation ) {}
103 #endif // RVIZ_FRAME_POSITION_TRACKING_VIEW_CONTROLLER_H virtual void onTargetFrameChanged(const Ogre::Vector3 &old_reference_position, const Ogre::Quaternion &old_reference_orientation)
Override to implement the change in properties which nullifies the change in target frame...
virtual void mimic(ViewController *source_view)
Configure the settings of this view controller to give, as much as possible, a similar view as that g...
Base class of ViewControllers which have a "Target Frame" which is a TF frame whose position they tra...
FramePositionTrackingViewController()
TfFrameProperty * target_frame_property_
Ogre::Vector3 reference_position_
virtual void update(float dt, float ros_dt)
Called at 30Hz by ViewManager::update() while this view is active. Override with code that needs to r...
Ogre::Quaternion reference_orientation_
virtual ~FramePositionTrackingViewController()
virtual void updateTargetFrame()
Called when Target Frame property changes while view is active. Purpose is to change values in the vi...
virtual void onInitialize()
Do subclass-specific initialization. Called by ViewController::initialize after context_, target_scene_node_, and camera_ are set. This version calls updateTargetSceneNode().
Ogre::SceneNode * target_scene_node_
virtual void updateTargetSceneNode()
Update the position of the target_scene_node_ from the TF frame specified in the Target Frame propert...
virtual void onActivate()
called by activate().