45 #include <sys/types.h> 57 , node_initialized_(false)
58 , wait_for_master_dialog_(0)
59 , wait_for_master_thread_(0)
61 QList<PluginProvider*> plugin_providers;
94 wait_for_master_dialog_ =
new QMessageBox(QMessageBox::Question, QObject::tr(
"Waiting for ROS master"), QObject::tr(
"Could not find ROS master. Either start a 'roscore' or abort loading the plugin."), QMessageBox::Abort);
100 bool no_master = (button != QMessageBox::Ok);
112 throw std::runtime_error(
"RosCppPluginProvider::init_node() could not find ROS master");
123 std::stringstream name;
124 name <<
"rqt_gui_cpp_node_";
126 qDebug(
"RosCppPluginProvider::init_node() initialize ROS node '%s'", name.str().c_str());
virtual void * load(const QString &plugin_id, qt_gui_cpp::PluginContext *plugin_context)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
virtual Plugin * load_plugin(const QString &plugin_id, PluginContext *plugin_context)
QThread * wait_for_master_thread_
virtual qt_gui_cpp::Plugin * load_plugin(const QString &plugin_id, qt_gui_cpp::PluginContext *plugin_context)
virtual void * load(const QString &plugin_id, PluginContext *plugin_context)
ROSCPP_DECL bool isStarted()
QMessageBox * wait_for_master_dialog_
ROSCPP_DECL void shutdown()
virtual void set_plugin_providers(const QList< PluginProvider * > &plugin_providers)
virtual ~RosCppPluginProvider()
#define PLUGINLIB_EXPORT_CLASS(class_type, base_class_type)