Go to the documentation of this file.
36 #ifndef POLYGON_ARRAY_DISPLAY_H
37 #define POLYGON_ARRAY_DISPLAY_H
40 #include <jsk_recognition_msgs/PolygonArray.h>
46 #include <OGRE/OgreSceneManager.h>
47 #include <OGRE/OgreSceneNode.h>
48 #include <OGRE/OgreManualObject.h>
49 #include <OGRE/OgreMaterialManager.h>
62 class PolygonArrayDisplay:
67 #if ROS_VERSION_MINIMUM(1,12,0)
68 typedef std::shared_ptr<rviz::Arrow>
ArrowPtr;
78 const jsk_recognition_msgs::PolygonArray::ConstPtr& msg);
81 virtual Ogre::ColourValue
getColor(
size_t index);
83 const size_t i,
const geometry_msgs::PolygonStamped& polygon);
85 const size_t i,
const geometry_msgs::PolygonStamped& polygon);
87 const size_t i,
const geometry_msgs::PolygonStamped& polygon);
90 const jsk_recognition_msgs::PolygonArray::ConstPtr& msg);
92 const std_msgs::Header &
header,
93 Ogre::Vector3& position, Ogre::Quaternion& orientation);
107 jsk_recognition_msgs::PolygonArray::ConstPtr
latest_msg_;
113 std::vector<rviz::BillboardLine*>
lines_;
void updateNormalLength()
virtual Ogre::ColourValue getColor(size_t index)
rviz::ColorProperty * color_property_
virtual void updateLines(int num)
rviz::BoolProperty * enable_lighting_property_
virtual void onInitialize()
rviz::FloatProperty * alpha_property_
void updateEnableLighting()
rviz::FloatProperty * normal_length_property_
boost::shared_ptr< rviz::Arrow > ArrowPtr
virtual void updateSceneNodes(const jsk_recognition_msgs::PolygonArray::ConstPtr &msg)
virtual void processMessage(const jsk_recognition_msgs::PolygonArray::ConstPtr &msg)
jsk_recognition_msgs::PolygonArray::ConstPtr latest_msg_
std::vector< ArrowPtr > arrow_objects_
virtual void processPolygonMaterial(const size_t i)
virtual void processNormal(const size_t i, const geometry_msgs::PolygonStamped &polygon)
virtual ~PolygonArrayDisplay()
std::vector< Ogre::MaterialPtr > materials_
std::string coloring_method_
std::vector< Ogre::ManualObject * > manual_objects_
rviz::BoolProperty * only_border_property_
std::vector< Ogre::SceneNode * > scene_nodes_
virtual void processPolygon(const size_t i, const geometry_msgs::PolygonStamped &polygon)
std::vector< Ogre::SceneNode * > arrow_nodes_
rviz::EnumProperty * coloring_property_
virtual void allocateMaterials(int num)
virtual void processLine(const size_t i, const geometry_msgs::PolygonStamped &polygon)
virtual bool getTransform(const std_msgs::Header &header, Ogre::Vector3 &position, Ogre::Quaternion &orientation)
rviz::BoolProperty * show_normal_property_
std::vector< rviz::BillboardLine * > lines_
jsk_rviz_plugins
Author(s): Kei Okada
, Yohei Kakiuchi , Shohei Fujii , Ryohei Ueda
autogenerated on Fri Aug 2 2024 08:50:14