48 #ifndef MODEL_DIALOG_H 49 #define MODEL_DIALOG_H 53 #include <QPushButton> 56 #include <flatland_msgs/SpawnModel.h> 57 #include <flatland_server/timekeeper.h> 58 #include <flatland_server/world.h> 59 #include <gtest/gtest.h> 61 #include <boost/filesystem.hpp> 65 #include <flatland_viz/model_dialog.h> 72 class DialogOptionsWidget;
74 namespace fs = boost::filesystem;
81 static QColor saved_color_;
95 void CancelButtonClicked();
100 void OkButtonClicked();
105 QString SelectFile();
112 void SetButtonColor(
const QColor* c, QPushButton* b);
118 void SpawnModelClient();
121 QPushButton* color_button;
122 QString path_to_model_file;
123 QLineEdit *x_edit, *y_edit, *a_edit, *n_edit;
126 boost::filesystem::path this_file_dir;
128 ros::ServiceClient client;
129 flatland_msgs::SpawnModel srv;
Definition: model_dialog.h:77