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

Uses a robot xml description to display the pieces of a robot at the transforms broadcast by rosTF. More...

#include <hri_skeletons.hpp>

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

Public Member Functions

void clear ()
 
void fixedFrameChanged () override
 
 HumansModelDisplay ()
 
void load (const Config &config) override
 
void onInitialize () override
 
void reset () override
 
void update (float wall_dt, float ros_dt) override
 
 ~HumansModelDisplay () 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 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)
 
 ~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 onDisable () override
 
void onEnable () override
 Loads a URDF from the ros-param named by our "Robot Description" property, iterates through the links, and loads any necessary models. 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)
 

Protected Attributes

FloatPropertyalpha_property_
 
Propertycollision_enabled_property_
 
bool has_new_transforms_
 
std::map< std::string, RobotPtrhumans_
 
bool pluginEnabled_
 
std::string robot_description_
 
StringPropertytf_prefix_property_
 
float time_since_last_transform_
 
FloatPropertyupdate_rate_property_
 
Propertyvisual_enabled_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_
 

Private Slots

void updateAlpha ()
 
void updateCollisionVisible ()
 
void updateTfPrefix ()
 
void updateVisualVisible ()
 

Private Member Functions

void idsCallback (const hri_msgs::IdsListConstPtr &msg)
 
void initializeRobot (std::map< std::string, RobotPtr >::iterator it)
 

Private Attributes

std::vector< std::string > ids_
 
ros::Subscriber idsSub_
 

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)
 

Detailed Description

Uses a robot xml description to display the pieces of a robot at the transforms broadcast by rosTF.

Definition at line 61 of file hri_skeletons.hpp.

Constructor & Destructor Documentation

◆ HumansModelDisplay()

rviz::HumansModelDisplay::HumansModelDisplay ( )

Definition at line 54 of file hri_skeletons.cpp.

◆ ~HumansModelDisplay()

rviz::HumansModelDisplay::~HumansModelDisplay ( )
override

Definition at line 94 of file hri_skeletons.cpp.

Member Function Documentation

◆ clear()

void rviz::HumansModelDisplay::clear ( )

Definition at line 238 of file hri_skeletons.cpp.

◆ fixedFrameChanged()

void rviz::HumansModelDisplay::fixedFrameChanged ( )
overridevirtual

Reimplemented from rviz::Display.

Definition at line 236 of file hri_skeletons.cpp.

◆ idsCallback()

void rviz::HumansModelDisplay::idsCallback ( const hri_msgs::IdsListConstPtr &  msg)
private

Definition at line 253 of file hri_skeletons.cpp.

◆ initializeRobot()

void rviz::HumansModelDisplay::initializeRobot ( std::map< std::string, RobotPtr >::iterator  it)
private

Definition at line 138 of file hri_skeletons.cpp.

◆ load()

void rviz::Display::load

◆ onDisable()

void rviz::HumansModelDisplay::onDisable ( )
overrideprotectedvirtual

Reimplemented from rviz::Display.

Definition at line 205 of file hri_skeletons.cpp.

◆ onEnable()

void rviz::HumansModelDisplay::onEnable ( )
overrideprotectedvirtual

Loads a URDF from the ros-param named by our "Robot Description" property, iterates through the links, and loads any necessary models.

Reimplemented from rviz::Display.

Definition at line 197 of file hri_skeletons.cpp.

◆ onInitialize()

void rviz::HumansModelDisplay::onInitialize ( )
overridevirtual

Reimplemented from rviz::Display.

Definition at line 102 of file hri_skeletons.cpp.

◆ reset()

void rviz::HumansModelDisplay::reset ( )
overridevirtual

Reimplemented from rviz::Display.

Definition at line 248 of file hri_skeletons.cpp.

◆ update()

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

Reimplemented from rviz::Display.

Definition at line 215 of file hri_skeletons.cpp.

◆ updateAlpha

void rviz::HumansModelDisplay::updateAlpha ( )
privateslot

Definition at line 108 of file hri_skeletons.cpp.

◆ updateCollisionVisible

void rviz::HumansModelDisplay::updateCollisionVisible ( )
privateslot

Definition at line 124 of file hri_skeletons.cpp.

◆ updateTfPrefix

void rviz::HumansModelDisplay::updateTfPrefix ( )
privateslot

Definition at line 133 of file hri_skeletons.cpp.

◆ updateVisualVisible

void rviz::HumansModelDisplay::updateVisualVisible ( )
privateslot

Definition at line 116 of file hri_skeletons.cpp.

Member Data Documentation

◆ alpha_property_

FloatProperty* rviz::HumansModelDisplay::alpha_property_
protected

Definition at line 105 of file hri_skeletons.hpp.

◆ collision_enabled_property_

Property* rviz::HumansModelDisplay::collision_enabled_property_
protected

Definition at line 103 of file hri_skeletons.hpp.

◆ has_new_transforms_

bool rviz::HumansModelDisplay::has_new_transforms_
protected

Callback sets this to tell our update function it needs to update the transforms

Definition at line 94 of file hri_skeletons.hpp.

◆ humans_

std::map<std::string, RobotPtr> rviz::HumansModelDisplay::humans_
protected

Definition at line 108 of file hri_skeletons.hpp.

◆ ids_

std::vector<std::string> rviz::HumansModelDisplay::ids_
private

Definition at line 111 of file hri_skeletons.hpp.

◆ idsSub_

ros::Subscriber rviz::HumansModelDisplay::idsSub_
private

Definition at line 112 of file hri_skeletons.hpp.

◆ pluginEnabled_

bool rviz::HumansModelDisplay::pluginEnabled_
protected

Definition at line 92 of file hri_skeletons.hpp.

◆ robot_description_

std::string rviz::HumansModelDisplay::robot_description_
protected

Definition at line 100 of file hri_skeletons.hpp.

◆ tf_prefix_property_

StringProperty* rviz::HumansModelDisplay::tf_prefix_property_
protected

Definition at line 106 of file hri_skeletons.hpp.

◆ time_since_last_transform_

float rviz::HumansModelDisplay::time_since_last_transform_
protected

Definition at line 98 of file hri_skeletons.hpp.

◆ update_rate_property_

FloatProperty* rviz::HumansModelDisplay::update_rate_property_
protected

Definition at line 104 of file hri_skeletons.hpp.

◆ visual_enabled_property_

Property* rviz::HumansModelDisplay::visual_enabled_property_
protected

Definition at line 102 of file hri_skeletons.hpp.


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