Public Slots | Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
rviz_map_plugin::MapDisplay Class Reference

Master display for the Mesh- and Cluster- subdisplays. THis implementation uses HDF5 as it's data source. More...

#include <MapDisplay.hpp>

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

Public Slots

shared_ptr< GeometrygetGeometry ()
 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
 
PanelDockWidgetgetAssociatedWidgetPanel ()
 
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)
 
PropertychildAt (int index) const
 
virtual PropertychildAtUnchecked (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
 
PropertyTreeModelgetModel () const
 
virtual QString getName () const
 
std::string getNameStd () const
 
PropertygetParent () 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 PropertysubProp (const QString &sub_name)
 
PropertytakeChild (Property *child)
 
virtual PropertytakeChildAt (int index)
 
 ~Property () override
 

Private Slots

void updateMap ()
 Update the map, based on the current data state. More...
 

Private Member Functions

rviz::DisplaycreateDisplay (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::ClusterLabelDisplaym_clusterLabelDisplay
 Subdisplay: ClusterLabel (for showing the clusters) More...
 
vector< Clusterm_clusterList
 Clusters. More...
 
vector< Colorm_colors
 Colors. More...
 
std::map< std::string, std::vector< float > > m_costs
 
shared_ptr< Geometrym_geometry
 Geometry. More...
 
std::string m_map_file_loaded
 
rviz::FilePropertym_mapFilePath
 Path to map file. More...
 
vector< Materialm_materials
 Materials. More...
 
rviz_map_plugin::MeshDisplaym_meshDisplay
 Subdisplay: MeshDisplay (for showing the mesh) More...
 
std::shared_ptr< ros::NodeHandlem_nh
 
std::shared_ptr< ros::NodeHandlem_nh_p
 
vector< Normalm_normals
 Vertex normals. More...
 
vector< TexCoordsm_texCoords
 Texture coordinates. More...
 
vector< Texturem_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
DisplayContextcontext_
 
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_
 
PropertyTreeModelmodel_
 
QVariant value_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MapDisplay()

rviz_map_plugin::MapDisplay::MapDisplay ( )

Constructor.

Definition at line 71 of file MapDisplay.cpp.

◆ ~MapDisplay()

rviz_map_plugin::MapDisplay::~MapDisplay ( )

Destructor.

Definition at line 77 of file MapDisplay.cpp.

Member Function Documentation

◆ createDisplay()

rviz::Display * rviz_map_plugin::MapDisplay::createDisplay ( const QString &  class_id)
private

Create a RViz display from it's unique class_id.

Parameters
class_idThe class ID
Returns
Pointer to RViz display

Definition at line 96 of file MapDisplay.cpp.

◆ getGeometry

std::shared_ptr< Geometry > rviz_map_plugin::MapDisplay::getGeometry ( )
slot

Get the geometry.

Returns
The geometry

Definition at line 84 of file MapDisplay.cpp.

◆ load()

void rviz_map_plugin::MapDisplay::load ( const rviz::Config config)
virtual

Reimplemented from rviz::Display.

Definition at line 153 of file MapDisplay.cpp.

◆ loadData()

bool rviz_map_plugin::MapDisplay::loadData ( )
private

Read all data from the HDF5 file and save it in the member variables.

Returns
true, if successful

Definition at line 217 of file MapDisplay.cpp.

◆ onDisable()

void rviz_map_plugin::MapDisplay::onDisable ( )
privatevirtual

RViz callback on disable.

Reimplemented from rviz::Display.

Definition at line 144 of file MapDisplay.cpp.

◆ onEnable()

void rviz_map_plugin::MapDisplay::onEnable ( )
privatevirtual

RViz callback on enable.

Reimplemented from rviz::Display.

Definition at line 138 of file MapDisplay.cpp.

◆ onInitialize()

void rviz_map_plugin::MapDisplay::onInitialize ( )
privatevirtual

RViz callback on initialize.

Reimplemented from rviz::Display.

Definition at line 108 of file MapDisplay.cpp.

◆ saveLabel

void rviz_map_plugin::MapDisplay::saveLabel ( Cluster  cluster)
slot

Saves a label to HDF5.

Parameters
clusterThe cluster to be saved

Definition at line 456 of file MapDisplay.cpp.

◆ updateMap

void rviz_map_plugin::MapDisplay::updateMap ( )
privateslot

Update the map, based on the current data state.

Definition at line 178 of file MapDisplay.cpp.

Member Data Documentation

◆ m_clusterLabelDisplay

rviz_map_plugin::ClusterLabelDisplay* rviz_map_plugin::MapDisplay::m_clusterLabelDisplay
private

Subdisplay: ClusterLabel (for showing the clusters)

Definition at line 225 of file MapDisplay.hpp.

◆ m_clusterList

vector<Cluster> rviz_map_plugin::MapDisplay::m_clusterList
private

Clusters.

Definition at line 213 of file MapDisplay.hpp.

◆ m_colors

vector<Color> rviz_map_plugin::MapDisplay::m_colors
private

Colors.

Definition at line 207 of file MapDisplay.hpp.

◆ m_costs

std::map<std::string, std::vector<float> > rviz_map_plugin::MapDisplay::m_costs
private

Definition at line 215 of file MapDisplay.hpp.

◆ m_geometry

shared_ptr<Geometry> rviz_map_plugin::MapDisplay::m_geometry
private

Geometry.

Definition at line 201 of file MapDisplay.hpp.

◆ m_map_file_loaded

std::string rviz_map_plugin::MapDisplay::m_map_file_loaded
private

Definition at line 222 of file MapDisplay.hpp.

◆ m_mapFilePath

rviz::FileProperty* rviz_map_plugin::MapDisplay::m_mapFilePath
private

Path to map file.

Definition at line 221 of file MapDisplay.hpp.

◆ m_materials

vector<Material> rviz_map_plugin::MapDisplay::m_materials
private

Materials.

Definition at line 203 of file MapDisplay.hpp.

◆ m_meshDisplay

rviz_map_plugin::MeshDisplay* rviz_map_plugin::MapDisplay::m_meshDisplay
private

Subdisplay: MeshDisplay (for showing the mesh)

Definition at line 227 of file MapDisplay.hpp.

◆ m_nh

std::shared_ptr<ros::NodeHandle> rviz_map_plugin::MapDisplay::m_nh
private

Definition at line 217 of file MapDisplay.hpp.

◆ m_nh_p

std::shared_ptr<ros::NodeHandle> rviz_map_plugin::MapDisplay::m_nh_p
private

Definition at line 218 of file MapDisplay.hpp.

◆ m_normals

vector<Normal> rviz_map_plugin::MapDisplay::m_normals
private

Vertex normals.

Definition at line 209 of file MapDisplay.hpp.

◆ m_texCoords

vector<TexCoords> rviz_map_plugin::MapDisplay::m_texCoords
private

Texture coordinates.

Definition at line 211 of file MapDisplay.hpp.

◆ m_textures

vector<Texture> rviz_map_plugin::MapDisplay::m_textures
private

Textures.

Definition at line 205 of file MapDisplay.hpp.


The documentation for this class was generated from the following files:


rviz_map_plugin
Author(s): Sebastian Pütz , Kristin Schmidt , Jan Philipp Vogtherr , Malte kleine Piening
autogenerated on Sun Jan 21 2024 04:06:25