Go to the documentation of this file.
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 void init(const M_string &remappings, const std::string &name, uint32_t options=0)
ROSCPP_DECL void spinOnce()
ROSCPP_DECL void shutdown()
Subscriber subscribe(const std::string &topic, uint32_t queue_size, const boost::function< void(C)> &callback, const VoidConstPtr &tracked_object=VoidConstPtr(), const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL bool isStarted()
ROSCPP_DECL void waitForShutdown()
const ROSCPP_DECL std::string & getURI()