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 = std::make_unique<InitProxy>();
108 spinner = std::make_unique<ros::AsyncSpinner>(1);