rviz::MapDisplay Class Reference

Displays a map along the XY plane. More...

#include <map_display.h>

Inheritance diagram for rviz::MapDisplay:
Inheritance graph
[legend]

List of all members.

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

FloatPropertyalpha_property_
Propertydraw_under_property_
std::string frame_
int height_
IntPropertyheight_property_
bool loaded_
Ogre::ManualObject * manual_object_
nav_msgs::OccupancyGrid::ConstPtr map_
ros::Subscriber map_sub_
Ogre::MaterialPtr material_
Ogre::Quaternion orientation_
QuaternionPropertyorientation_property_
Ogre::Vector3 position_
VectorPropertyposition_property_
float resolution_
FloatPropertyresolution_property_
Ogre::SceneNode * scene_node_
Ogre::TexturePtr texture_
std::string topic_
RosTopicPropertytopic_property_
int width_
IntPropertywidth_property_

Detailed Description

Displays a map along the XY plane.

Definition at line 64 of file map_display.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

Definition at line 124 of file map_display.h.

Definition at line 125 of file map_display.h.

std::string rviz::MapDisplay::frame_ [private]

Definition at line 113 of file map_display.h.

Definition at line 110 of file map_display.h.

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.

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.

Definition at line 120 of file map_display.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


rviz
Author(s): Dave Hershberger, Josh Faust
autogenerated on Wed Jun 6 11:25:47 2012