#include <trianglemesh_display.h>

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 |
| 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 |
| 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) |
| 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 () 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 Property * | subProp (const QString &sub_name) |
| Property * | takeChild (Property *child) |
| virtual Property * | takeChildAt (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::EnumProperty * | m_displayType |
| Property to select the display type. More... | |
| rviz::FloatProperty * | m_facesAlpha |
| Property to set faces transparency. More... | |
| rviz::ColorProperty * | m_facesColor |
| Property to set faces color. More... | |
| rviz::BoolProperty * | m_facesTriangleColors |
| Property to use the triangle colors. More... | |
| rviz::BoolProperty * | m_facesVertexColors |
| Property to use the vertex colors. More... | |
| rviz::IntProperty * | m_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::RosTopicProperty * | m_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::FloatProperty * | m_normalsAlpha |
| Property to set the transparency of the normals. More... | |
| rviz::ColorProperty * | m_normalsColor |
| Property to set the color of the normals. More... | |
| rviz::FloatProperty * | m_scalingFactor |
| Property to set the size of the normals. More... | |
| rviz::BoolProperty * | m_showNormals |
| Property to select the normals. More... | |
| rviz::BoolProperty * | m_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::FloatProperty * | m_wireframeAlpha |
| Property to set wireframe transparency. More... | |
| rviz::ColorProperty * | m_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 | |
| 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_ |
Class to show options in rviz window.
Definition at line 86 of file trianglemesh_display.h.
| rviz_mesh_plugin::TriangleMeshDisplay::TriangleMeshDisplay | ( | ) |
Constructor.
Definition at line 79 of file trianglemesh_display.cpp.
| rviz_mesh_plugin::TriangleMeshDisplay::~TriangleMeshDisplay | ( | ) |
Destructor.
Definition at line 212 of file trianglemesh_display.cpp.
|
protectedvirtual |
Sets the fixed frame.
Reimplemented from rviz::Display.
Definition at line 313 of file trianglemesh_display.cpp.
|
protected |
Tests if messages are valid, calls processMessage().
| meshMsg | Message containing geometry information |
Definition at line 319 of file trianglemesh_display.cpp.
|
protectedvirtual |
Calls unsubscribe() and reset() if display is disabled.
Reimplemented from rviz::Display.
Definition at line 307 of file trianglemesh_display.cpp.
|
protectedvirtual |
Calls subscribe() if display is enabled.
Reimplemented from rviz::Display.
Definition at line 302 of file trianglemesh_display.cpp.
|
protectedvirtual |
Initialises all nessessary things to get started.
Reimplemented from rviz::Display.
Definition at line 218 of file trianglemesh_display.cpp.
|
private |
Sets data for trianglemesh_visual and updates the mesh.
| meshMsg | Message containing geometry information |
Definition at line 374 of file trianglemesh_display.cpp.
|
protectedvirtual |
Clears whole stored data.
Reimplemented from rviz::Display.
Definition at line 238 of file trianglemesh_display.cpp.
|
protected |
Set the topics to subscribe.
Definition at line 254 of file trianglemesh_display.cpp.
|
protected |
Unsubscribes all topics.
Definition at line 291 of file trianglemesh_display.cpp.
|
privateslot |
Updates material for each mesh displayed by trianglemesh_visual.
Definition at line 332 of file trianglemesh_display.cpp.
|
privateslot |
Sets capacity of trianglemesh_visual.
Definition at line 326 of file trianglemesh_display.cpp.
|
privateslot |
Updates the topic synchronizer.
|
privateslot |
Updates the subscribed topic.
Definition at line 246 of file trianglemesh_display.cpp.
|
static |
Counter for the number of displays.
Definition at line 91 of file trianglemesh_display.h.
|
private |
DisplayID.
Definition at line 193 of file trianglemesh_display.h.
|
private |
Property to select the display type.
Definition at line 229 of file trianglemesh_display.h.
|
private |
Property to set faces transparency.
Definition at line 211 of file trianglemesh_display.h.
|
private |
Property to set faces color.
Definition at line 208 of file trianglemesh_display.h.
|
private |
Property to use the triangle colors.
Definition at line 217 of file trianglemesh_display.h.
|
private |
Property to use the vertex colors.
Definition at line 214 of file trianglemesh_display.h.
|
private |
Property to set meshBufferSize.
Definition at line 199 of file trianglemesh_display.h.
|
private |
Counter for the meshes.
Definition at line 190 of file trianglemesh_display.h.
|
private |
Subscriber for meshMsg.
Definition at line 175 of file trianglemesh_display.h.
|
private |
Property to handle topic for meshMsg.
Definition at line 196 of file trianglemesh_display.h.
|
private |
Shared pointer to store the created objects of trianglemesh_visual.
Definition at line 187 of file trianglemesh_display.h.
|
private |
Counter for the received messages.
Definition at line 184 of file trianglemesh_display.h.
|
private |
Property to set the transparency of the normals.
Definition at line 226 of file trianglemesh_display.h.
|
private |
Property to set the color of the normals.
Definition at line 223 of file trianglemesh_display.h.
|
private |
Property to set the size of the normals.
Definition at line 220 of file trianglemesh_display.h.
|
private |
Property to select the normals.
Definition at line 235 of file trianglemesh_display.h.
|
private |
Property to select the wireframe.
Definition at line 232 of file trianglemesh_display.h.
|
private |
Synchronizer for meshMsgs.
Definition at line 181 of file trianglemesh_display.h.
|
private |
Messagefilter for meshMsg.
Definition at line 178 of file trianglemesh_display.h.
|
private |
Property to set wireframe transparency.
Definition at line 205 of file trianglemesh_display.h.
|
private |
Property to set wireframe color.
Definition at line 202 of file trianglemesh_display.h.