Public Member Functions | Static Public Attributes | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
rviz_mesh_plugin::TriangleMeshDisplay Class Reference

TriangleMeshDisplay. More...

#include <trianglemesh_display.h>

Inheritance diagram for rviz_mesh_plugin::TriangleMeshDisplay:
Inheritance graph
[legend]

Public Member Functions

 TriangleMeshDisplay ()
 Constructor. More...
 
 ~TriangleMeshDisplay ()
 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
 
void load (const Config &config) override
 
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=QString(), bool default_value=false, const QString &description=QString(), Property *parent=nullptr, const char *changed_slot=nullptr, QObject *receiver=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 ()
 
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 ()
 
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=nullptr, const char *changed_slot=nullptr, QObject *receiver=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
 

Static Public Attributes

static size_t displayCounter = 0
 Counter for the number of displays. More...
 

Protected Member Functions

void fixedFrameChanged ()
 Sets the fixed frame. More...
 
void incomingMessage (const mesh_msgs::TriangleMeshStamped::ConstPtr &meshMsg)
 Tests if messages are valid, calls processMessage(). More...
 
void onDisable ()
 Calls unsubscribe() and reset() if display is disabled. More...
 
void onEnable ()
 Calls subscribe() if display is enabled. More...
 
void onInitialize ()
 Initialises all nessessary things to get started. More...
 
void reset ()
 Clears whole stored data. More...
 
void subscribe ()
 Set the topics to subscribe. More...
 
void unsubscribe ()
 Unsubscribes all topics. More...
 
- 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)
 

Private Slots

void updateMesh ()
 Updates material for each mesh displayed by trianglemesh_visual. More...
 
void updateMeshBufferSize ()
 Sets capacity of trianglemesh_visual. More...
 
void updateSynchronizer ()
 Updates the topic synchronizer. More...
 
void updateTopic ()
 Updates the subscribed topic. More...
 

Private Member Functions

void processMessage (const mesh_msgs::TriangleMeshStamped::ConstPtr &meshMsg)
 Sets data for trianglemesh_visual and updates the mesh. More...
 

Private Attributes

size_t m_displayID
 DisplayID. More...
 
rviz::EnumPropertym_displayType
 Property to select the display type. More...
 
rviz::FloatPropertym_facesAlpha
 Property to set faces transparency. More...
 
rviz::ColorPropertym_facesColor
 Property to set faces color. More...
 
rviz::BoolPropertym_facesTriangleColors
 Property to use the triangle colors. More...
 
rviz::BoolPropertym_facesVertexColors
 Property to use the vertex colors. More...
 
rviz::IntPropertym_meshBufferSize
 Property to set meshBufferSize. More...
 
size_t m_meshCounter
 Counter for the meshes. More...
 
message_filters::Subscriber< mesh_msgs::TriangleMeshStamped > m_meshSubscriber
 Subscriber for meshMsg. More...
 
rviz::RosTopicPropertym_meshTopic
 Property to handle topic for meshMsg. More...
 
boost::circular_buffer< boost::shared_ptr< TriangleMeshVisual > > m_meshVisuals
 Shared pointer to store the created objects of trianglemesh_visual. More...
 
uint32_t m_messagesReceived
 Counter for the received messages. More...
 
rviz::FloatPropertym_normalsAlpha
 Property to set the transparency of the normals. More...
 
rviz::ColorPropertym_normalsColor
 Property to set the color of the normals. More...
 
rviz::FloatPropertym_scalingFactor
 Property to set the size of the normals. More...
 
rviz::BoolPropertym_showNormals
 Property to select the normals. More...
 
rviz::BoolPropertym_showWireframe
 Property to select the wireframe. More...
 
message_filters::Cache< mesh_msgs::TriangleMeshStamped > * m_synchronizer
 Synchronizer for meshMsgs. More...
 
tf2_ros::MessageFilter< mesh_msgs::TriangleMeshStamped > * m_tfMeshFilter
 Messagefilter for meshMsg. More...
 
rviz::FloatPropertym_wireframeAlpha
 Property to set wireframe transparency. More...
 
rviz::ColorPropertym_wireframeColor
 Property to set wireframe color. More...
 

Additional Inherited Members

- 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)
 
- 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)
 
- 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

TriangleMeshDisplay.

