Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
jsk_rviz_plugins::AmbientSoundDisplay Class Reference

#include <ambient_sound_display.h>

Inheritance diagram for jsk_rviz_plugins::AmbientSoundDisplay:
Inheritance graph
[legend]

Public Member Functions

 AmbientSoundDisplay ()
 
 AmbientSoundDisplay ()
 
virtual void createProperties ()
 
virtual void fixedFrameChanged ()
 
float getAlpha ()
 
float getBias () const
 
const rviz::ColorgetColor ()
 
float getGrad () const
 
int getHistoryLength () const
 
float getScale () const
 
const std::stringgetTopic ()
 
float getWidth () const
 
virtual void onInitialize ()
 
virtual void onInitialize ()
 
virtual void reset ()
 
virtual void reset ()
 
void setAlpha (float alpha)
 
void setBias (float bias)
 
void setColor (const rviz::Color &color)
 
void setGrad (float grad)
 
void setHistoryLength (int history_length)
 
void setScale (float scale)
 
void setTopic (const std::string &topic)
 
void setWidth (float width)
 
virtual ~AmbientSoundDisplay ()
 
virtual ~AmbientSoundDisplay ()
 
- 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)
 
virtual void update (float wall_dt, float ros_dt)
 
 ~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

virtual void onDisable ()
 
virtual void onEnable ()
 
- 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 updateAppearance ()
 
void updateColorAndAlpha ()
 
void updateHistoryLength ()
 
bool validateFloats (const jsk_hark_msgs::HarkPower &)
 

Private Member Functions

void clear ()
 
void incomingMessage (const jsk_hark_msgs::HarkPower::ConstPtr &msg)
 
void processMessage (const jsk_hark_msgs::HarkPower::ConstPtr &msg)
 
void subscribe ()
 
void unsubscribe ()
 
void updateColorAndAlpha ()
 

Private Attributes

float alpha_
 
rviz::FloatPropertyWPtr alpha_property_
 
rviz::FloatPropertyalpha_property_
 
float bias_
 
rviz::FloatPropertyWPtr bias_property_
 
rviz::FloatPropertybias_property_
 
rviz::Color color_
 
rviz::ColorPropertyWPtr color_property_
 
rviz::ColorPropertycolor_property_
 
float grad_
 
rviz::FloatPropertyWPtr grad_property_
 
rviz::FloatPropertygrad_property_
 
int history_length_
 
rviz::IntPropertyWPtr history_length_property_
 
rviz::IntPropertyhistory_length_property_
 
int messages_received_
 
float scale_
 
rviz::FloatPropertyWPtr scale_property_
 
rviz::FloatPropertyscale_property_
 
Ogre::SceneNode * scene_node_
 
message_filters::Subscriber< jsk_hark_msgs::HarkPower > sub_
 
tf::MessageFilter< jsk_hark_msgs::HarkPower > * tf_filter_
 
std::string topic_
 
rviz::ROSTopicStringPropertyWPtr topic_property_
 
rviz::ROSTopicStringProperty * topic_property_
 
std::vector< AmbientSoundVisual * > visuals_
 
boost::circular_buffer< boost::shared_ptr< AmbientSoundVisual > > visuals_
 
float width_
 
rviz::FloatPropertyWPtr width_property_
 
rviz::FloatPropertywidth_property_
 

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

Definition at line 21 of file ambient_sound_display.h.

Constructor & Destructor Documentation

◆ AmbientSoundDisplay() [1/2]

jsk_rviz_plugins::AmbientSoundDisplay::AmbientSoundDisplay ( )

Definition at line 21 of file ambient_sound_display.cpp.

◆ ~AmbientSoundDisplay() [1/2]

jsk_rviz_plugins::AmbientSoundDisplay::~AmbientSoundDisplay ( )
virtual

Definition at line 60 of file ambient_sound_display.cpp.

◆ AmbientSoundDisplay() [2/2]

jsk_rviz_plugins::AmbientSoundDisplay::AmbientSoundDisplay ( )

◆ ~AmbientSoundDisplay() [2/2]

virtual jsk_rviz_plugins::AmbientSoundDisplay::~AmbientSoundDisplay ( )
virtual

Member Function Documentation

