transformable_marker_operator.h
Go to the documentation of this file.
1 #ifndef TRANSFORMABLE_MARKER_OPERATOR_H
2 #define TRANSFORMABLE_MARKER_OPERATOR_H
3 
4 #ifndef Q_MOC_RUN
5 #include <ros/ros.h>
6 #include <rviz/panel.h>
7 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
8 # include <QtWidgets>
9 #else
10 # include <QtGui>
11 #endif
12 #include <jsk_interactive_marker/SetMarkerDimensions.h>
13 #include <jsk_recognition_msgs/ObjectArray.h>
14 #include <jsk_rviz_plugins/RequestMarkerOperate.h>
15 #endif
16 
17 class QLineEdit;
18 class QPushButton;
19 
20 namespace rviz {
21  class VisualizationManager;
22 }
23 
24 namespace jsk_interactive_marker
25 {
27  {
28  Q_OBJECT
29  public:
30  TransformableMarkerOperatorAction( QWidget* parent = 0 );
31 
32  virtual void onInitialize();
33  virtual void load( const rviz::Config& config );
34  virtual void save( rviz::Config config ) const;
35 
36  protected Q_SLOTS:
37  void update();
38  void updateServerName();
39  void updateObjectArrayTopic();
40  void updateFocusMarkerDimensions();
41  void updateDimensionsService();
42  void updateFrameId();
43  void updateName();
44 
45  void callRequestMarkerOperateService(jsk_rviz_plugins::RequestMarkerOperate srv);
46  void insertBoxService();
47  void insertCylinderService();
48  void insertTorusService();
49  void insertMeshService();
50  void eraseWithIdService();
51  void eraseAllService();
52  void eraseFocusService();
53  void objectArrayCb(const jsk_recognition_msgs::ObjectArray::ConstPtr& obj_array_msg);
54 
55  protected:
56  QPushButton* insert_box_button_;
58  QPushButton* insert_torus_button_;
59  QPushButton* insert_mesh_button_;
60 
61  QPushButton* erase_with_id_button_;
62  QPushButton* erase_all_button_;
63  QPushButton* erase_focus_button_;
64 
65  QVBoxLayout* layout;
66 
67  QLineEdit* server_name_editor_;
68  QLineEdit* topic_name_editor_;
70  QLineEdit* dimension_x_editor_;
71  QLineEdit* dimension_y_editor_;
72  QLineEdit* dimension_z_editor_;
73  QComboBox* object_editor_;
76  QLineEdit* name_editor_;
77  QLineEdit* description_editor_;
78  QLineEdit* frame_editor_;
79  QLineEdit* id_editor_;
80 
81  std::vector<jsk_recognition_msgs::Object> objects_;
82 
85  };
86 } // namespace jsk_interactive_marker
87 
88 #endif
bool update(const T &new_val, T &my_val)
config
srv


jsk_interactive_marker
Author(s): furuta
autogenerated on Sat Mar 20 2021 03:03:33