Displays a set of XYZ axes at the origin of a chosen frame. More...
#include <axes_display.h>
Public Member Functions | |
AxesDisplay () | |
void | onInitialize () |
Override this function to do subclass-specific initialization. | |
void | set (float length, float radius) |
Set the parameters for the axes. | |
virtual void | update (float dt, float ros_dt) |
Called periodically by the visualization manager. | |
virtual | ~AxesDisplay () |
Protected Member Functions | |
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. | |
Private Slots | |
void | updateShape () |
Update the length and radius of the axes object from property values. | |
Private Attributes | |
Axes * | axes_ |
Handles actually drawing the axes. | |
TfFrameProperty * | frame_property_ |
FloatProperty * | length_property_ |
FloatProperty * | radius_property_ |
Displays a set of XYZ axes at the origin of a chosen frame.
Definition at line 43 of file axes_display.h.
Definition at line 46 of file axes_display.cpp.
rviz::AxesDisplay::~AxesDisplay | ( | ) | [virtual] |
Definition at line 65 of file axes_display.cpp.
void rviz::AxesDisplay::onDisable | ( | ) | [protected, virtual] |
Derived classes override this to do the actual work of disabling themselves.
Reimplemented from rviz::Display.
Definition at line 83 of file axes_display.cpp.
void rviz::AxesDisplay::onEnable | ( | ) | [protected, virtual] |
Derived classes override this to do the actual work of enabling themselves.
Reimplemented from rviz::Display.
Definition at line 78 of file axes_display.cpp.
void rviz::AxesDisplay::onInitialize | ( | ) | [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 70 of file axes_display.cpp.
void rviz::AxesDisplay::set | ( | float | length, |
float | radius | ||
) |
Set the parameters for the axes.
length | Length of each axis |
radius | Radius of each axis |
void rviz::AxesDisplay::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 94 of file axes_display.cpp.
void rviz::AxesDisplay::updateShape | ( | ) | [private, slot] |
Update the length and radius of the axes object from property values.
Definition at line 88 of file axes_display.cpp.
Axes* rviz::AxesDisplay::axes_ [private] |
Handles actually drawing the axes.
Definition at line 72 of file axes_display.h.
Definition at line 76 of file axes_display.h.
FloatProperty* rviz::AxesDisplay::length_property_ [private] |
Definition at line 74 of file axes_display.h.
FloatProperty* rviz::AxesDisplay::radius_property_ [private] |
Definition at line 75 of file axes_display.h.