39 #include <boost/thread.hpp> 45 static std::vector<std::string>
args;
51 static std::string node_name(
"moveit_python_wrappers");
68 int fake_argc = args.size();
69 char** fake_argv =
new char*[args.size()];
70 for (std::size_t i = 0; i < args.size(); ++i)
71 fake_argv[i] = strdup(args[i].c_str());
75 for (
int i = 0; i < fake_argc; ++i)
76 delete[] fake_argv[i];
91 static boost::mutex lock;
92 boost::mutex::scoped_lock slock(lock);
95 static bool once =
true;
96 static std::unique_ptr<InitProxy> proxy;
97 static std::unique_ptr<ros::AsyncSpinner>
spinner;
107 proxy.reset(
new InitProxy());
ROSCPP_DECL bool isInitialized()
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
static void roscpp_init_or_stop(bool init)
static std::vector< std::string > & ROScppArgs()
ROSCPP_DECL bool isShuttingDown()
static std::string & ROScppNodeName()
ROSCPP_DECL void shutdown()