Displays a map along the XY plane. More...
#include <map_display.h>
Public Member Functions | |
virtual void | fixedFrameChanged () |
Called by setFixedFrame(). Override to respond to changes to fixed_frame_. | |
int | getHeight () |
Ogre::Quaternion | getOrientation () |
Ogre::Vector3 | getPosition () |
float | getResolution () |
int | getWidth () |
MapDisplay () | |
virtual void | onInitialize () |
Override this function to do subclass-specific initialization. | |
virtual void | reset () |
Called to tell the display to clear its state. | |
virtual | ~MapDisplay () |
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 | updateAlpha () |
void | updateDrawUnder () |
void | updateTopic () |
Private Member Functions | |
void | clear () |
void | incomingMap (const nav_msgs::OccupancyGrid::ConstPtr &msg) |
void | subscribe () |
void | transformMap () |
void | unsubscribe () |
Private Attributes | |
FloatProperty * | alpha_property_ |
Property * | draw_under_property_ |
std::string | frame_ |
int | height_ |
IntProperty * | height_property_ |
bool | loaded_ |
Ogre::ManualObject * | manual_object_ |
nav_msgs::OccupancyGrid::ConstPtr | map_ |
ros::Subscriber | map_sub_ |
Ogre::MaterialPtr | material_ |
Ogre::Quaternion | orientation_ |
QuaternionProperty * | orientation_property_ |
Ogre::Vector3 | position_ |
VectorProperty * | position_property_ |
float | resolution_ |
FloatProperty * | resolution_property_ |
Ogre::SceneNode * | scene_node_ |
Ogre::TexturePtr | texture_ |
std::string | topic_ |
RosTopicProperty * | topic_property_ |
int | width_ |
IntProperty * | width_property_ |
Displays a map along the XY plane.
Definition at line 64 of file map_display.h.
rviz::MapDisplay::MapDisplay | ( | ) |
Definition at line 50 of file map_display.cpp.
rviz::MapDisplay::~MapDisplay | ( | ) | [virtual] |
Definition at line 101 of file map_display.cpp.
void rviz::MapDisplay::clear | ( | ) | [private] |
Definition at line 222 of file map_display.cpp.
void rviz::MapDisplay::fixedFrameChanged | ( | ) | [virtual] |
Called by setFixedFrame(). Override to respond to changes to fixed_frame_.
Reimplemented from rviz::Display.
Definition at line 483 of file map_display.cpp.
int rviz::MapDisplay::getHeight | ( | ) | [inline] |
Definition at line 78 of file map_display.h.
Ogre::Quaternion rviz::MapDisplay::getOrientation | ( | ) | [inline] |
Definition at line 80 of file map_display.h.
Ogre::Vector3 rviz::MapDisplay::getPosition | ( | ) | [inline] |
Definition at line 79 of file map_display.h.
float rviz::MapDisplay::getResolution | ( | ) | [inline] |
Definition at line 76 of file map_display.h.
int rviz::MapDisplay::getWidth | ( | ) | [inline] |
Definition at line 77 of file map_display.h.
void rviz::MapDisplay::incomingMap | ( | const nav_msgs::OccupancyGrid::ConstPtr & | msg | ) | [private] |
Definition at line 249 of file map_display.cpp.
void rviz::MapDisplay::onDisable | ( | ) | [protected, virtual] |
Derived classes override this to do the actual work of disabling themselves.
Reimplemented from rviz::Display.
Definition at line 131 of file map_display.cpp.
void rviz::MapDisplay::onEnable | ( | ) | [protected, virtual] |
Derived classes override this to do the actual work of enabling themselves.
Reimplemented from rviz::Display.
Definition at line 125 of file map_display.cpp.
void rviz::MapDisplay::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 107 of file map_display.cpp.
void rviz::MapDisplay::reset | ( | ) | [virtual] |
Called to tell the display to clear its state.
Reimplemented from rviz::Display.
Definition at line 488 of file map_display.cpp.
void rviz::MapDisplay::subscribe | ( | ) | [private] |
Definition at line 138 of file map_display.cpp.
void rviz::MapDisplay::transformMap | ( | ) | [private] |
Definition at line 457 of file map_display.cpp.
void rviz::MapDisplay::unsubscribe | ( | ) | [private] |
Definition at line 159 of file map_display.cpp.
void rviz::MapDisplay::updateAlpha | ( | ) | [private, slot] |
Definition at line 164 of file map_display.cpp.
void rviz::MapDisplay::updateDrawUnder | ( | ) | [private, slot] |
Definition at line 193 of file map_display.cpp.
void rviz::MapDisplay::updateTopic | ( | ) | [private, slot] |
Definition at line 215 of file map_display.cpp.
FloatProperty* rviz::MapDisplay::alpha_property_ [private] |
Definition at line 124 of file map_display.h.
Property* rviz::MapDisplay::draw_under_property_ [private] |
Definition at line 125 of file map_display.h.
std::string rviz::MapDisplay::frame_ [private] |
Definition at line 113 of file map_display.h.
int rviz::MapDisplay::height_ [private] |
Definition at line 110 of file map_display.h.
IntProperty* rviz::MapDisplay::height_property_ [private] |
Definition at line 121 of file map_display.h.
bool rviz::MapDisplay::loaded_ [private] |
Definition at line 105 of file map_display.h.
Ogre::ManualObject* rviz::MapDisplay::manual_object_ [private] |
Definition at line 102 of file map_display.h.
nav_msgs::OccupancyGrid::ConstPtr rviz::MapDisplay::map_ [private] |
Definition at line 114 of file map_display.h.
ros::Subscriber rviz::MapDisplay::map_sub_ [private] |
Definition at line 116 of file map_display.h.
Ogre::MaterialPtr rviz::MapDisplay::material_ [private] |
Definition at line 104 of file map_display.h.
Ogre::Quaternion rviz::MapDisplay::orientation_ [private] |
Definition at line 112 of file map_display.h.
Definition at line 123 of file map_display.h.
Ogre::Vector3 rviz::MapDisplay::position_ [private] |
Definition at line 111 of file map_display.h.
Definition at line 122 of file map_display.h.
float rviz::MapDisplay::resolution_ [private] |
Definition at line 108 of file map_display.h.
Definition at line 119 of file map_display.h.
Ogre::SceneNode* rviz::MapDisplay::scene_node_ [private] |
Definition at line 101 of file map_display.h.
Ogre::TexturePtr rviz::MapDisplay::texture_ [private] |
Definition at line 103 of file map_display.h.
std::string rviz::MapDisplay::topic_ [private] |
Definition at line 107 of file map_display.h.
Definition at line 118 of file map_display.h.
int rviz::MapDisplay::width_ [private] |
Definition at line 109 of file map_display.h.
IntProperty* rviz::MapDisplay::width_property_ [private] |
Definition at line 120 of file map_display.h.