◆ clear()

void jsk_rviz_plugins::AmbientSoundDisplay::clear ( )
private

Definition at line 73 of file ambient_sound_display.cpp.

◆ createProperties()

void jsk_rviz_plugins::AmbientSoundDisplay::createProperties ( )
virtual

Definition at line 316 of file ambient_sound_display.cpp.

◆ fixedFrameChanged()

void jsk_rviz_plugins::AmbientSoundDisplay::fixedFrameChanged ( )
virtual

Reimplemented from rviz::Display.

Definition at line 254 of file ambient_sound_display.cpp.

◆ getAlpha()

float jsk_rviz_plugins::AmbientSoundDisplay::getAlpha ( )
inline

Definition at line 43 of file ambient_sound_display.h.

◆ getBias()

float jsk_rviz_plugins::AmbientSoundDisplay::getBias ( ) const
inline

Definition at line 55 of file ambient_sound_display.h.

◆ getColor()

const rviz::Color& jsk_rviz_plugins::AmbientSoundDisplay::getColor ( )
inline

Definition at line 40 of file ambient_sound_display.h.

◆ getGrad()

float jsk_rviz_plugins::AmbientSoundDisplay::getGrad ( ) const
inline

Definition at line 58 of file ambient_sound_display.h.

◆ getHistoryLength()

int jsk_rviz_plugins::AmbientSoundDisplay::getHistoryLength ( ) const
inline

Definition at line 46 of file ambient_sound_display.h.

◆ getScale()

float jsk_rviz_plugins::AmbientSoundDisplay::getScale ( ) const
inline

Definition at line 52 of file ambient_sound_display.h.

◆ getTopic()

const std::string& jsk_rviz_plugins::AmbientSoundDisplay::getTopic ( )
inline

Definition at line 37 of file ambient_sound_display.h.

◆ getWidth()

float jsk_rviz_plugins::AmbientSoundDisplay::getWidth ( ) const
inline

Definition at line 49 of file ambient_sound_display.h.

◆ incomingMessage()

void jsk_rviz_plugins::AmbientSoundDisplay::incomingMessage ( const jsk_hark_msgs::HarkPower::ConstPtr &  msg)
private

Definition at line 261 of file ambient_sound_display.cpp.

◆ onDisable()

void jsk_rviz_plugins::AmbientSoundDisplay::onDisable ( )
protectedvirtual

Reimplemented from rviz::Display.

Definition at line 246 of file ambient_sound_display.cpp.

◆ onEnable()

void jsk_rviz_plugins::AmbientSoundDisplay::onEnable ( )
protectedvirtual

Reimplemented from rviz::Display.

Definition at line 241 of file ambient_sound_display.cpp.

◆ onInitialize() [1/2]

void jsk_rviz_plugins::AmbientSoundDisplay::onInitialize ( )
virtual

Reimplemented from rviz::Display.

Definition at line 35 of file ambient_sound_display.cpp.

◆ onInitialize() [2/2]

virtual void jsk_rviz_plugins::AmbientSoundDisplay::onInitialize ( )
virtual

Reimplemented from rviz::Display.

◆ processMessage()

void jsk_rviz_plugins::AmbientSoundDisplay::processMessage ( const jsk_hark_msgs::HarkPower::ConstPtr &  msg)
private

Definition at line 213 of file ambient_sound_display_groovy.cpp.

◆ reset() [1/2]

void jsk_rviz_plugins::AmbientSoundDisplay::reset ( )
virtual

Reimplemented from rviz::Display.

Definition at line 306 of file ambient_sound_display.cpp.

◆ reset() [2/2]

virtual void jsk_rviz_plugins::AmbientSoundDisplay::reset ( )
virtual

Reimplemented from rviz::Display.

◆ setAlpha()

void jsk_rviz_plugins::AmbientSoundDisplay::setAlpha ( float  alpha)

Definition at line 108 of file ambient_sound_display.cpp.

◆ setBias()

void jsk_rviz_plugins::AmbientSoundDisplay::setBias ( float  bias)

Definition at line 136 of file ambient_sound_display.cpp.

◆ setColor()

void jsk_rviz_plugins::AmbientSoundDisplay::setColor ( const rviz::Color color)

