Displays a nav_grid (of unspecified type) along the XY plane. More...
#include <nav_grid_display.h>
Signals | |
void | mapUpdated (const nav_core2::UIntBounds &updated_bounds) |
Custom signal emitted when new map data is received. More... | |
Signals inherited from rviz::Display | |
void | timeSignal (rviz::Display *display, ros::Time time) |
Signals inherited from rviz::Property | |
void | aboutToChange () |
void | changed () |
void | childListChanged (Property *this_property) |
Public Member Functions | |
NavGridDisplay (const std::string &data_type, bool include_ignore_property=false) | |
Constructor for the display. More... | |
virtual | ~NavGridDisplay () |
Public overrides from Display | |
void | reset () override |
void | setTopic (const QString &topic, const QString &datatype) override |
void | update (float wall_dt, float ros_dt) override |
Public Member Functions inherited from rviz::Display | |
virtual void | deleteStatus (const QString &name) |
void | deleteStatusStd (const std::string &name) |
Display () | |
void | emitTimeSignal (ros::Time time) |
QWidget * | getAssociatedWidget () const |
PanelDockWidget * | getAssociatedWidgetPanel () |
virtual QString | getClassId () const |
Ogre::SceneNode * | getSceneNode () const |
virtual QVariant | getViewData (int column, int role) const |
virtual Qt::ItemFlags | getViewFlags (int column) const |
uint32_t | getVisibilityBits () |
void | initialize (DisplayContext *context) |
bool | isEnabled () const |
virtual void | load (const Config &config) |
virtual void | save (Config config) const |
void | setAssociatedWidget (QWidget *widget) |
virtual void | setClassId (const QString &class_id) |
void | setFixedFrame (const QString &fixed_frame) |
void | setName (const QString &name) |
virtual void | setStatus (StatusProperty::Level level, const QString &name, const QString &text) |
void | setStatusStd (StatusProperty::Level level, const std::string &name, const std::string &text) |
void | setVisibilityBits (uint32_t bits) |
void | unsetVisibilityBits (uint32_t bits) |
virtual | ~Display () |
Public Member Functions inherited from rviz::BoolProperty | |
BoolProperty (const QString &name=QString(), bool default_value=false, const QString &description=QString(), Property *parent=0, const char *changed_slot=0, QObject *receiver=0) | |
virtual bool | getBool () const |
virtual bool | getDisableChildren () |
bool | getDisableChildrenIfFalse () |
void | setDisableChildrenIfFalse (bool disable) |
virtual | ~BoolProperty () |
Public Member Functions inherited from rviz::Property | |
virtual void | addChild (Property *child, int index=-1) |
Property * | childAt (int index) const |
virtual Property * | childAtUnchecked (int index) const |
virtual void | collapse () |
bool | contains (Property *possible_child) const |
virtual QWidget * | createEditor (QWidget *parent, const QStyleOptionViewItem &option) |
virtual void | expand () |
virtual QString | getDescription () const |
virtual bool | getHidden () const |
virtual QIcon | getIcon () const |
PropertyTreeModel * | getModel () const |
virtual QString | getName () const |
std::string | getNameStd () const |
Property * | getParent () const |
virtual bool | getReadOnly () |
virtual QVariant | getValue () const |
void | hide () |
bool | isAncestorOf (Property *possible_child) const |
virtual void | moveChild (int from_index, int to_index) |
virtual int | numChildren () const |
virtual bool | paint (QPainter *painter, const QStyleOptionViewItem &option) const |
Property (const QString &name=QString(), const QVariant default_value=QVariant(), const QString &description=QString(), Property *parent=0, const char *changed_slot=0, QObject *receiver=0) | |
virtual void | removeChildren (int start_index=0, int count=-1) |
int | rowNumberInParent () const |
virtual void | setDescription (const QString &description) |
virtual void | setHidden (bool hidden) |
virtual void | setIcon (const QIcon &icon) |
void | setModel (PropertyTreeModel *model) |
void | setParent (Property *new_parent) |
virtual void | setReadOnly (bool read_only) |
void | setShouldBeSaved (bool save) |
virtual bool | setValue (const QVariant &new_value) |
bool | shouldBeSaved () const |
void | show () |
virtual Property * | subProp (const QString &sub_name) |
Property * | takeChild (Property *child) |
virtual Property * | takeChildAt (int index) |
virtual | ~Property () |
Protected Types | |
enum | IgnoreType { IgnoreType::NONE, IgnoreType::VALUE, IgnoreType::LIMIT } |
Protected Slots | |
Custom events triggered by changing properties | |
void | updateAlpha () |
void | updateTopic () |
void | updatePalette () |
void | showMap (const nav_core2::UIntBounds &updated_bounds) |
virtual void | updateIgnoreType () |
virtual void | updateIgnore () |
Protected Member Functions | |
void | clear () |
Clear the data and remove the objects from the screen. More... | |
IgnoreType | getIgnoreType () const |
virtual void | onSubscribe (const std::string &topic) |
Actual subscription logic, called by subscribe. More... | |
virtual void | onUnsubscribe () |
Actual unsubscription logic, called by unsubscribe. More... | |
void | subscribe () |
Called to trigger subscription, handles empty topics setting status. More... | |
void | transformMap () |
Put the map in its proper place. More... | |
void | unsubscribe () |
Called to trigger unsubscribing. More... | |
Protected overrides from Display | |
void | onInitialize () override |
void | fixedFrameChanged () override |
void | onEnable () override |
void | onDisable () override |
Protected Member Functions inherited from rviz::Display | |
virtual void | clearStatuses () |
bool | initialized () const |
Protected Member Functions inherited from rviz::Property | |
void | loadValue (const Config &config) |
Protected Attributes | |
rviz::FloatProperty * | alpha_property_ |
nav_grid::NavGridInfo | cached_info_ |
std::vector< std::string > | color_scheme_names_ |
rviz::EnumProperty * | color_scheme_property_ |
rviz::BoolProperty * | draw_behind_property_ |
rviz::IntProperty * | height_property_ |
rviz::FloatProperty * | ignore_property_ |
rviz::EnumProperty * | ignore_type_property_ |
pluginlib::ClassLoader< NavGridPalette > | palette_loader_ |
nav_grid::VectorNavGrid< unsigned char > | panel_data_ |
OgrePanel::Ptr | panel_display_ |
rviz::FloatProperty * | resolution_property_ |
rviz::RosTopicProperty * | topic_property_ |
rviz::BoolProperty * | unreliable_property_ |
rviz::IntProperty * | width_property_ |
Protected Attributes inherited from rviz::Display | |
DisplayContext * | context_ |
QString | fixed_frame_ |
Ogre::SceneManager * | scene_manager_ |
Ogre::SceneNode * | scene_node_ |
ros::NodeHandle | threaded_nh_ |
ros::NodeHandle | update_nh_ |
Protected Attributes inherited from rviz::Property | |
bool | child_indexes_valid_ |
QIcon | icon_ |
PropertyTreeModel * | model_ |
QVariant | value_ |
Additional Inherited Members | |
Public Slots inherited from rviz::Display | |
virtual void | onEnableChanged () |
void | queueRender () |
void | setEnabled (bool enabled) |
virtual void | setIcon (const QIcon &icon) |
Public Slots inherited from rviz::BoolProperty | |
bool | setBool (bool value) |
Displays a nav_grid (of unspecified type) along the XY plane.
The actual object is rendered using the OgrePanel class. This class contains the rviz/QT logic for displaying the options/properties in the Displays list and connecting changes there to the appropriate events.
This class does not subscribe to any data. That functionality is relegated to subclasses which will specify the underlying data type and possibly translate it.
Definition at line 72 of file nav_grid_display.h.
|
strongprotected |
Enumerator | |
---|---|
NONE | |
VALUE | |
LIMIT |
Definition at line 121 of file nav_grid_display.h.
|
explicit |
Constructor for the display.
data_type | The string representing the datatype (needed for setting up topic_property_) |
include_ignore_property | Whether to include the ignore property, which is only needed by some subclasses |
Specifying the ignore_property_ in the subclass would necessitate defining a separate MOC generating header for each subclass, which is a little bit of a pain, so instead, it is included in this, the parent class for a bit of cleanliness.
Definition at line 54 of file nav_grid_display.cpp.
|
virtual |
Definition at line 107 of file nav_grid_display.cpp.
|
protected |
Clear the data and remove the objects from the screen.
Definition at line 292 of file nav_grid_display.cpp.
|
overrideprotectedvirtual |
Reimplemented from rviz::Display.
Definition at line 166 of file nav_grid_display.cpp.
|
inlineprotected |
Definition at line 122 of file nav_grid_display.h.
|
signal |
Custom signal emitted when new map data is received.
|
overrideprotectedvirtual |
Reimplemented from rviz::Display.
Definition at line 141 of file nav_grid_display.cpp.
|
overrideprotectedvirtual |
Reimplemented from rviz::Display.
Definition at line 136 of file nav_grid_display.cpp.
|
overrideprotectedvirtual |
Reimplemented from rviz::Display.
Definition at line 116 of file nav_grid_display.cpp.
|
inlineprotectedvirtual |
Actual subscription logic, called by subscribe.
topic | Nonempty string with topic to subscribe to |
Reimplemented in robot_nav_rviz_plugins::NavGridOfDoublesDisplay, robot_nav_rviz_plugins::NavGridOfCharsDisplay, and robot_nav_rviz_plugins::OccupancyGridDisplay.
Definition at line 147 of file nav_grid_display.h.
|
inlineprotectedvirtual |
Actual unsubscription logic, called by unsubscribe.
Reimplemented in robot_nav_rviz_plugins::NavGridOfDoublesDisplay, robot_nav_rviz_plugins::OccupancyGridDisplay, and robot_nav_rviz_plugins::NavGridOfCharsDisplay.
Definition at line 159 of file nav_grid_display.h.
|
overridevirtual |
Reimplemented from rviz::Display.
Definition at line 147 of file nav_grid_display.cpp.
|
overridevirtual |
Reimplemented from rviz::Display.
Definition at line 155 of file nav_grid_display.cpp.
|
protectedslot |
Definition at line 194 of file nav_grid_display.cpp.
|
protected |
Called to trigger subscription, handles empty topics setting status.
Actual subscription logic should be handled by subclass via onSubscribe method
Definition at line 263 of file nav_grid_display.cpp.
|
protected |
Put the map in its proper place.
Definition at line 298 of file nav_grid_display.cpp.
|
protected |
Called to trigger unsubscribing.
Actual unsubscribing logic should be handled by subclass via onUnsubscribe method
Definition at line 287 of file nav_grid_display.cpp.
|
overridevirtual |
Reimplemented from rviz::Display.
Definition at line 160 of file nav_grid_display.cpp.
|
protectedslot |
Definition at line 175 of file nav_grid_display.cpp.
|
inlineprotectedvirtualslot |
Reimplemented in robot_nav_rviz_plugins::NavGridOfDoublesDisplay.
Definition at line 115 of file nav_grid_display.h.
|
protectedvirtualslot |
Definition at line 244 of file nav_grid_display.cpp.
|
protectedslot |
Definition at line 187 of file nav_grid_display.cpp.
|
protectedslot |
Definition at line 180 of file nav_grid_display.cpp.
|
protected |
Definition at line 186 of file nav_grid_display.h.
|
protected |
Definition at line 177 of file nav_grid_display.h.
|
protected |
Definition at line 196 of file nav_grid_display.h.
|
protected |
Definition at line 189 of file nav_grid_display.h.
|
protected |
Definition at line 188 of file nav_grid_display.h.
|
protected |
Definition at line 182 of file nav_grid_display.h.
|
protected |
Definition at line 193 of file nav_grid_display.h.
|
protected |
Definition at line 192 of file nav_grid_display.h.
|
protected |
Definition at line 197 of file nav_grid_display.h.
|
protected |
Definition at line 176 of file nav_grid_display.h.
|
protected |
Definition at line 173 of file nav_grid_display.h.
|
protected |
Definition at line 180 of file nav_grid_display.h.
|
protected |
Definition at line 185 of file nav_grid_display.h.
|
protected |
Definition at line 187 of file nav_grid_display.h.
|
protected |
Definition at line 181 of file nav_grid_display.h.