37 #ifndef JSK_RVIZ_PLUGIN_FACING_VISUALIZER_H_ 38 #define JSK_RVIZ_PLUGIN_FACING_VISUALIZER_H_ 40 #include <OGRE/OgreTexture.h> 41 #include <OGRE/OgreSceneManager.h> 42 #include <OGRE/OgreSceneNode.h> 43 #include <OGRE/OgreTexture.h> 44 #include <OGRE/OgreMaterial.h> 45 #include <OGRE/OgreManualObject.h> 60 #if ROS_VERSION_MINIMUM(1,12,0) 61 typedef std::shared_ptr<SquareObject>
Ptr;
93 #if ROS_VERSION_MINIMUM(1,12,0) 94 typedef std::shared_ptr<TextureObject>
Ptr;
98 TextureObject(
const int width,
const int height,
const std::string name);
103 virtual std::string getMaterialName();
117 #if ROS_VERSION_MINIMUM(1,12,0) 118 typedef std::shared_ptr<FacingObject>
Ptr;
123 Ogre::SceneNode* parent,
126 virtual void setPosition(Ogre::Vector3& pos);
128 virtual void setOrientation(Ogre::Quaternion&
rot);
129 virtual void update(
float wall_dt,
float ros_dt) = 0;
130 virtual void setSize(
double size);
131 virtual void setEnable(
bool enable);
132 virtual void setColor(QColor color);
133 virtual void setColor(Ogre::ColourValue color);
134 virtual void setText(std::string
text);
135 virtual void setAlpha(
double alpha);
137 virtual void updateColor() = 0;
138 virtual void updateText() = 0;
152 #if ROS_VERSION_MINIMUM(1,12,0) 153 typedef std::shared_ptr<SimpleCircleFacingVisualizer>
Ptr;
158 Ogre::SceneNode* parent,
161 std::string
text =
"");
163 virtual void update(
float wall_dt,
float ros_dt);
164 virtual void reset();
166 virtual void setSize(
double size);
167 virtual void setEnable(
bool enable);
168 virtual void setText(std::string
text);
170 virtual void updateArrowsObjects(Ogre::ColourValue color);
172 virtual void updateLine();
173 virtual void updateTextUnderLine();
174 virtual void updateText();
175 virtual void updateColor();
203 #if ROS_VERSION_MINIMUM(1,12,0) 204 typedef std::shared_ptr<FacingTexturedObject>
Ptr;
209 Ogre::SceneNode* parent,
211 virtual void setSize(
double size);
223 #if ROS_VERSION_MINIMUM(1,12,0) 224 typedef std::shared_ptr<GISCircleVisualizer>
Ptr;
229 Ogre::SceneNode* parent,
231 std::string
text =
"");
233 virtual void update(
float wall_dt,
float ros_dt);
234 virtual void setAnonymous(
bool anonymous);
238 virtual void setSize(
double size);
std::string upper_material_name_
Ogre::TexturePtr texture_
virtual void updateColor()
Ogre::ManualObject * right_arrow_
virtual void rebuildPolygon()
PolygonType polygon_type_
TextureObject::Ptr texture_object_
virtual void updateText()
Ogre::MaterialPtr material_
bool update(const T &new_val, T &my_val)
std::string lower_material_name_
SquareObject::Ptr square_object_
rviz::BillboardLine * text_under_line_
Ogre::MaterialPtr left_material_
boost::shared_ptr< FacingTexturedObject > Ptr
Ogre::SceneNode * lower_arrow_node_
Ogre::ManualObject * left_arrow_
virtual Ogre::ManualObject * getManualObject()
boost::shared_ptr< SquareObject > Ptr
Ogre::SceneNode * target_text_node_
Ogre::ManualObject * manual_
boost::shared_ptr< FacingObject > Ptr
Ogre::SceneNode * right_arrow_node_
std::string right_material_name_
virtual void setPolygonType(PolygonType type)
virtual void setOuterRadius(double outer_radius)
boost::shared_ptr< GISCircleVisualizer > Ptr
boost::shared_ptr< TextureObject > Ptr
boost::shared_ptr< SimpleCircleFacingVisualizer > Ptr
SquareObject(Ogre::SceneManager *manager, double outer_radius, double inner_radius, std::string name)
Ogre::MaterialPtr lower_material_
std::string left_material_name_
rviz::BillboardLine * line_
Ogre::SceneManager * scene_manager_
Ogre::SceneNode * left_arrow_node_
Ogre::SceneManager * manager_
Ogre::MaterialPtr right_material_
Ogre::SceneNode * upper_arrow_node_
Ogre::ManualObject * lower_arrow_
virtual void setText(std::string text)
Ogre::ManualObject * upper_arrow_
Ogre::MaterialPtr upper_material_
virtual void setInnerRadius(double inner_radius)