15 ObjectFitOperatorAction::ObjectFitOperatorAction( QWidget* parent )
24 std::string fit_button_name, reverse_fit_button_name, near_button_name, other_button_name;
29 QSize iconSize(150, 150);
31 fit_button_->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
32 fit_button_->setIcon(QIcon(QPixmap(QString(fit_button_name.c_str()))));
37 check_box_ =
new QCheckBox(QString(
"Reverse"));
41 near_button_->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
42 near_button_->setIcon(QIcon(QPixmap(QString(near_button_name.c_str()))));
48 other_button_->setToolButtonStyle(Qt::ToolButtonTextUnderIcon);
49 other_button_->setIcon(QIcon(QPixmap(QString(other_button_name.c_str()))));
63 pub_ =
nh_.
advertise<jsk_rviz_plugins::ObjectFitCommand>(
"/object_fit_command", 1 );
92 jsk_rviz_plugins::ObjectFitCommand
msg;
PLUGINLIB_EXPORT_CLASS(jsk_rviz_plugins::PictogramArrayDisplay, rviz::Display)
QToolButton * fit_button_
void checkBoxChanged(bool state)
QHBoxLayout * horizontal_layout2_
virtual void save(Config config) const
QToolButton * other_button_
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
void publish(const boost::shared_ptr< M > &message) const
QToolButton * near_button_
void publishObjectFitOder(int type)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
ROSLIB_DECL std::string getPath(const std::string &package_name)
virtual void load(const rviz::Config &config)
QHBoxLayout * horizontal_layout1_
virtual void load(const Config &config)
virtual void save(rviz::Config config) const