30 #include <OgreSceneNode.h> 31 #include <OgreSceneManager.h> 32 #include <OgreManualObject.h> 88 "Message contained invalid floating point values (nans or infs)");
92 Ogre::Vector3 position;
93 Ogre::Quaternion orientation;
96 ROS_DEBUG(
"Error transforming from frame '%s' to frame '%s'", msg->header.frame_id.c_str(),
112 uint32_t num_points = msg->polygon.points.size();
116 manual_object_->begin(
"BaseWhiteNoLighting", Ogre::RenderOperation::OT_LINE_STRIP);
117 for (uint32_t i = 0; i < num_points + 1; ++i)
119 const geometry_msgs::Point32& msg_point = msg->polygon.points[i % num_points];
~PolygonDisplay() override
DisplayContext * context_
This DisplayContext pointer is the main connection a Display has into the rest of rviz...
virtual QColor getColor() const
FloatProperty * alpha_property_
Displays a geometry_msgs::PolygonStamped message.
Property specialized to enforce floating point max/min.
Ogre::SceneNode * scene_node_
The Ogre::SceneNode to hold all 3D scene elements shown by this Display.
Ogre::ColourValue qtToOgre(const QColor &c)
QString fixed_frame_
A convenience variable equal to context_->getFixedFrame().
bool validateFloats(const sensor_msgs::CameraInfo &msg)
void reset() override
Overridden from MessageFilterDisplay.
void queueRender()
Convenience function which calls context_->queueRender().
virtual FrameManager * getFrameManager() const =0
Return the FrameManager instance.
Ogre::ManualObject * manual_object_
void processMessage(const geometry_msgs::PolygonStamped::ConstPtr &msg) override
Overridden from MessageFilterDisplay.
Ogre::SceneManager * scene_manager_
A convenience variable equal to context_->getSceneManager().
void onInitialize() override
Overridden from MessageFilterDisplay.
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.
ColorProperty * color_property_
void onInitialize() override
bool initialized() const
Returns true if the display has been initialized.
#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.