31 #include <QApplication> 36 QApplication *
app = 0;
40 ROS_INFO(
"rtabmapviz: ctrl-c catched! Exiting Qt app...");
45 int main(
int argc,
char** argv)
54 app =
new QApplication(argc, argv);
55 app->connect(
app, SIGNAL( lastWindowClosed() ),
app, SLOT( quit() ) );
61 struct sigaction sigIntHandler;
63 sigemptyset(&sigIntHandler.sa_mask);
64 sigIntHandler.sa_flags = 0;
65 sigaction(SIGINT, &sigIntHandler,
NULL);
75 ROS_INFO(
"rtabmapviz stopping spinner...");
78 ROS_INFO(
"rtabmapviz deleting qt stuff...");
81 ROS_INFO(
"rtabmapviz: All done! Closing...");
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
static void setLevel(ULogger::Level level)
static void setType(Type type, const std::string &fileName=kDefaultLogFileName, bool append=true)
ros::AsyncSpinner * spinner
int main(int argc, char **argv)
ROSCPP_DECL void shutdown()