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>
50 #include <OGRE/OgreTechnique.h>
63 class PolygonArrayDisplay:
68 #if ROS_VERSION_MINIMUM(1,12,0)
69 typedef std::shared_ptr<rviz::Arrow>
ArrowPtr;
79 const jsk_recognition_msgs::PolygonArray::ConstPtr& msg);
82 virtual Ogre::ColourValue
getColor(
size_t index);
84 const size_t i,
const geometry_msgs::PolygonStamped& polygon);
86 const size_t i,
const geometry_msgs::PolygonStamped& polygon);
88 const size_t i,
const geometry_msgs::PolygonStamped& polygon);
91 const jsk_recognition_msgs::PolygonArray::ConstPtr& msg);
93 const std_msgs::Header &
header,
94 Ogre::Vector3& position, Ogre::Quaternion& orientation);
108 jsk_recognition_msgs::PolygonArray::ConstPtr
latest_msg_;
114 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 Dec 13 2024 03:49:57