Definition at line 99 of file ambient_sound_display.cpp.

◆ setGrad()

void jsk_rviz_plugins::AmbientSoundDisplay::setGrad ( float  grad)

Definition at line 145 of file ambient_sound_display.cpp.

◆ setHistoryLength()

void jsk_rviz_plugins::AmbientSoundDisplay::setHistoryLength ( int  history_length)

Definition at line 167 of file ambient_sound_display.cpp.

◆ setScale()

void jsk_rviz_plugins::AmbientSoundDisplay::setScale ( float  scale)

Definition at line 126 of file ambient_sound_display.cpp.

◆ setTopic()

void jsk_rviz_plugins::AmbientSoundDisplay::setTopic ( const std::string topic)

Definition at line 85 of file ambient_sound_display.cpp.

◆ setWidth()

void jsk_rviz_plugins::AmbientSoundDisplay::setWidth ( float  width)

Definition at line 117 of file ambient_sound_display.cpp.

◆ subscribe()

void jsk_rviz_plugins::AmbientSoundDisplay::subscribe ( )
private

Definition at line 213 of file ambient_sound_display.cpp.

◆ unsubscribe()

void jsk_rviz_plugins::AmbientSoundDisplay::unsubscribe ( )
private

Definition at line 236 of file ambient_sound_display.cpp.

◆ updateAppearance

void jsk_rviz_plugins::AmbientSoundDisplay::updateAppearance ( )
privateslot

Definition at line 124 of file ambient_sound_display_groovy.cpp.

◆ updateColorAndAlpha() [1/2]

void jsk_rviz_plugins::AmbientSoundDisplay::updateColorAndAlpha ( )
private

Definition at line 155 of file ambient_sound_display.cpp.

◆ updateColorAndAlpha [2/2]

void jsk_rviz_plugins::AmbientSoundDisplay::updateColorAndAlpha ( )
privateslot

◆ updateHistoryLength

void jsk_rviz_plugins::AmbientSoundDisplay::updateHistoryLength ( )
privateslot

Definition at line 143 of file ambient_sound_display_groovy.cpp.

◆ validateFloats

bool jsk_rviz_plugins::AmbientSoundDisplay::validateFloats ( const jsk_hark_msgs::HarkPower &  msg)
privateslot

Definition at line 147 of file ambient_sound_display_groovy.cpp.

Member Data Documentation

◆ alpha_

float jsk_rviz_plugins::AmbientSoundDisplay::alpha_
private

Definition at line 100 of file ambient_sound_display.h.

◆ alpha_property_ [1/2]

rviz::FloatPropertyWPtr jsk_rviz_plugins::AmbientSoundDisplay::alpha_property_
private

Definition at line 107 of file ambient_sound_display.h.

◆ alpha_property_ [2/2]

rviz::FloatProperty* jsk_rviz_plugins::AmbientSoundDisplay::alpha_property_
private

Definition at line 140 of file ambient_sound_display_groovy.h.

◆ bias_

float jsk_rviz_plugins::AmbientSoundDisplay::bias_
private

Definition at line 102 of file ambient_sound_display.h.

◆ bias_property_ [1/2]

rviz::FloatPropertyWPtr jsk_rviz_plugins::AmbientSoundDisplay::bias_property_
private

Definition at line 111 of file ambient_sound_display.h.

◆ bias_property_ [2/2]

rviz::FloatProperty* jsk_rviz_plugins::AmbientSoundDisplay::bias_property_
private

Definition at line 144 of file ambient_sound_display_groovy.h.

◆ color_

rviz::Color jsk_rviz_plugins::AmbientSoundDisplay::color_
private

Definition at line 98 of file ambient_sound_display.h.

◆ color_property_ [1/2]

rviz::ColorPropertyWPtr jsk_rviz_plugins::AmbientSoundDisplay::color_property_
private

Definition at line 105 of file ambient_sound_display.h.

◆ color_property_ [2/2]

rviz::ColorProperty* jsk_rviz_plugins::AmbientSoundDisplay::color_property_
private

Definition at line 138 of file ambient_sound_display_groovy.h.

◆ grad_

float jsk_rviz_plugins::AmbientSoundDisplay::grad_
private

