32 #include <QCoreApplication> 33 #include <QStringList> 42 int argc = QCoreApplication::arguments().size();
43 std::vector<char*> argv;
45 for (
const auto& arg : QCoreApplication::arguments())
47 auto* temp_str =
new char[arg.size()];
48 strcpy(temp_str, arg.toStdString().c_str());
49 argv.push_back(temp_str);
54 for (
const auto& arg : argv)
80 Q_EMIT
connected(
true, QString::fromStdString(uri));
ROSCPP_DECL const std::string & getURI()
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL bool isStarted()
ROSCPP_DECL void shutdown()
ROSCPP_DECL void spinOnce()
ROSCPP_DECL void waitForShutdown()