1 #include <OGRE/OgreSceneNode.h> 2 #include <OGRE/OgreSceneManager.h> 14 #include <boost/foreach.hpp> 24 "Color to draw the acceleration arrows." ,
27 "0 is fully transparent, 1.0 is fully opaque.",
30 "Number of prior measurements to display." ,
114 for(
size_t i = 0; i <
visuals_.size(); i++ )
118 visuals_[ i ]->setColor( color.r, color.g, color.b, alpha );
130 for(
size_t i = 0; i <
visuals_.size(); i++ )
149 std::vector<float>::const_iterator it = msg.powers.begin();
150 for (; it < msg.powers.end(); ++it) {
224 Ogre::Quaternion orientation;
225 Ogre::Vector3 position;
228 position, orientation ))
230 ROS_DEBUG(
"Error transforming from frame '%s' to frame '%s'",
231 msg->header.frame_id.c_str(), qPrintable(
fixed_frame_ ));
237 #if ROS_VERSION_MINIMUM(1,12,0) 238 std::shared_ptr<AmbientSoundVisual> visual;
254 visual->setMessage( msg );
255 visual->setFramePosition( position );
256 visual->setFrameOrientation( orientation );
265 visual->setColor( color.r, color.g, color.b, alpha );
266 visual->setWidth( width );
267 visual->setScale( scale );
268 visual->setBias ( bias );
269 visual->setGrad ( grad );
rviz::ColorPropertyWPtr color_property_
bool validateFloats(const jsk_hark_msgs::HarkPower &)
rviz::FloatPropertyWPtr bias_property_
rviz::IntPropertyWPtr history_length_property_
rviz::FloatPropertyWPtr grad_property_
PLUGINLIB_EXPORT_CLASS(jsk_rviz_plugins::PictogramArrayDisplay, rviz::Display)
DisplayContext * context_
rviz::FloatPropertyWPtr width_property_
virtual FrameManager * getFrameManager() const=0
Ogre::SceneNode * scene_node_
virtual ~AmbientSoundDisplay()
bool validateFloats(const visualization_msgs::InteractiveMarker &msg)
std::vector< AmbientSoundVisual * > visuals_
void processMessage(const jsk_hark_msgs::HarkPower::ConstPtr &msg)
virtual Ogre::SceneManager * getSceneManager() const=0
rviz::FloatPropertyWPtr scale_property_
void updateHistoryLength()
bool getTransform(const Header &header, Ogre::Vector3 &position, Ogre::Quaternion &orientation)
void onInitialize() override
void updateColorAndAlpha()
rviz::FloatPropertyWPtr alpha_property_
virtual void onInitialize()
virtual void setStatus(StatusProperty::Level level, const QString &name, const QString &text)