86 pictogram->setEnable(
false);
88 pictogram->setColor(QColor(25, 255, 240));
89 pictogram->setAlpha(1.0);
96 const jsk_rviz_plugins::PictogramArray::ConstPtr& msg)
106 for (
size_t i = 0; i < msg->pictograms.size(); i++) {
108 pictogram->setAction(msg->pictograms[i].action);
109 if (msg->pictograms[i].action == jsk_rviz_plugins::Pictogram::DELETE) {
113 if (msg->pictograms[i].size <= 0.0) {
114 pictogram->setSize(0.5);
117 pictogram->setSize(msg->pictograms[i].size / 2.0);
119 pictogram->setColor(QColor(msg->pictograms[i].color.r * 255,
120 msg->pictograms[i].color.g * 255,
121 msg->pictograms[i].color.b * 255));
122 pictogram->setAlpha(msg->pictograms[i].color.a);
123 pictogram->setPose(msg->pictograms[i].pose,
124 msg->pictograms[i].header.frame_id);
125 pictogram->setText(msg->pictograms[i].character);
126 pictogram->setMode(msg->pictograms[i].mode);
127 pictogram->setTTL(msg->pictograms[i].ttl);
128 pictogram->setSpeed(msg->pictograms[i].speed);
std::vector< PictogramObject::Ptr > pictograms_
virtual void onInitialize()
PLUGINLIB_EXPORT_CLASS(jsk_rviz_plugins::PictogramArrayDisplay, rviz::Display)
void allocatePictograms(size_t num)
DisplayContext * context_
void update(float wall_dt, float ros_dt)
Ogre::SceneNode * scene_node_
virtual ~PictogramArrayDisplay()
void processMessage(const jsk_rviz_plugins::PictogramArray::ConstPtr &msg)
virtual void onInitialize()
Ogre::SceneManager * scene_manager_