1 #include <OgreSceneNode.h> 2 #include <OgreSceneManager.h> 29 new rviz::IntProperty(
"History Length", 1,
"Number of prior measurements to display.",
this,
59 for (
size_t i = 0; i <
visuals_.size(); i++)
61 visuals_[i]->setColor(color.r, color.g, color.b, alpha);
78 "Message contained invalid floating point values (nans or infs)");
85 Ogre::Quaternion orientation;
86 Ogre::Vector3 position;
90 ROS_DEBUG(
"Error transforming from frame '%s' to frame '%s'", msg->header.frame_id.c_str(),
110 visual->setRadius(radius);
111 visual->setMessage(msg);
112 visual->setFramePosition(position);
113 visual->setFrameOrientation(orientation);
116 visual->setColor(color.r, color.g, color.b, alpha);
void updateColorAndAlpha()
DisplayContext * context_
This DisplayContext pointer is the main connection a Display has into the rest of rviz...
boost::circular_buffer< boost::shared_ptr< PointStampedVisual > > visuals_
void reset() override
Called to tell the display to clear its state.
Ogre::ColourValue getOgreColor() const
Property specialized to enforce floating point max/min.
Property specialized to provide max/min enforcement for integers.
rviz::FloatProperty * alpha_property_
Ogre::SceneNode * scene_node_
The Ogre::SceneNode to hold all 3D scene elements shown by this Display.
void onInitialize() override
Override this function to do subclass-specific initialization.
void processMessage(const geometry_msgs::PointStamped::ConstPtr &msg) override
QString fixed_frame_
A convenience variable equal to context_->getFixedFrame().
bool validateFloats(const sensor_msgs::CameraInfo &msg)
~PointStampedDisplay() override
rviz::FloatProperty * radius_property_
void updateHistoryLength()
virtual FrameManager * getFrameManager() const =0
Return the FrameManager instance.
rviz::IntProperty * history_length_property_
virtual int getInt() const
Return the internal property value as an integer.
virtual Ogre::SceneManager * getSceneManager() const =0
Returns the Ogre::SceneManager used for the main RenderPanel.
virtual float getFloat() const
bool getTransform(const Header &header, Ogre::Vector3 &position, Ogre::Quaternion &orientation)
Return the pose for a header, relative to the fixed frame, in Ogre classes.
void onInitialize() override
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
virtual void setStatus(StatusProperty::Level level, const QString &name, const QString &text)
Show status level and text. This is thread-safe.
rviz::ColorProperty * color_property_