1 #ifndef __AMBIENT_SOUND_DISPLAY__ 2 #define __AMBIENT_SOUND_DISPLAY__ 6 #include <jsk_hark_msgs/HarkPower.h> 19 class AmbientSoundVisual;
30 virtual void onInitialize();
31 virtual void fixedFrameChanged();
33 virtual void createProperties();
36 void setTopic(
const std::string&
topic);
37 const std::string&
getTopic() {
return topic_; }
42 void setAlpha(
float alpha );
45 void setHistoryLength(
int history_length );
48 void setWidth(
float width );
51 void setScale(
float scale );
54 void setBias(
float bias );
57 void setGrad(
float grad );
66 virtual void onEnable();
67 virtual void onDisable();
71 void incomingMessage(
const jsk_hark_msgs::HarkPower::ConstPtr&
msg );
82 void updateColorAndAlpha();
118 #endif // __AMBIENT_SOUND_DISPLAY__ rviz::ColorPropertyWPtr color_property_
const rviz::Color & getColor()
rviz::FloatPropertyWPtr bias_property_
rviz::ROSTopicStringPropertyWPtr topic_property_
rviz::IntPropertyWPtr history_length_property_
rviz::FloatPropertyWPtr grad_property_
tf::MessageFilter< jsk_hark_msgs::HarkPower > * tf_filter_
rviz::FloatPropertyWPtr width_property_
Ogre::SceneNode * scene_node_
std::vector< AmbientSoundVisual * > visuals_
int getHistoryLength() const
rviz::FloatPropertyWPtr scale_property_
const std::string & getTopic()
rviz::FloatPropertyWPtr alpha_property_
message_filters::Subscriber< jsk_hark_msgs::HarkPower > sub_