Class to show options in rviz window. More...
#include <textured_mesh_display.h>

Public Member Functions | |
| TexturedMeshDisplay () | |
| Constructor. More... | |
| ~TexturedMeshDisplay () | |
| 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 |
Protected Member Functions | |
| void | fixedFrameChanged () |
| Sets the fixed frame. More... | |
| void | incomingGeometry (const mesh_msgs::MeshGeometryStamped::ConstPtr &meshMsg) |
| Handler for incoming geometry messages. Validate data and update mesh. More... | |
| void | incomingVertexColors (const mesh_msgs::MeshVertexColorsStamped::ConstPtr &colorsStamped) |
| Handler for incoming vertex color messages. Validate data and update mesh. More... | |
| void | incomingVertexCosts (const mesh_msgs::MeshVertexCostsStamped::ConstPtr &costsStamped) |
| Handler for incoming vertex cost messages. Validate data and update mesh. 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 | initServices () |
| Initializes the used services. More... | |
| void | updateMaterialAndTextureServices () |
| Updates the material and texture services. More... | |
| 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... | |
| void | updateVertexColorService () |
| Updates the vertex color service. More... | |
| void | updateVertexCosts () |
| Update the vertex costs. More... | |
Private Member Functions | |
| void | cacheVertexCosts (const mesh_msgs::MeshVertexCostsStamped::ConstPtr costsStamped) |
| Cache function for vertex cost messages. More... | |
| boost::shared_ptr< TexturedMeshVisual > | getCurrentVisual () |
| Creates a new visual and returns shared pointer. More... | |
| boost::shared_ptr< TexturedMeshVisual > | getNewVisual () |
| Creates a new visual and returns shared pointer. More... | |
| void | initialServiceCall () |
| initial service call for UUID & geometry More... | |
| void | processMessage (const mesh_msgs::MeshGeometryStamped::ConstPtr &meshMsg) |
| Sets data for trianglemesh_visual and updates the mesh. More... | |
| void | requestMaterials (boost::shared_ptr< TexturedMeshVisual > visual, std::string uuid) |
| Requests materials from the specified service. More... | |
| void | requestVertexColors (boost::shared_ptr< TexturedMeshVisual > visual, std::string uuid) |
| Requests vertex colors from the specified service. More... | |
Private Attributes | |
| message_filters::Cache< mesh_msgs::MeshVertexColorsStamped > * | m_colorsSynchronizer |
| Synchronizer for vertex colors. More... | |
| std::map< std::string, const mesh_msgs::MeshVertexCostsStamped::ConstPtr > | m_costCache |
| Cache for received vertex cost messages. More... | |
| rviz::EnumProperty * | m_costColorType |
| Property for selecting the color type for cost display. More... | |
| rviz::FloatProperty * | m_costLowerLimit |
| Property for setting the lower limit of cost display. More... | |
| message_filters::Cache< mesh_msgs::MeshVertexCostsStamped > * | m_costsSynchronizer |
| Synchronizer for vertex costs. More... | |
| rviz::FloatProperty * | m_costUpperLimit |
| Property for setting the upper limit of cost display. More... | |
| rviz::BoolProperty * | m_costUseCustomLimits |
| Property for using custom limits for cost display. More... | |
| 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... | |
| ros::ServiceClient | m_geometryClient |
| Client to request the geometry. More... | |
| std::string | m_lastUuid |
| Uuid of the last received message. More... | |
| ros::ServiceClient | m_materialsClient |
| Client to request the materials. More... | |
| rviz::StringProperty * | m_materialServiceName |
| Property to handle service name for materials. More... | |
| rviz::IntProperty * | m_meshBufferSize |
| Property to set meshBufferSize. More... | |
| size_t | m_meshCounter |
| Counter for the meshes. More... | |
| message_filters::Subscriber< mesh_msgs::MeshGeometryStamped > | m_meshSubscriber |
| Subscriber for meshMsg. More... | |
| message_filters::Cache< mesh_msgs::MeshGeometryStamped > * | m_meshSynchronizer |
| Synchronizer for meshMsgs. More... | |
| rviz::RosTopicProperty * | m_meshTopic |
| Property to handle topic for meshMsg. More... | |
| boost::circular_buffer< boost::shared_ptr< TexturedMeshVisual > > | 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::EnumProperty * | m_selectVertexCostMap |
| Property to select different types of vertex cost maps to be shown. More... | |
| rviz::BoolProperty * | m_showNormals |
| Property to select the normals. More... | |
| rviz::BoolProperty * | m_showTexturedFacesOnly |
| Property to only show textured faces when texturizing is enabled. More... | |
| rviz::BoolProperty * | m_showWireframe |
| Property to select the wireframe. More... | |
| ros::ServiceClient | m_textureClient |
| Client to request the textures. More... | |
| rviz::StringProperty * | m_textureServiceName |
| Property to handle service name for textures. More... | |
| tf2_ros::MessageFilter< mesh_msgs::MeshGeometryStamped > * | m_tfMeshFilter |
| Messagefilter for meshMsg. More... | |
| tf2_ros::MessageFilter< mesh_msgs::MeshVertexColorsStamped > * | m_tfVertexColorsFilter |
| Messagefilter for vertex colors. More... | |
| tf2_ros::MessageFilter< mesh_msgs::MeshVertexCostsStamped > * | m_tfVertexCostsFilter |
| Messagefilter for vertex costs. More... | |
| ros::ServiceClient | m_uuidClient |
| Client to request the UUID. More... | |
| ros::ServiceClient | m_vertexColorClient |
| Client to request the vertex colors. More... | |
| rviz::StringProperty * | m_vertexColorServiceName |
| Property to handle service name for vertexColors. More... | |
| message_filters::Subscriber< mesh_msgs::MeshVertexColorsStamped > | m_vertexColorsSubscriber |
| Subscriber for vertex colors. More... | |
| rviz::RosTopicProperty * | m_vertexColorsTopic |
| Property to handle topic for vertex colors. More... | |
| message_filters::Subscriber< mesh_msgs::MeshVertexCostsStamped > | m_vertexCostsSubscriber |
| Subscriber for vertex costs. More... | |
| rviz::RosTopicProperty * | m_vertexCostsTopic |
| Property to handle topic for vertex cost maps. 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 105 of file textured_mesh_display.h.
| rviz_mesh_plugin::TexturedMeshDisplay::TexturedMeshDisplay | ( | ) |
Constructor.
Definition at line 89 of file textured_mesh_display.cpp.
| rviz_mesh_plugin::TexturedMeshDisplay::~TexturedMeshDisplay | ( | ) |
Destructor.
Definition at line 331 of file textured_mesh_display.cpp.
|
private |
Cache function for vertex cost messages.
| costsStamped | The vertex cost message |
Definition at line 557 of file textured_mesh_display.cpp.
|
protectedvirtual |
Sets the fixed frame.
Reimplemented from rviz::Display.
Definition at line 516 of file textured_mesh_display.cpp.
|
private |
Creates a new visual and returns shared pointer.
Definition at line 799 of file textured_mesh_display.cpp.
|
private |
Creates a new visual and returns shared pointer.
Definition at line 779 of file textured_mesh_display.cpp.
|
protected |
Handler for incoming geometry messages. Validate data and update mesh.
| meshMsg | The geometry |
Definition at line 583 of file textured_mesh_display.cpp.
|
protected |
Handler for incoming vertex color messages. Validate data and update mesh.
| colorsStamped | The vertex colors |
Definition at line 522 of file textured_mesh_display.cpp.
|
protected |
Handler for incoming vertex cost messages. Validate data and update mesh.
| costsStamped | The vertex costs |
Definition at line 540 of file textured_mesh_display.cpp.
|
private |
initial service call for UUID & geometry
Definition at line 376 of file textured_mesh_display.cpp.
|
privateslot |
Initializes the used services.
Definition at line 705 of file textured_mesh_display.cpp.
|
protectedvirtual |
Calls unsubscribe() and reset() if display is disabled.
Reimplemented from rviz::Display.
Definition at line 510 of file textured_mesh_display.cpp.
|
protectedvirtual |
Calls subscribe() if display is enabled.
Reimplemented from rviz::Display.
Definition at line 505 of file textured_mesh_display.cpp.
|
protectedvirtual |
Initialises all nessessary things to get started.
Reimplemented from rviz::Display.
Definition at line 337 of file textured_mesh_display.cpp.
|
private |
Sets data for trianglemesh_visual and updates the mesh.
| meshMsg | Message containing geometry information |
Definition at line 810 of file textured_mesh_display.cpp.
|
private |
Requests materials from the specified service.
| visual | Visual to which the materials will be added |
| uuid | Mesh UUID |
Definition at line 865 of file textured_mesh_display.cpp.
|
private |
Requests vertex colors from the specified service.
| visual | Visual to which the vertex colors will be added |
| uuid | Mesh UUID |
Definition at line 847 of file textured_mesh_display.cpp.
|
protectedvirtual |
Clears whole stored data.
Reimplemented from rviz::Display.
Definition at line 410 of file textured_mesh_display.cpp.
|
protected |
Set the topics to subscribe.
Definition at line 426 of file textured_mesh_display.cpp.
|
protected |
Unsubscribes all topics.
Definition at line 482 of file textured_mesh_display.cpp.
|
privateslot |
Updates the material and texture services.
Definition at line 743 of file textured_mesh_display.cpp.
|
privateslot |
Updates material for each mesh displayed by trianglemesh_visual.
Definition at line 630 of file textured_mesh_display.cpp.
|
privateslot |
Sets capacity of trianglemesh_visual.
Definition at line 590 of file textured_mesh_display.cpp.
|
privateslot |
Updates the topic synchronizer.
|
privateslot |
Updates the subscribed topic.
Definition at line 418 of file textured_mesh_display.cpp.
|
privateslot |
Updates the vertex color service.
Definition at line 716 of file textured_mesh_display.cpp.
|
privateslot |
Update the vertex costs.
Definition at line 596 of file textured_mesh_display.cpp.
|
static |
Definition at line 109 of file textured_mesh_display.h.
|
private |
Synchronizer for vertex colors.
Definition at line 283 of file textured_mesh_display.h.
|
private |
Cache for received vertex cost messages.
Definition at line 394 of file textured_mesh_display.h.
|
private |
Property for selecting the color type for cost display.
Definition at line 382 of file textured_mesh_display.h.
|
private |
Property for setting the lower limit of cost display.
Definition at line 388 of file textured_mesh_display.h.
|
private |
Synchronizer for vertex costs.
Definition at line 286 of file textured_mesh_display.h.
|
private |
Property for setting the upper limit of cost display.
Definition at line 391 of file textured_mesh_display.h.
|
private |
Property for using custom limits for cost display.
Definition at line 385 of file textured_mesh_display.h.
|
private |
DisplayID.
Definition at line 298 of file textured_mesh_display.h.
|
private |
Property to select the display type.
Definition at line 352 of file textured_mesh_display.h.
|
private |
Property to set faces transparency.
Definition at line 334 of file textured_mesh_display.h.
|
private |
Property to set faces color.
Definition at line 331 of file textured_mesh_display.h.
|
private |
Property to use the triangle colors.
Definition at line 340 of file textured_mesh_display.h.
|
private |
Property to use the vertex colors.
Definition at line 337 of file textured_mesh_display.h.
|
private |
Client to request the geometry.
Definition at line 373 of file textured_mesh_display.h.
|
private |
Uuid of the last received message.
Definition at line 301 of file textured_mesh_display.h.
|
private |
Client to request the materials.
Definition at line 364 of file textured_mesh_display.h.
|
private |
Property to handle service name for materials.
Definition at line 316 of file textured_mesh_display.h.
|
private |
Property to set meshBufferSize.
Definition at line 322 of file textured_mesh_display.h.
|
private |
Counter for the meshes.
Definition at line 295 of file textured_mesh_display.h.
|
private |
Subscriber for meshMsg.
Definition at line 262 of file textured_mesh_display.h.
|
private |
Synchronizer for meshMsgs.
Definition at line 280 of file textured_mesh_display.h.
|
private |
Property to handle topic for meshMsg.
Definition at line 304 of file textured_mesh_display.h.
|
private |
Shared pointer to store the created objects of trianglemesh_visual.
Definition at line 292 of file textured_mesh_display.h.
|
private |
Counter for the received messages.
Definition at line 289 of file textured_mesh_display.h.
|
private |
Property to set the transparency of the normals.
Definition at line 349 of file textured_mesh_display.h.
|
private |
Property to set the color of the normals.
Definition at line 346 of file textured_mesh_display.h.
|
private |
Property to set the size of the normals.
Definition at line 343 of file textured_mesh_display.h.
|
private |
Property to select different types of vertex cost maps to be shown.
Definition at line 379 of file textured_mesh_display.h.
|
private |
Property to select the normals.
Definition at line 358 of file textured_mesh_display.h.
|
private |
Property to only show textured faces when texturizing is enabled.
Definition at line 376 of file textured_mesh_display.h.
|
private |
Property to select the wireframe.
Definition at line 355 of file textured_mesh_display.h.
|
private |
Client to request the textures.
Definition at line 367 of file textured_mesh_display.h.
|
private |
Property to handle service name for textures.
Definition at line 319 of file textured_mesh_display.h.
|
private |
Messagefilter for meshMsg.
Definition at line 271 of file textured_mesh_display.h.
|
private |
Messagefilter for vertex colors.
Definition at line 274 of file textured_mesh_display.h.
|
private |
Messagefilter for vertex costs.
Definition at line 277 of file textured_mesh_display.h.
|
private |
Client to request the UUID.
Definition at line 370 of file textured_mesh_display.h.
|
private |
Client to request the vertex colors.
Definition at line 361 of file textured_mesh_display.h.
|
private |
Property to handle service name for vertexColors.
Definition at line 313 of file textured_mesh_display.h.
|
private |
Subscriber for vertex colors.
Definition at line 265 of file textured_mesh_display.h.
|
private |
Property to handle topic for vertex colors.
Definition at line 307 of file textured_mesh_display.h.
|
private |
Subscriber for vertex costs.
Definition at line 268 of file textured_mesh_display.h.
|
private |
Property to handle topic for vertex cost maps.
Definition at line 310 of file textured_mesh_display.h.
|
private |
Property to set wireframe transparency.
Definition at line 328 of file textured_mesh_display.h.
|
private |
Property to set wireframe color.
Definition at line 325 of file textured_mesh_display.h.