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

#include <hri_humans.hpp>

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

Public Slots

virtual void updateNormalizeOptions ()
 
void updateShowBodies ()
 
void updateShowFaces ()
 
void updateShowFacialLandmarks ()
 
void updateShowSkeletons ()
 
- 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)
 

Public Member Functions

 HumansDisplay ()
 
void onInitialize () override
 
void reset () override
 
void update (float wall_dt, float ros_dt) override
 
 ~HumansDisplay () override
 
- Public Member Functions inherited from rviz::ImageDisplayBase
 ImageDisplayBase ()
 
void setTopic (const QString &topic, const QString &datatype) override
 
 ~ImageDisplayBase () 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)
 
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 drawSkeleton (std::string id, int width, int height, std::vector< hri_msgs::NormalizedPointOfInterest2D > &skeleton)
 
void onDisable () override
 
void onEnable () override
 
void processMessage (const sensor_msgs::Image::ConstPtr &msg) override
 
- Protected Member Functions inherited from rviz::ImageDisplayBase
void enableTFFilter (std::string &targetFrame)
 
void failedMessage (const sensor_msgs::Image::ConstPtr &msg, tf2_ros::FilterFailureReason reason)
 
void fixedFrameChanged () override
 
void incomingMessage (const sensor_msgs::Image::ConstPtr &msg)
 
void scanForTransportSubscriberPlugins ()
 
virtual void subscribe ()
 
virtual void unsubscribe ()
 
- 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

Ogre::SceneManager * img_scene_manager_
 
RenderPanelrender_panel_
 
ROSImageTexture texture_
 
- Protected Attributes inherited from rviz::ImageDisplayBase
boost::scoped_ptr< image_transport::ImageTransportit_
 
uint32_t messages_received_
 
IntPropertyqueue_size_property_
 
boost::shared_ptr< image_transport::SubscriberFiltersub_
 
std::string targetFrame_
 
boost::shared_ptr< tf2_ros::MessageFilter< sensor_msgs::Image > > tf_filter_
 
RosTopicPropertytopic_property_
 
std::string transport_
 
std::set< std::string > transport_plugin_types_
 
EnumPropertytransport_property_
 
BoolPropertyunreliable_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 Attributes

cv_bridge::CvImagePtr cvBridge_
 
bool got_float_image_
 
hri::HRIListener hri_listener
 
Ogre::SceneNode * img_scene_node_
 
Ogre::MaterialPtr material_
 
FloatPropertymax_property_
 
IntPropertymedian_buffer_size_property_
 
FloatPropertymin_property_
 
BoolPropertynormalize_property_
 
Ogre::Rectangle2D * screen_rect_
 
bool show_bodies_
 
BoolPropertyshow_bodies_property_
 
bool show_faces_
 
BoolPropertyshow_faces_property_
 
bool show_facial_landmarks_
 
BoolPropertyshow_facial_landmarks_property_
 
bool show_skeletons_
 
BoolPropertyshow_skeletons_property_
 

Additional Inherited Members

- 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 Slots inherited from rviz::ImageDisplayBase
void fillTransportOptionList (EnumProperty *property)
 
virtual void updateQueueSize ()
 
virtual void updateTopic ()
 

Detailed Description

Definition at line 62 of file hri_humans.hpp.

Constructor & Destructor Documentation

◆ HumansDisplay()

rviz::HumansDisplay::HumansDisplay ( )

Definition at line 85 of file hri_humans.cpp.

◆ ~HumansDisplay()

rviz::HumansDisplay::~HumansDisplay ( )
override

Definition at line 188 of file hri_humans.cpp.

Member Function Documentation

◆ drawSkeleton()

void rviz::HumansDisplay::drawSkeleton ( std::string  id,
int  width,
int  height,
std::vector< hri_msgs::NormalizedPointOfInterest2D > &  skeleton 
)
protected

Definition at line 284 of file hri_humans.cpp.

◆ onDisable()

void rviz::HumansDisplay::onDisable ( )
overrideprotectedvirtual

Reimplemented from rviz::Display.

Definition at line 202 of file hri_humans.cpp.

◆ onEnable()

void rviz::HumansDisplay::onEnable ( )
overrideprotectedvirtual

Reimplemented from rviz::Display.

Definition at line 197 of file hri_humans.cpp.

◆ onInitialize()

void rviz::HumansDisplay::onInitialize ( )
overridevirtual

Reimplemented from rviz::ImageDisplayBase.

Definition at line 128 of file hri_humans.cpp.

◆ processMessage()

