37 #ifndef JSK_RVIZ_PLUGIN_PICTOGRAM_DISPLAY_H_ 38 #define JSK_RVIZ_PLUGIN_PICTOGRAM_DISPLAY_H_ 50 #include <OGRE/OgreSceneNode.h> 51 #include <OGRE/OgreSceneManager.h> 52 #include <jsk_rviz_plugins/Pictogram.h> 59 int addFont(
unsigned char* data,
unsigned int data_len);
71 #if ROS_VERSION_MINIMUM(1,12,0) 72 typedef std::shared_ptr<PictogramObject>
Ptr;
77 Ogre::SceneNode* parent,
79 virtual void update(
float wall_dt,
float ros_dt);
86 virtual void setPose(
const geometry_msgs::Pose& pose,
92 virtual void setTTL(
double ttl);
127 virtual void onInitialize();
128 virtual void reset();
129 virtual void onEnable();
130 void processMessage(
const jsk_rviz_plugins::Pictogram::ConstPtr&
msg);
131 void update(
float wall_dt,
float ros_dt);
QString lookupPictogramText(std::string character)
virtual void setTTL(double ttl)
QFont getFont(std::string character)
virtual void setAlpha(double alpha)
PictogramObject::Ptr pictogram_
virtual void setContext(rviz::DisplayContext *context)
boost::shared_ptr< PictogramObject > Ptr
geometry_msgs::Pose pose_
bool isCharacterSupported(std::string character)
int addFont(unsigned char *data, unsigned int data_len)
virtual void setMode(uint8_t mode)
virtual void update(float wall_dt, float ros_dt)
virtual void setSize(double size)
bool isEntypo(std::string text)
bool isFontAwesome(std::string text)
rviz::DisplayContext * context_
virtual void updateText()
virtual void updatePose(float dt)
virtual void updateColor()
virtual void setText(std::string text)
virtual void setSpeed(double speed)
virtual void setEnable(bool enable)
virtual void setPose(const geometry_msgs::Pose &pose, const std::string &frame_id)
virtual void setColor(QColor color)
virtual void setAction(uint8_t action)
PictogramObject(Ogre::SceneManager *manager, Ogre::SceneNode *parent, double size)