00001 #include <ros/package.h> 00002 #include <rospack/macros.h> 00003 #include <rospack/rospack.h> 00004 #include "rqt_mrta/rqt_mrta_plugin.h" 00005 #include <pluginlib/class_list_macros.h> 00006 #include <rqt_mrta/rqt_mrta_widget.h> 00007 00008 PLUGINLIB_DECLARE_CLASS(rqt_mrta, RqtMrtaPlugin, rqt_mrta::RqtMrtaPlugin, 00009 rqt_gui_cpp::Plugin) 00010 00011 namespace rqt_mrta 00012 { 00013 RqtMrtaPlugin::RqtMrtaPlugin() 00014 : rqt_gui_cpp::Plugin(), mrta_widget_(NULL) 00015 { 00016 setObjectName("RqtMrtaPlugin"); 00017 } 00018 00019 RqtMrtaPlugin::~RqtMrtaPlugin() 00020 { 00021 if (mrta_widget_) 00022 { 00023 delete mrta_widget_; 00024 mrta_widget_ = NULL; 00025 } 00026 } 00027 00028 void RqtMrtaPlugin::initPlugin(qt_gui_cpp::PluginContext& context) 00029 { 00030 mrta_widget_ = new RqtMrtaWidget(NULL, context); 00031 context.addWidget(mrta_widget_); 00032 } 00033 }