30 #include <OgreSceneNode.h> 31 #include <OgreSceneManager.h> 58 ROS_ASSERT(new_message->type == visualization_msgs::Marker::TEXT_VIEW_FACING);
60 if (new_message->text.find_first_not_of(
" \t\n\v\f\r") == std::string::npos)
73 Ogre::Vector3 pos, scale;
74 Ogre::Quaternion orient;
75 transform(new_message, pos, orient, scale);
79 text_->
setColor(Ogre::ColourValue(new_message->color.r, new_message->color.g, new_message->color.b, new_message->color.a));
Ogre::SceneNode * scene_node_
bool transform(const MarkerConstPtr &message, Ogre::Vector3 &pos, Ogre::Quaternion &orient, Ogre::Vector3 &scale)
virtual S_MaterialPtr getMaterials()
void setCharacterHeight(Ogre::Real height)
virtual void onNewMessage(const MarkerConstPtr &old_message, const MarkerConstPtr &new_message)
virtual void setPosition(const Ogre::Vector3 &position)
std::pair< std::string, int32_t > MarkerID
Pure-virtual base class for objects which give Display subclasses context in which to work...
boost::shared_ptr< MarkerSelectionHandler > handler_
void setCaption(const Ogre::String &caption)
DisplayContext * context_
void setTextAlignment(const HorizontalAlignment &horizontalAlignment, const VerticalAlignment &verticalAlignment)
visualization_msgs::Marker::ConstPtr MarkerConstPtr
const Ogre::MaterialPtr & getMaterial(void) const
void setColor(const Ogre::ColourValue &color)
TextViewFacingMarker(MarkerDisplay *owner, DisplayContext *context, Ogre::SceneNode *parent_node)
std::set< Ogre::MaterialPtr > S_MaterialPtr
Displays "markers" sent in by other ROS nodes on the "visualization_marker" topic.