Class to show options in rviz window.

Definition at line 86 of file trianglemesh_display.h.

Constructor & Destructor Documentation

◆ TriangleMeshDisplay()

rviz_mesh_plugin::TriangleMeshDisplay::TriangleMeshDisplay ( )

Constructor.

Definition at line 79 of file trianglemesh_display.cpp.

◆ ~TriangleMeshDisplay()

rviz_mesh_plugin::TriangleMeshDisplay::~TriangleMeshDisplay ( )

Destructor.

Definition at line 212 of file trianglemesh_display.cpp.

Member Function Documentation

◆ fixedFrameChanged()

void rviz_mesh_plugin::TriangleMeshDisplay::fixedFrameChanged ( )
protectedvirtual

Sets the fixed frame.

Reimplemented from rviz::Display.

Definition at line 313 of file trianglemesh_display.cpp.

◆ incomingMessage()

void rviz_mesh_plugin::TriangleMeshDisplay::incomingMessage ( const mesh_msgs::TriangleMeshStamped::ConstPtr &  meshMsg)
protected

Tests if messages are valid, calls processMessage().

Parameters
meshMsgMessage containing geometry information

Definition at line 319 of file trianglemesh_display.cpp.

◆ onDisable()

void rviz_mesh_plugin::TriangleMeshDisplay::onDisable ( )
protectedvirtual

Calls unsubscribe() and reset() if display is disabled.

Reimplemented from rviz::Display.

Definition at line 307 of file trianglemesh_display.cpp.

◆ onEnable()

void rviz_mesh_plugin::TriangleMeshDisplay::onEnable ( )
protectedvirtual

Calls subscribe() if display is enabled.

Reimplemented from rviz::Display.

Definition at line 302 of file trianglemesh_display.cpp.

◆ onInitialize()

void rviz_mesh_plugin::TriangleMeshDisplay::onInitialize ( )
protectedvirtual

Initialises all nessessary things to get started.

Reimplemented from rviz::Display.

Definition at line 218 of file trianglemesh_display.cpp.

◆ processMessage()

void rviz_mesh_plugin::TriangleMeshDisplay::processMessage ( const mesh_msgs::TriangleMeshStamped::ConstPtr &  meshMsg)
private

Sets data for trianglemesh_visual and updates the mesh.

Parameters
meshMsgMessage containing geometry information

Definition at line 374 of file trianglemesh_display.cpp.

◆ reset()

void rviz_mesh_plugin::TriangleMeshDisplay::reset ( )
protectedvirtual

Clears whole stored data.

Reimplemented from rviz::Display.

Definition at line 238 of file trianglemesh_display.cpp.

◆ subscribe()

void rviz_mesh_plugin::TriangleMeshDisplay::subscribe ( )
protected

Set the topics to subscribe.

Definition at line 254 of file trianglemesh_display.cpp.

◆ unsubscribe()

void rviz_mesh_plugin::TriangleMeshDisplay::unsubscribe ( )
protected

Unsubscribes all topics.

Definition at line 291 of file trianglemesh_display.cpp.

◆ updateMesh

void rviz_mesh_plugin::TriangleMeshDisplay::updateMesh ( )
privateslot

Updates material for each mesh displayed by trianglemesh_visual.

Definition at line 332 of file trianglemesh_display.cpp.

◆ updateMeshBufferSize

void rviz_mesh_plugin::TriangleMeshDisplay::updateMeshBufferSize ( )
privateslot

Sets capacity of trianglemesh_visual.

Definition at line 326 of file trianglemesh_display.cpp.

◆ updateSynchronizer

void rviz_mesh_plugin::TriangleMeshDisplay::updateSynchronizer ( )
privateslot

Updates the topic synchronizer.

◆ updateTopic

void rviz_mesh_plugin::TriangleMeshDisplay::updateTopic ( )
privateslot

Updates the subscribed topic.

Definition at line 246 of file trianglemesh_display.cpp.

Member Data Documentation

◆ displayCounter

size_t rviz_mesh_plugin::TriangleMeshDisplay::displayCounter = 0
static

Counter for the number of displays.

Definition at line 91 of file trianglemesh_display.h.

◆ m_displayID

size_t rviz_mesh_plugin::TriangleMeshDisplay::m_displayID
private

DisplayID.

