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> 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);
113 std::vector<rviz::BillboardLine*>
lines_;
rviz::EnumProperty * coloring_property_
virtual bool getTransform(const std_msgs::Header &header, Ogre::Vector3 &position, Ogre::Quaternion &orientation)
std::vector< Ogre::SceneNode * > arrow_nodes_
rviz::ColorProperty * color_property_
virtual void processMessage(const jsk_recognition_msgs::PolygonArray::ConstPtr &msg)
void updateEnableLighting()
virtual void processLine(const size_t i, const geometry_msgs::PolygonStamped &polygon)
virtual void allocateMaterials(int num)
virtual void updateLines(int num)
std::string coloring_method_
rviz::BoolProperty * only_border_property_
jsk_recognition_msgs::PolygonArray::ConstPtr latest_msg_
rviz::BoolProperty * enable_lighting_property_
virtual void processPolygonMaterial(const size_t i)
virtual void processPolygon(const size_t i, const geometry_msgs::PolygonStamped &polygon)
virtual void processNormal(const size_t i, const geometry_msgs::PolygonStamped &polygon)
virtual void updateSceneNodes(const jsk_recognition_msgs::PolygonArray::ConstPtr &msg)
std::vector< Ogre::SceneNode * > scene_nodes_
rviz::FloatProperty * normal_length_property_
std::vector< ArrowPtr > arrow_objects_
virtual ~PolygonArrayDisplay()
void updateNormalLength()
std::vector< rviz::BillboardLine * > lines_
boost::shared_ptr< rviz::Arrow > ArrowPtr
rviz::FloatProperty * alpha_property_
std::vector< Ogre::MaterialPtr > materials_
rviz::BoolProperty * show_normal_property_
std::vector< Ogre::ManualObject * > manual_objects_
virtual Ogre::ColourValue getColor(size_t index)
virtual void onInitialize()