void rviz::HumansDisplay::processMessage ( const sensor_msgs::Image::ConstPtr &  msg)
overrideprotectedvirtual

Implements rviz::ImageDisplayBase.

Definition at line 388 of file hri_humans.cpp.

◆ reset()

void rviz::HumansDisplay::reset ( )
overridevirtual

Reimplemented from rviz::ImageDisplayBase.

Definition at line 277 of file hri_humans.cpp.

◆ update()

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

Reimplemented from rviz::Display.

Definition at line 244 of file hri_humans.cpp.

◆ updateNormalizeOptions

void rviz::HumansDisplay::updateNormalizeOptions ( )
virtualslot

Definition at line 224 of file hri_humans.cpp.

◆ updateShowBodies

void rviz::HumansDisplay::updateShowBodies ( )
slot

Definition at line 216 of file hri_humans.cpp.

◆ updateShowFaces

void rviz::HumansDisplay::updateShowFaces ( )
slot

Definition at line 208 of file hri_humans.cpp.

◆ updateShowFacialLandmarks

void rviz::HumansDisplay::updateShowFacialLandmarks ( )
slot

Definition at line 212 of file hri_humans.cpp.

◆ updateShowSkeletons

void rviz::HumansDisplay::updateShowSkeletons ( )
slot

Definition at line 220 of file hri_humans.cpp.

Member Data Documentation

◆ cvBridge_

cv_bridge::CvImagePtr rviz::HumansDisplay::cvBridge_
private

Definition at line 116 of file hri_humans.hpp.

◆ got_float_image_

bool rviz::HumansDisplay::got_float_image_
private

Definition at line 112 of file hri_humans.hpp.

◆ hri_listener

hri::HRIListener rviz::HumansDisplay::hri_listener
private

Definition at line 115 of file hri_humans.hpp.

◆ img_scene_manager_

Ogre::SceneManager* rviz::HumansDisplay::img_scene_manager_
protected

Definition at line 91 of file hri_humans.hpp.

◆ img_scene_node_

Ogre::SceneNode* rviz::HumansDisplay::img_scene_node_
private

Definition at line 100 of file hri_humans.hpp.

◆ material_

Ogre::MaterialPtr rviz::HumansDisplay::material_
private

Definition at line 102 of file hri_humans.hpp.

◆ max_property_

FloatProperty* rviz::HumansDisplay::max_property_
private

Definition at line 110 of file hri_humans.hpp.

◆ median_buffer_size_property_

IntProperty* rviz::HumansDisplay::median_buffer_size_property_
private

Definition at line 111 of file hri_humans.hpp.

◆ min_property_

FloatProperty* rviz::HumansDisplay::min_property_
private

Definition at line 109 of file hri_humans.hpp.

◆ normalize_property_

BoolProperty* rviz::HumansDisplay::normalize_property_
private

Definition at line 104 of file hri_humans.hpp.

◆ render_panel_

RenderPanel* rviz::HumansDisplay::render_panel_
protected

Definition at line 95 of file hri_humans.hpp.

◆ screen_rect_

Ogre::Rectangle2D* rviz::HumansDisplay::screen_rect_
private

Definition at line 101 of file hri_humans.hpp.

◆ show_bodies_

bool rviz::HumansDisplay::show_bodies_
private

Definition at line 113 of file hri_humans.hpp.

◆ show_bodies_property_

BoolProperty* rviz::HumansDisplay::show_bodies_property_
private

Definition at line 107 of file hri_humans.hpp.

◆ show_faces_

bool rviz::HumansDisplay::show_faces_
private

Definition at line 113 of file hri_humans.hpp.

◆ show_faces_property_

BoolProperty* rviz::HumansDisplay::show_faces_property_
private

Definition at line 105 of file hri_humans.hpp.

◆ show_facial_landmarks_

bool rviz::HumansDisplay::show_facial_landmarks_
private

Definition at line 113 of file hri_humans.hpp.

◆ show_facial_landmarks_property_

BoolProperty* rviz::HumansDisplay::show_facial_landmarks_property_
private

Definition at line 106 of file hri_humans.hpp.

◆ show_skeletons_

bool rviz::HumansDisplay::show_skeletons_
private

Definition at line 113 of file hri_humans.hpp.

◆ show_skeletons_property_

BoolProperty* rviz::HumansDisplay::show_skeletons_property_
private

Definition at line 108 of file hri_humans.hpp.

◆ texture_

ROSImageTexture rviz::HumansDisplay::texture_
protected

Definition at line 93 of file hri_humans.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