00001 #include <QObject> 00002 #include <QDir> 00003 #include <ros/console.h> 00004 #include "rqt_mrta/config/application/rqt_mrta_package.h" 00005 00006 namespace rqt_mrta 00007 { 00008 namespace config 00009 { 00010 namespace application 00011 { 00012 RqtMrtaApplicationPackage::RqtMrtaApplicationPackage(QObject* parent) 00013 : RosPackage(parent) 00014 { 00015 reset(); 00016 } 00017 00018 RqtMrtaApplicationPackage::~RqtMrtaApplicationPackage() {} 00019 00020 bool RqtMrtaApplicationPackage::createPackage() 00021 { 00022 addRunDepend("rqt_mrta"); 00023 export_->add("rqt_mrta/@application", "{prefix}/rqt_mrta.xml"); 00024 if (RosPackage::createPackage()) 00025 { 00026 QDir package_dir(getUrl()); 00027 package_dir.mkdir("config"); 00028 package_dir.mkdir("launch"); 00029 } 00030 } 00031 00032 QStringList RqtMrtaApplicationPackage::willBeGenerated() const 00033 { 00034 QStringList list; 00035 list.append("CMakeLists.txt"); 00036 list.append("package.xml"); 00037 list.append("rqt_mrta.xml"); 00038 return list; 00039 } 00040 } 00041 } 00042 }