Go to the documentation of this file.
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 Ogre::ResourceGroupManager::INTERNAL_RESOURCE_GROUP_NAME);
118 for (uint32_t i = 0; i < num_points + 1; ++i)
120 const geometry_msgs::Point32& msg_point = msg->polygon.points[i % num_points];
virtual QColor getColor() const
Ogre::ManualObject * manual_object_
Ogre::ColourValue qtToOgre(const QColor &c)
void queueRender()
Convenience function which calls context_->queueRender().
void onInitialize() override
Overridden from MessageFilterDisplay.
bool initialized() const
Returns true if the display has been initialized.
Displays a geometry_msgs::PolygonStamped message.
ColorProperty * color_property_
bool validateFloats(const sensor_msgs::CameraInfo &msg)
QString fixed_frame_
A convenience variable equal to context_->getFixedFrame().
Property specialized to enforce floating point max/min.
virtual void setStatus(StatusProperty::Level level, const QString &name, const QString &text)
Show status level and text. This is thread-safe.
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)
virtual float getFloat() const
Ogre::SceneNode * scene_node_
The Ogre::SceneNode to hold all 3D scene elements shown by this Display.
Ogre::SceneManager * scene_manager_
A convenience variable equal to context_->getSceneManager().
FloatProperty * alpha_property_
~PolygonDisplay() override
virtual FrameManager * getFrameManager() const =0
Return the FrameManager instance.
void onInitialize() override
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.
DisplayContext * context_
This DisplayContext pointer is the main connection a Display has into the rest of rviz....
void processMessage(const geometry_msgs::PolygonStamped::ConstPtr &msg) override
Overridden from MessageFilterDisplay.
void reset() override
Overridden from MessageFilterDisplay.
rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust, William Woodall
autogenerated on Fri Dec 13 2024 03:31:02