traj_info.hpp
Go to the documentation of this file.
1 #ifndef RAM_QT_GUIS_TRAJ_INFO_HPP
2 #define RAM_QT_GUIS_TRAJ_INFO_HPP
3 
4 #ifndef Q_MOC_RUN
5 #include <mutex>
6 #include <ram_msgs/AdditiveManufacturingTrajectoryInfo.h>
7 #include <ros/ros.h>
8 #include <rviz/panel.h>
9 #endif
10 
11 #include <QDateTime>
12 #include <QHBoxLayout>
13 #include <QLabel>
14 #include <QScrollArea>
15 #include <QVBoxLayout>
16 #include <QtConcurrent/QtConcurrentRun>
17 
18 namespace ram_qt_guis
19 {
20 class TrajInfo : public rviz::Panel
21 {
22 Q_OBJECT
23  public:
24  TrajInfo(QWidget* parent = NULL);
25  virtual ~TrajInfo();
26 
27 private:
28  void checkForPublishers();
29  void callback(const ram_msgs::AdditiveManufacturingTrajectoryInfoConstPtr& msg);
30 
31 protected Q_SLOTS:
33  void load(const rviz::Config& config);
34  void save(rviz::Config config) const;
35 
36 protected:
37  QLabel *file_;
38  QLabel *generated_;
39  QLabel *modified_;
40  QLabel *similar_layers_;
46  QLabel *execution_time_;
47  QLabel *wire_length_;
48  QLabel *information_;
49 
52  std::recursive_mutex msg_mutex_;
53  ram_msgs::AdditiveManufacturingTrajectoryInfo msg_;
54 };
55 
56 }
57 
58 #endif
#define NULL
void updateGUIFromParameters()
Definition: traj_info.cpp:117
ros::NodeHandle nh_
Definition: traj_info.hpp:50
QLabel * number_of_poses_
Definition: traj_info.hpp:44
QLabel * similar_layers_
Definition: traj_info.hpp:40
void save(rviz::Config config) const
Definition: traj_info.cpp:142
config
QLabel * number_of_polygons_
Definition: traj_info.hpp:43
ros::Subscriber sub_
Definition: traj_info.hpp:51
QLabel * number_of_layers_indices_
Definition: traj_info.hpp:42
void load(const rviz::Config &config)
Definition: traj_info.cpp:137
void callback(const ram_msgs::AdditiveManufacturingTrajectoryInfoConstPtr &msg)
Definition: traj_info.cpp:110
QLabel * execution_time_
Definition: traj_info.hpp:46
QLabel * trajectory_length_
Definition: traj_info.hpp:45
QLabel * number_of_layers_levels_
Definition: traj_info.hpp:41
TrajInfo(QWidget *parent=NULL)
Definition: traj_info.cpp:6
ram_msgs::AdditiveManufacturingTrajectoryInfo msg_
Definition: traj_info.hpp:53
std::recursive_mutex msg_mutex_
Definition: traj_info.hpp:52


ram_qt_guis
Author(s): Victor Lamoine - Institut Maupertuis
autogenerated on Mon Jun 10 2019 14:50:11