Displays a visual representation of the TF hierarchy. More...
#include <tf_display.h>
Public Member Functions | |
TFDisplay () | |
virtual void | update (float wall_dt, float ros_dt) |
Called periodically by the visualization manager. | |
virtual | ~TFDisplay () |
Protected Member Functions | |
virtual void | fixedFrameChanged () |
Called by setFixedFrame(). Override to respond to changes to fixed_frame_. | |
virtual void | load (const Config &config) |
Load the settings for this display from the given Config node, which must be a map. | |
virtual void | onInitialize () |
Override this function to do subclass-specific initialization. | |
virtual void | reset () |
Called to tell the display to clear its state. | |
Private Types | |
typedef std::map< std::string, bool > | M_EnabledState |
typedef std::map< std::string, FrameInfo * > | M_FrameInfo |
Private Slots | |
void | allEnabledChanged () |
void | updateShowArrows () |
void | updateShowAxes () |
void | updateShowNames () |
Private Member Functions | |
void | clear () |
FrameInfo * | createFrame (const std::string &frame) |
void | deleteFrame (FrameInfo *frame, bool delete_properties) |
FrameInfo * | getFrameInfo (const std::string &frame) |
virtual void | onDisable () |
Derived classes override this to do the actual work of disabling themselves. | |
virtual void | onEnable () |
Derived classes override this to do the actual work of enabling themselves. | |
void | updateFrame (FrameInfo *frame) |
void | updateFrames () |
Private Attributes | |
BoolProperty * | all_enabled_property_ |
Ogre::SceneNode * | arrows_node_ |
Ogre::SceneNode * | axes_node_ |
bool | changing_single_frame_enabled_state_ |
M_EnabledState | frame_config_enabled_state_ |
FloatProperty * | frame_timeout_property_ |
M_FrameInfo | frames_ |
Property * | frames_category_ |
Ogre::SceneNode * | names_node_ |
Ogre::SceneNode * | root_node_ |
FloatProperty * | scale_property_ |
BoolProperty * | show_arrows_property_ |
BoolProperty * | show_axes_property_ |
BoolProperty * | show_names_property_ |
Property * | tree_category_ |
FloatProperty * | update_rate_property_ |
float | update_timer_ |
Friends | |
class | FrameInfo |
Displays a visual representation of the TF hierarchy.
Definition at line 64 of file tf_display.h.
typedef std::map<std::string, bool> rviz::TFDisplay::M_EnabledState [private] |
Definition at line 108 of file tf_display.h.
typedef std::map<std::string, FrameInfo*> rviz::TFDisplay::M_FrameInfo [private] |
Definition at line 105 of file tf_display.h.
Definition at line 161 of file tf_display.cpp.
rviz::TFDisplay::~TFDisplay | ( | ) | [virtual] |
Definition at line 198 of file tf_display.cpp.
void rviz::TFDisplay::allEnabledChanged | ( | ) | [private, slot] |
Definition at line 326 of file tf_display.cpp.
void rviz::TFDisplay::clear | ( | ) | [private] |
Definition at line 239 of file tf_display.cpp.
FrameInfo * rviz::TFDisplay::createFrame | ( | const std::string & | frame | ) | [private] |
Definition at line 428 of file tf_display.cpp.
void rviz::TFDisplay::deleteFrame | ( | FrameInfo * | frame, |
bool | delete_properties | ||
) | [private] |
Definition at line 694 of file tf_display.cpp.
void rviz::TFDisplay::fixedFrameChanged | ( | ) | [protected, virtual] |
Called by setFixedFrame(). Override to respond to changes to fixed_frame_.
Reimplemented from rviz::Display.
Definition at line 714 of file tf_display.cpp.
FrameInfo * rviz::TFDisplay::getFrameInfo | ( | const std::string & | frame | ) | [private] |
Definition at line 356 of file tf_display.cpp.
void rviz::TFDisplay::load | ( | const Config & | config | ) | [protected, virtual] |
Load the settings for this display from the given Config node, which must be a map.
Overridden from Property::load() to load the Display's name and enabled state, then call Property::load().
load() is called after initialize().
Reimplemented from rviz::Display.
Definition at line 218 of file tf_display.cpp.
void rviz::TFDisplay::onDisable | ( | ) | [private, virtual] |
Derived classes override this to do the actual work of disabling themselves.
Reimplemented from rviz::Display.
Definition at line 278 of file tf_display.cpp.
void rviz::TFDisplay::onEnable | ( | ) | [private, virtual] |
Derived classes override this to do the actual work of enabling themselves.
Reimplemented from rviz::Display.
Definition at line 269 of file tf_display.cpp.
void rviz::TFDisplay::onInitialize | ( | ) | [protected, virtual] |
Override this function to do subclass-specific initialization.
This is called after vis_manager_ and scene_manager_ are set, and before load() or setEnabled().
setName() may or may not have been called before this.
Reimplemented from rviz::Display.
Definition at line 207 of file tf_display.cpp.
void rviz::TFDisplay::reset | ( | ) | [protected, virtual] |
Called to tell the display to clear its state.
Reimplemented from rviz::Display.
Definition at line 719 of file tf_display.cpp.
void rviz::TFDisplay::update | ( | float | wall_dt, |
float | ros_dt | ||
) | [virtual] |
Called periodically by the visualization manager.
wall_dt | Wall-clock time, in seconds, since the last time the update list was run through. |
ros_dt | ROS time, in seconds, since the last time the update list was run through. |
Reimplemented from rviz::Display.
Definition at line 344 of file tf_display.cpp.
void rviz::TFDisplay::updateFrame | ( | FrameInfo * | frame | ) | [private] |
Definition at line 495 of file tf_display.cpp.
void rviz::TFDisplay::updateFrames | ( | ) | [private] |
Definition at line 367 of file tf_display.cpp.
void rviz::TFDisplay::updateShowArrows | ( | ) | [private, slot] |
Definition at line 312 of file tf_display.cpp.
void rviz::TFDisplay::updateShowAxes | ( | ) | [private, slot] |
Definition at line 298 of file tf_display.cpp.
void rviz::TFDisplay::updateShowNames | ( | ) | [private, slot] |
Definition at line 284 of file tf_display.cpp.
friend class FrameInfo [friend] |
Definition at line 126 of file tf_display.h.
Definition at line 118 of file tf_display.h.
Ogre::SceneNode* rviz::TFDisplay::arrows_node_ [private] |
Definition at line 102 of file tf_display.h.
Ogre::SceneNode* rviz::TFDisplay::axes_node_ [private] |
Definition at line 103 of file tf_display.h.
bool rviz::TFDisplay::changing_single_frame_enabled_state_ [private] |
Definition at line 125 of file tf_display.h.
Definition at line 109 of file tf_display.h.
Definition at line 117 of file tf_display.h.
M_FrameInfo rviz::TFDisplay::frames_ [private] |
Definition at line 106 of file tf_display.h.
Property* rviz::TFDisplay::frames_category_ [private] |
Definition at line 122 of file tf_display.h.
Ogre::SceneNode* rviz::TFDisplay::names_node_ [private] |
Definition at line 101 of file tf_display.h.
Ogre::SceneNode* rviz::TFDisplay::root_node_ [private] |
Definition at line 100 of file tf_display.h.
FloatProperty* rviz::TFDisplay::scale_property_ [private] |
Definition at line 120 of file tf_display.h.
Definition at line 114 of file tf_display.h.
BoolProperty* rviz::TFDisplay::show_axes_property_ [private] |
Definition at line 115 of file tf_display.h.
Definition at line 113 of file tf_display.h.
Property* rviz::TFDisplay::tree_category_ [private] |
Definition at line 123 of file tf_display.h.
Definition at line 116 of file tf_display.h.
float rviz::TFDisplay::update_timer_ [private] |
Definition at line 111 of file tf_display.h.