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 | 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, 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_ |
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, FrameInfo*> rviz::TFDisplay::M_FrameInfo [private] |
Definition at line 104 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 300 of file tf_display.cpp.
void rviz::TFDisplay::clear | ( | ) | [private] |
Definition at line 213 of file tf_display.cpp.
FrameInfo * rviz::TFDisplay::createFrame | ( | const std::string & | frame | ) | [private] |
Definition at line 402 of file tf_display.cpp.
void rviz::TFDisplay::deleteFrame | ( | FrameInfo * | frame, |
bool | delete_properties | ||
) | [private] |
Definition at line 650 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 670 of file tf_display.cpp.
FrameInfo * rviz::TFDisplay::getFrameInfo | ( | const std::string & | frame | ) | [private] |
Definition at line 330 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 252 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 243 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 204 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 675 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 318 of file tf_display.cpp.
void rviz::TFDisplay::updateFrame | ( | FrameInfo * | frame | ) | [private] |
Definition at line 462 of file tf_display.cpp.
void rviz::TFDisplay::updateFrames | ( | ) | [private] |
Definition at line 341 of file tf_display.cpp.
void rviz::TFDisplay::updateShowArrows | ( | ) | [private, slot] |
Definition at line 286 of file tf_display.cpp.
void rviz::TFDisplay::updateShowAxes | ( | ) | [private, slot] |
Definition at line 272 of file tf_display.cpp.
void rviz::TFDisplay::updateShowNames | ( | ) | [private, slot] |
Definition at line 258 of file tf_display.cpp.
friend class FrameInfo [friend] |
Definition at line 122 of file tf_display.h.
Definition at line 114 of file tf_display.h.
Ogre::SceneNode* rviz::TFDisplay::arrows_node_ [private] |
Definition at line 101 of file tf_display.h.
Ogre::SceneNode* rviz::TFDisplay::axes_node_ [private] |
Definition at line 102 of file tf_display.h.
bool rviz::TFDisplay::changing_single_frame_enabled_state_ [private] |
Definition at line 121 of file tf_display.h.
Definition at line 113 of file tf_display.h.
M_FrameInfo rviz::TFDisplay::frames_ [private] |
Definition at line 105 of file tf_display.h.
Property* rviz::TFDisplay::frames_category_ [private] |
Definition at line 118 of file tf_display.h.
Ogre::SceneNode* rviz::TFDisplay::names_node_ [private] |
Definition at line 100 of file tf_display.h.
Ogre::SceneNode* rviz::TFDisplay::root_node_ [private] |
Definition at line 99 of file tf_display.h.
FloatProperty* rviz::TFDisplay::scale_property_ [private] |
Definition at line 116 of file tf_display.h.
Definition at line 110 of file tf_display.h.
BoolProperty* rviz::TFDisplay::show_axes_property_ [private] |
Definition at line 111 of file tf_display.h.
Definition at line 109 of file tf_display.h.
Property* rviz::TFDisplay::tree_category_ [private] |
Definition at line 119 of file tf_display.h.
Definition at line 112 of file tf_display.h.
float rviz::TFDisplay::update_timer_ [private] |
Definition at line 107 of file tf_display.h.