36 #ifndef JSK_RVIZ_PLUGINS_TORUS_ARRAY_DISPLAY_H_ 37 #define JSK_RVIZ_PLUGINS_TORUS_ARRAY_DISPLAY_H_ 40 #include <jsk_recognition_msgs/TorusArray.h> 49 #include <OGRE/OgreSceneManager.h> 50 #include <OGRE/OgreSceneNode.h> 64 #if ROS_VERSION_MINIMUM(1,12,0) 65 typedef std::shared_ptr<rviz::Arrow>
ArrowPtr;
66 typedef std::shared_ptr<rviz::MeshShape>
ShapePtr;
74 virtual void onInitialize();
76 void allocateShapes(
const jsk_recognition_msgs::TorusArray::ConstPtr& msg);
77 void allocateShapes(
const size_t num);
78 QColor getColor(
size_t index);
97 void updateUVdimension();
98 void updateAutoColor();
99 void updateShowNormal();
100 void updateNormalLength();
102 void calcurateTriangleMesh(
103 int large_dimension,
int small_dimension,
105 Ogre::Vector3 pos, Ogre::Quaternion
q,
106 std::vector<Triangle> &triangles,
107 std::vector<Ogre::Vector3> &vertices,
108 std::vector<Ogre::Vector3> &normals
111 void processMessage(
const jsk_recognition_msgs::TorusArray::ConstPtr& msg);
boost::shared_ptr< rviz::Arrow > ArrowPtr
rviz::FloatProperty * normal_length_property_
std::vector< Ogre::SceneNode * > arrow_nodes_
rviz::IntProperty * uv_property_
rviz::FloatProperty * alpha_property_
rviz::BoolProperty * show_normal_property_
std::vector< ShapePtr > shapes_
std::vector< ArrowPtr > arrow_objects_
rviz::BoolProperty * auto_color_property_
rviz::ColorProperty * color_property_
boost::shared_ptr< rviz::MeshShape > ShapePtr