Public Member Functions | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | Friends | List of all members
rviz::HRITFDisplay Class Reference

Displays a visual representation of the TF hierarchy. More...

#include <hri_tf.h>

Inheritance diagram for rviz::HRITFDisplay:
Inheritance graph
[legend]

Public Member Functions

 HRITFDisplay ()
 
void update (float wall_dt, float ros_dt) override
 
 ~HRITFDisplay () override
 
- 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 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)
 
 ~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
 

Protected Member Functions

void fixedFrameChanged () override
 
void load (const Config &config) override
 
void onInitialize () override
 
void reset () override
 
- 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 Types

typedef std::map< std::string, bool > M_EnabledState
 
typedef std::map< std::string, FrameInfo * > M_FrameInfo
 

Private Slots

void allEnabledChanged ()
 
void updateShowArrows ()
 
void updateShowAxes ()
 
void updateShowFaces ()
 
void updateShowGazes ()
 
void updateShowNames ()
 
void updateshowSkeletons ()
 

Private Member Functions

void clear ()
 
FrameInfocreateFrame (const std::string &frame)
 
M_FrameInfo::iterator deleteFrame (M_FrameInfo::iterator it, bool delete_properties)
 
FrameInfogetFrameInfo (const std::string &frame)
 
void onDisable () override
 
void onEnable () override
 
void updateFrame (FrameInfo *frame)
 
void updateFrames ()
 

Private Attributes

BoolPropertyall_enabled_property_
 
FloatPropertyalpha_property_
 
Ogre::SceneNode * arrows_node_
 
Ogre::SceneNode * axes_node_
 
bool changing_single_frame_enabled_state_
 
M_EnabledState frame_config_enabled_state_
 
FloatPropertyframe_timeout_property_
 
M_FrameInfo frames_
 
Propertyframes_category_
 
hri::HRIListener hri_listener_
 
Ogre::SceneNode * names_node_
 
Ogre::SceneNode * root_node_
 
FloatPropertyscale_property_
 
BoolPropertyshow_arrows_property_
 
BoolPropertyshow_axes_property_
 
BoolPropertyshow_faces_property_
 
BoolPropertyshow_gazes_property_
 
BoolPropertyshow_names_property_
 
BoolPropertyshow_skeletons_property_
 
bool showFaces_
 
bool showGazes_
 
bool showSkeletons_
 
std::vector< std::string > skeleton_components_
 
Propertytree_category_
 
FloatPropertyupdate_rate_property_
 
float update_timer_
 

Friends

class FrameInfo
 

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 (ros::Time time, QPrivateSignal)
 
- 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

Displays a visual representation of the TF hierarchy.

Definition at line 68 of file hri_tf.h.

Member Typedef Documentation

◆ M_EnabledState

typedef std::map<std::string, bool> rviz::HRITFDisplay::M_EnabledState
private

Definition at line 116 of file hri_tf.h.

◆ M_FrameInfo

typedef std::map<std::string, FrameInfo*> rviz::HRITFDisplay::M_FrameInfo
private

Definition at line 94 of file hri_tf.h.

Constructor & Destructor Documentation

◆ HRITFDisplay()

rviz::HRITFDisplay::HRITFDisplay ( )

Definition at line 162 of file hri_tf.cpp.

◆ ~HRITFDisplay()

rviz::HRITFDisplay::~HRITFDisplay ( )
override

Definition at line 246 of file hri_tf.cpp.

Member Function Documentation

◆ allEnabledChanged

void rviz::HRITFDisplay::allEnabledChanged ( )
privateslot

Definition at line 374 of file hri_tf.cpp.

◆ clear()

void rviz::HRITFDisplay::clear ( )
private

Definition at line 288 of file hri_tf.cpp.

◆ createFrame()

FrameInfo * rviz::HRITFDisplay::createFrame ( const std::string &  frame)
private

Definition at line 534 of file hri_tf.cpp.

◆ deleteFrame()

HRITFDisplay::M_FrameInfo::iterator rviz::HRITFDisplay::deleteFrame ( M_FrameInfo::iterator  it,
bool  delete_properties 
)
private

Definition at line 808 of file hri_tf.cpp.

◆ fixedFrameChanged()

void rviz::HRITFDisplay::fixedFrameChanged ( )
overrideprotectedvirtual

Reimplemented from rviz::Display.

Definition at line 827 of file hri_tf.cpp.

◆ getFrameInfo()

FrameInfo * rviz::HRITFDisplay::getFrameInfo ( const std::string &  frame)
private

Definition at line 404 of file hri_tf.cpp.

◆ load()

void rviz::HRITFDisplay::load ( const Config config)
overrideprotectedvirtual

Reimplemented from rviz::Display.

Definition at line 267 of file hri_tf.cpp.

◆ onDisable()

void rviz::HRITFDisplay::onDisable ( )
overrideprivatevirtual

Reimplemented from rviz::Display.

Definition at line 314 of file hri_tf.cpp.

◆ onEnable()

void rviz::HRITFDisplay::onEnable ( )
overrideprivatevirtual

Reimplemented from rviz::Display.

Definition at line 305 of file hri_tf.cpp.

◆ onInitialize()

void rviz::HRITFDisplay::onInitialize ( )
overrideprotectedvirtual

Reimplemented from rviz::Display.

Definition at line 256 of file hri_tf.cpp.

◆ reset()

void rviz::HRITFDisplay::reset ( )
overrideprotectedvirtual

Reimplemented from rviz::Display.

Definition at line 832 of file hri_tf.cpp.

◆ update()

