8 #include <boost/thread/thread.hpp>
17 int main(
int argc,
char** argv)
19 ros::init(argc, argv,
"adi_adtf31xx_sensor_stitch");
27 bool thread_spawn_status =
true;
30 boost::thread process_output_thread;
35 catch (
const std::exception& e)
37 thread_spawn_status =
false;
38 std::cerr <<
"Exception when trying to spawn process_output_thread : " << e.what() <<
'\n';
43 while ((
ros::ok()) && (thread_spawn_status))
68 if (thread_spawn_status)
75 process_output_thread.join();
77 catch (
const std::exception& e)
79 std::cerr <<
" Exception in process_output_thread.join() : " << e.what() <<
'\n';