Definition at line 102 of file ambient_sound_display.h.

◆ grad_property_ [1/2]

rviz::FloatPropertyWPtr jsk_rviz_plugins::AmbientSoundDisplay::grad_property_
private

Definition at line 112 of file ambient_sound_display.h.

◆ grad_property_ [2/2]

rviz::FloatProperty* jsk_rviz_plugins::AmbientSoundDisplay::grad_property_
private

Definition at line 145 of file ambient_sound_display_groovy.h.

◆ history_length_

int jsk_rviz_plugins::AmbientSoundDisplay::history_length_
private

Definition at line 101 of file ambient_sound_display.h.

◆ history_length_property_ [1/2]

rviz::IntPropertyWPtr jsk_rviz_plugins::AmbientSoundDisplay::history_length_property_
private

Definition at line 108 of file ambient_sound_display.h.

◆ history_length_property_ [2/2]

rviz::IntProperty* jsk_rviz_plugins::AmbientSoundDisplay::history_length_property_
private

Definition at line 141 of file ambient_sound_display_groovy.h.

◆ messages_received_

int jsk_rviz_plugins::AmbientSoundDisplay::messages_received_
private

Definition at line 95 of file ambient_sound_display.h.

◆ scale_

float jsk_rviz_plugins::AmbientSoundDisplay::scale_
private

Definition at line 102 of file ambient_sound_display.h.

◆ scale_property_ [1/2]

rviz::FloatPropertyWPtr jsk_rviz_plugins::AmbientSoundDisplay::scale_property_
private

Definition at line 110 of file ambient_sound_display.h.

◆ scale_property_ [2/2]

rviz::FloatProperty* jsk_rviz_plugins::AmbientSoundDisplay::scale_property_
private

Definition at line 143 of file ambient_sound_display_groovy.h.

◆ scene_node_

Ogre::SceneNode* jsk_rviz_plugins::AmbientSoundDisplay::scene_node_
private

Definition at line 90 of file ambient_sound_display.h.

◆ sub_

message_filters::Subscriber<jsk_hark_msgs::HarkPower> jsk_rviz_plugins::AmbientSoundDisplay::sub_
private

Definition at line 93 of file ambient_sound_display.h.

◆ tf_filter_

tf::MessageFilter<jsk_hark_msgs::HarkPower>* jsk_rviz_plugins::AmbientSoundDisplay::tf_filter_
private

Definition at line 94 of file ambient_sound_display.h.

◆ topic_

std::string jsk_rviz_plugins::AmbientSoundDisplay::topic_
private

Definition at line 99 of file ambient_sound_display.h.

◆ topic_property_ [1/2]

rviz::ROSTopicStringPropertyWPtr jsk_rviz_plugins::AmbientSoundDisplay::topic_property_
private

Definition at line 106 of file ambient_sound_display.h.

◆ topic_property_ [2/2]

rviz::ROSTopicStringProperty* jsk_rviz_plugins::AmbientSoundDisplay::topic_property_
private

Definition at line 139 of file ambient_sound_display_groovy.h.

◆ visuals_ [1/2]

std::vector<AmbientSoundVisual*> jsk_rviz_plugins::AmbientSoundDisplay::visuals_
private

Definition at line 87 of file ambient_sound_display.h.

◆ visuals_ [2/2]

boost::circular_buffer<boost::shared_ptr<AmbientSoundVisual> > jsk_rviz_plugins::AmbientSoundDisplay::visuals_
private

Definition at line 117 of file ambient_sound_display_groovy.h.

◆ width_

float jsk_rviz_plugins::AmbientSoundDisplay::width_
private

Definition at line 102 of file ambient_sound_display.h.

◆ width_property_ [1/2]

rviz::FloatPropertyWPtr jsk_rviz_plugins::AmbientSoundDisplay::width_property_
private

Definition at line 109 of file ambient_sound_display.h.

◆ width_property_ [2/2]

rviz::FloatProperty* jsk_rviz_plugins::AmbientSoundDisplay::width_property_
private

Definition at line 142 of file ambient_sound_display_groovy.h.


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


jsk_rviz_plugins
Author(s): Kei Okada , Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Fri Dec 13 2024 03:49:57