void rviz::HRITFDisplay::update ( float  wall_dt,
float  ros_dt 
)
overridevirtual

Reimplemented from rviz::Display.

Definition at line 392 of file hri_tf.cpp.

◆ updateFrame()

void rviz::HRITFDisplay::updateFrame ( FrameInfo frame)
private

Definition at line 606 of file hri_tf.cpp.

◆ updateFrames()

void rviz::HRITFDisplay::updateFrames ( )
private

Definition at line 415 of file hri_tf.cpp.

◆ updateShowArrows

void rviz::HRITFDisplay::updateShowArrows ( )
privateslot

Definition at line 360 of file hri_tf.cpp.

◆ updateShowAxes

void rviz::HRITFDisplay::updateShowAxes ( )
privateslot

Definition at line 334 of file hri_tf.cpp.

◆ updateShowFaces

void rviz::HRITFDisplay::updateShowFaces ( )
privateslot

Definition at line 348 of file hri_tf.cpp.

◆ updateShowGazes

void rviz::HRITFDisplay::updateShowGazes ( )
privateslot

Definition at line 352 of file hri_tf.cpp.

◆ updateShowNames

void rviz::HRITFDisplay::updateShowNames ( )
privateslot

Definition at line 320 of file hri_tf.cpp.

◆ updateshowSkeletons

void rviz::HRITFDisplay::updateshowSkeletons ( )
privateslot

Definition at line 356 of file hri_tf.cpp.

Friends And Related Function Documentation

◆ FrameInfo

friend class FrameInfo
friend

Definition at line 147 of file hri_tf.h.

Member Data Documentation

◆ all_enabled_property_

BoolProperty* rviz::HRITFDisplay::all_enabled_property_
private

Definition at line 126 of file hri_tf.h.

◆ alpha_property_

FloatProperty* rviz::HRITFDisplay::alpha_property_
private

Definition at line 129 of file hri_tf.h.

◆ arrows_node_

Ogre::SceneNode* rviz::HRITFDisplay::arrows_node_
private

Definition at line 111 of file hri_tf.h.

◆ axes_node_

Ogre::SceneNode* rviz::HRITFDisplay::axes_node_
private

Definition at line 112 of file hri_tf.h.

◆ changing_single_frame_enabled_state_

bool rviz::HRITFDisplay::changing_single_frame_enabled_state_
private

Definition at line 138 of file hri_tf.h.

◆ frame_config_enabled_state_

M_EnabledState rviz::HRITFDisplay::frame_config_enabled_state_
private

Definition at line 117 of file hri_tf.h.

◆ frame_timeout_property_

FloatProperty* rviz::HRITFDisplay::frame_timeout_property_
private

Definition at line 125 of file hri_tf.h.

◆ frames_

M_FrameInfo rviz::HRITFDisplay::frames_
private

Definition at line 114 of file hri_tf.h.

◆ frames_category_

Property* rviz::HRITFDisplay::frames_category_
private

Definition at line 135 of file hri_tf.h.

◆ hri_listener_

hri::HRIListener rviz::HRITFDisplay::hri_listener_
private

Definition at line 143 of file hri_tf.h.

◆ names_node_

Ogre::SceneNode* rviz::HRITFDisplay::names_node_
private

Definition at line 110 of file hri_tf.h.

◆ root_node_

Ogre::SceneNode* rviz::HRITFDisplay::root_node_
private

Definition at line 109 of file hri_tf.h.

◆ scale_property_

FloatProperty* rviz::HRITFDisplay::scale_property_
private

Definition at line 128 of file hri_tf.h.

◆ show_arrows_property_

BoolProperty* rviz::HRITFDisplay::show_arrows_property_
private

Definition at line 122 of file hri_tf.h.

◆ show_axes_property_

BoolProperty* rviz::HRITFDisplay::show_axes_property_
private

Definition at line 123 of file hri_tf.h.

◆ show_faces_property_

BoolProperty* rviz::HRITFDisplay::show_faces_property_
private

Definition at line 131 of file hri_tf.h.

◆ show_gazes_property_

BoolProperty* rviz::HRITFDisplay::show_gazes_property_
private

Definition at line 132 of file hri_tf.h.

◆ show_names_property_

BoolProperty* rviz::HRITFDisplay::show_names_property_
private

Definition at line 121 of file hri_tf.h.

◆ show_skeletons_property_

BoolProperty* rviz::HRITFDisplay::show_skeletons_property_
private

Definition at line 133 of file hri_tf.h.

◆ showFaces_

bool rviz::HRITFDisplay::showFaces_
private

Definition at line 139 of file hri_tf.h.

◆ showGazes_

bool rviz::HRITFDisplay::showGazes_
private

Definition at line 140 of file hri_tf.h.

◆ showSkeletons_

bool rviz::HRITFDisplay::showSkeletons_
private

Definition at line 141 of file hri_tf.h.

◆ skeleton_components_

std::vector<std::string> rviz::HRITFDisplay::skeleton_components_
private

Definition at line 145 of file hri_tf.h.

◆ tree_category_

Property* rviz::HRITFDisplay::tree_category_
private

Definition at line 136 of file hri_tf.h.

◆ update_rate_property_

FloatProperty* rviz::HRITFDisplay::update_rate_property_
private

Definition at line 124 of file hri_tf.h.

◆ update_timer_

float rviz::HRITFDisplay::update_timer_
private

Definition at line 119 of file hri_tf.h.


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


hri_rviz
Author(s): Lorenzo Ferrini, Séverin Lemaignan
autogenerated on Fri Oct 20 2023 02:53:21