Master display for the Mesh- and Cluster- subdisplays. THis implementation uses HDF5 as it's data source. More...
#include <MapDisplay.hpp>

Public Slots | |
| shared_ptr< Geometry > | getGeometry () |
| Get the geometry. More... | |
| void | saveLabel (Cluster cluster) |
| Saves a label to HDF5. More... | |
Public Slots inherited from rviz::Display | |
| virtual void | onEnableChanged () |
| void | queueRender () |
| void | setEnabled (bool enabled) |
| void | setIcon (const QIcon &icon) override |
Public Slots inherited from rviz::BoolProperty | |
| bool | setBool (bool value) |
Public Member Functions | |
| virtual void | load (const rviz::Config &config) |
| MapDisplay () | |
| Constructor. More... | |
| ~MapDisplay () | |
| Destructor. More... | |
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 |
| QVariant | getViewData (int column, int role) const override |
| Qt::ItemFlags | getViewFlags (int column) const override |
| uint32_t | getVisibilityBits () |
| void | initialize (DisplayContext *context) |
| bool | isEnabled () const |
| virtual void | reset () |
| void | save (Config config) const override |
| void | setAssociatedWidget (QWidget *widget) |
| virtual void | setClassId (const QString &class_id) |
| void | setFixedFrame (const QString &fixed_frame) |
| void | setName (const QString &name) override |
| 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) |
| virtual void | setTopic (const QString &topic, const QString &datatype) |
| void | setVisibilityBits (uint32_t bits) |
| void | unsetVisibilityBits (uint32_t bits) |
| virtual void | update (float wall_dt, float ros_dt) |
| ~Display () override | |
Public Member Functions inherited from rviz::BoolProperty | |
| BoolProperty (const QString &name, bool default_value, const QString &description, P *parent, Func &&changed_slot) | |
| BoolProperty (const QString &name, bool default_value, const QString &description, Property *parent, Func &&changed_slot, const R *receiver) | |
| BoolProperty (const QString &name=QString(), bool default_value=false, const QString &description=QString(), Property *parent=nullptr) | |
| virtual bool | getBool () const |
| bool | getDisableChildren () override |
| bool | getDisableChildrenIfFalse () |
| void | setDisableChildrenIfFalse (bool disable) |
| ~BoolProperty () override | |
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 () |
| std::enable_if<!QtPrivate::FunctionPointer< Func >::IsPointerToMemberFunction, QMetaObject::Connection >::type | connect (const QObject *context, Func &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
| QMetaObject::Connection | connect (const QObject *receiver, const char *slot, Qt::ConnectionType type=Qt::AutoConnection) |
| std::enable_if< QtPrivate::FunctionPointer< Func >::IsPointerToMemberFunction, QMetaObject::Connection >::type | connect (const R *receiver, Func &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
| std::enable_if<!QtPrivate::FunctionPointer< Func >::IsPointerToMemberFunction, QMetaObject::Connection >::type | connect (Func &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
| 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 () const |
| virtual QVariant | getValue () const |
| void | hide () |
| void | insertChildSorted (Property *child) |
| 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, const QVariant &default_value, const QString &description, P *parent, Func &&changed_slot) | |
| Property (const QString &name, const QVariant &default_value, const QString &description, Property *parent, Func &&changed_slot, const R *receiver) | |
| Property (const QString &name=QString(), const QVariant &default_value=QVariant(), const QString &description=QString(), Property *parent=nullptr) | |
| 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) |
| ~Property () override | |
Private Slots | |
| void | updateMap () |
| Update the map, based on the current data state. More... | |
Private Member Functions | |
| rviz::Display * | createDisplay (const QString &class_id) |
| Create a RViz display from it's unique class_id. More... | |
| bool | loadData () |
| Read all data from the HDF5 file and save it in the member variables. More... | |
| void | onDisable () |
| RViz callback on disable. More... | |
| void | onEnable () |
| RViz callback on enable. More... | |
| void | onInitialize () |
| RViz callback on initialize. More... | |
Private Attributes | |
| rviz_map_plugin::ClusterLabelDisplay * | m_clusterLabelDisplay |
| Subdisplay: ClusterLabel (for showing the clusters) More... | |
| vector< Cluster > | m_clusterList |
| Clusters. More... | |
| vector< Color > | m_colors |
| Colors. More... | |
| std::map< std::string, std::vector< float > > | m_costs |
| shared_ptr< Geometry > | m_geometry |
| Geometry. More... | |
| std::string | m_map_file_loaded |
| rviz::FileProperty * | m_mapFilePath |
| Path to map file. More... | |
| vector< Material > | m_materials |
| Materials. More... | |
| rviz_map_plugin::MeshDisplay * | m_meshDisplay |
| Subdisplay: MeshDisplay (for showing the mesh) More... | |
| std::shared_ptr< ros::NodeHandle > | m_nh |
| std::shared_ptr< ros::NodeHandle > | m_nh_p |
| vector< Normal > | m_normals |
| Vertex normals. More... | |
| vector< TexCoords > | m_texCoords |
| Texture coordinates. More... | |
| vector< Texture > | m_textures |
| Textures. More... | |
Additional Inherited Members | |
Signals inherited from rviz::Display | |
| void | timeSignal (ros::Time time, QPrivateSignal) |
Signals inherited from rviz::Property | |
| void | aboutToChange () |
| void | changed () |
| void | childListChanged (Property *this_property) |
Protected Member Functions inherited from rviz::Display | |
| virtual void | clearStatuses () |
| virtual void | fixedFrameChanged () |
| bool | initialized () const |
Protected Member Functions inherited from rviz::Property | |
| void | loadValue (const Config &config) |
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_ |
Master display for the Mesh- and Cluster- subdisplays. THis implementation uses HDF5 as it's data source.
Definition at line 139 of file MapDisplay.hpp.
| rviz_map_plugin::MapDisplay::MapDisplay | ( | ) |
Constructor.
Definition at line 71 of file MapDisplay.cpp.
| rviz_map_plugin::MapDisplay::~MapDisplay | ( | ) |
Destructor.
Definition at line 77 of file MapDisplay.cpp.
|
private |
Create a RViz display from it's unique class_id.
| class_id | The class ID |
Definition at line 96 of file MapDisplay.cpp.
|
slot |
|
virtual |
Reimplemented from rviz::Display.
Definition at line 153 of file MapDisplay.cpp.
|
private |
Read all data from the HDF5 file and save it in the member variables.
Definition at line 217 of file MapDisplay.cpp.
|
privatevirtual |
RViz callback on disable.
Reimplemented from rviz::Display.
Definition at line 144 of file MapDisplay.cpp.
|
privatevirtual |
RViz callback on enable.
Reimplemented from rviz::Display.
Definition at line 138 of file MapDisplay.cpp.
|
privatevirtual |
RViz callback on initialize.
Reimplemented from rviz::Display.
Definition at line 108 of file MapDisplay.cpp.
|
slot |
Saves a label to HDF5.
| cluster | The cluster to be saved |
Definition at line 456 of file MapDisplay.cpp.
|
privateslot |
Update the map, based on the current data state.
Definition at line 178 of file MapDisplay.cpp.
|
private |
Subdisplay: ClusterLabel (for showing the clusters)
Definition at line 225 of file MapDisplay.hpp.
|
private |
Clusters.
Definition at line 213 of file MapDisplay.hpp.
|
private |
Colors.
Definition at line 207 of file MapDisplay.hpp.
|
private |
Definition at line 215 of file MapDisplay.hpp.
|
private |
Definition at line 201 of file MapDisplay.hpp.
|
private |
Definition at line 222 of file MapDisplay.hpp.
|
private |
Path to map file.
Definition at line 221 of file MapDisplay.hpp.
|
private |
Materials.
Definition at line 203 of file MapDisplay.hpp.
|
private |
Subdisplay: MeshDisplay (for showing the mesh)
Definition at line 227 of file MapDisplay.hpp.
|
private |
Definition at line 217 of file MapDisplay.hpp.
|
private |
Definition at line 218 of file MapDisplay.hpp.
|
private |
Vertex normals.
Definition at line 209 of file MapDisplay.hpp.
|
private |
Texture coordinates.
Definition at line 211 of file MapDisplay.hpp.
|
private |
Textures.
Definition at line 205 of file MapDisplay.hpp.