Definition at line 193 of file trianglemesh_display.h.

◆ m_displayType

rviz::EnumProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_displayType
private

Property to select the display type.

Definition at line 229 of file trianglemesh_display.h.

◆ m_facesAlpha

rviz::FloatProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_facesAlpha
private

Property to set faces transparency.

Definition at line 211 of file trianglemesh_display.h.

◆ m_facesColor

rviz::ColorProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_facesColor
private

Property to set faces color.

Definition at line 208 of file trianglemesh_display.h.

◆ m_facesTriangleColors

rviz::BoolProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_facesTriangleColors
private

Property to use the triangle colors.

Definition at line 217 of file trianglemesh_display.h.

◆ m_facesVertexColors

rviz::BoolProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_facesVertexColors
private

Property to use the vertex colors.

Definition at line 214 of file trianglemesh_display.h.

◆ m_meshBufferSize

rviz::IntProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_meshBufferSize
private

Property to set meshBufferSize.

Definition at line 199 of file trianglemesh_display.h.

◆ m_meshCounter

size_t rviz_mesh_plugin::TriangleMeshDisplay::m_meshCounter
private

Counter for the meshes.

Definition at line 190 of file trianglemesh_display.h.

◆ m_meshSubscriber

message_filters::Subscriber<mesh_msgs::TriangleMeshStamped> rviz_mesh_plugin::TriangleMeshDisplay::m_meshSubscriber
private

Subscriber for meshMsg.

Definition at line 175 of file trianglemesh_display.h.

◆ m_meshTopic

rviz::RosTopicProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_meshTopic
private

Property to handle topic for meshMsg.

Definition at line 196 of file trianglemesh_display.h.

◆ m_meshVisuals

boost::circular_buffer<boost::shared_ptr<TriangleMeshVisual> > rviz_mesh_plugin::TriangleMeshDisplay::m_meshVisuals
private

Shared pointer to store the created objects of trianglemesh_visual.

Definition at line 187 of file trianglemesh_display.h.

◆ m_messagesReceived

uint32_t rviz_mesh_plugin::TriangleMeshDisplay::m_messagesReceived
private

Counter for the received messages.

Definition at line 184 of file trianglemesh_display.h.

◆ m_normalsAlpha

rviz::FloatProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_normalsAlpha
private

Property to set the transparency of the normals.

Definition at line 226 of file trianglemesh_display.h.

◆ m_normalsColor

rviz::ColorProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_normalsColor
private

Property to set the color of the normals.

Definition at line 223 of file trianglemesh_display.h.

◆ m_scalingFactor

rviz::FloatProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_scalingFactor
private

Property to set the size of the normals.

Definition at line 220 of file trianglemesh_display.h.

◆ m_showNormals

rviz::BoolProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_showNormals
private

Property to select the normals.

Definition at line 235 of file trianglemesh_display.h.

◆ m_showWireframe

rviz::BoolProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_showWireframe
private

Property to select the wireframe.

Definition at line 232 of file trianglemesh_display.h.

◆ m_synchronizer

message_filters::Cache<mesh_msgs::TriangleMeshStamped>* rviz_mesh_plugin::TriangleMeshDisplay::m_synchronizer
private

Synchronizer for meshMsgs.

Definition at line 181 of file trianglemesh_display.h.

◆ m_tfMeshFilter

tf2_ros::MessageFilter<mesh_msgs::TriangleMeshStamped>* rviz_mesh_plugin::TriangleMeshDisplay::m_tfMeshFilter
private

Messagefilter for meshMsg.

Definition at line 178 of file trianglemesh_display.h.

◆ m_wireframeAlpha

rviz::FloatProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_wireframeAlpha
private

Property to set wireframe transparency.

Definition at line 205 of file trianglemesh_display.h.

◆ m_wireframeColor

rviz::ColorProperty* rviz_mesh_plugin::TriangleMeshDisplay::m_wireframeColor
private

Property to set wireframe color.

Definition at line 202 of file trianglemesh_display.h.


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


rviz_mesh_plugin
Author(s): Sebastian Pütz , Henning Deeken , Marcel Mrozinski , Kristin Schmidt , Jan Philipp Vogtherr
autogenerated on Fri Feb 12 2021 04:03:57