mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-09-16 08:10:19 +08:00
merged master->ros2 (new multi_rgbd_inertial_dataset.launch.py example), fixed rtabmap_viz error on exit, fixed default name of rgbdx_sync node, fixed yaml_to_camera_info.py exit exception
This commit is contained in:
@@ -37,7 +37,7 @@ QApplication * app = 0;
|
||||
|
||||
void my_handler(int){
|
||||
UINFO("rtabmap_viz: ctrl-c catched! Exiting Qt app...");
|
||||
app->exit(-1);
|
||||
app->exit(0);
|
||||
}
|
||||
|
||||
int main(int argc, char** argv)
|
||||
@@ -87,8 +87,12 @@ int main(int argc, char** argv)
|
||||
r = app->exec();// MUST be called by the Main Thread
|
||||
|
||||
RCLCPP_INFO(node->get_logger(), "rtabmap_viz stopping spinner...");
|
||||
rclcpp::shutdown();
|
||||
execution_thread.join();
|
||||
if (rclcpp::ok()) {
|
||||
rclcpp::shutdown();
|
||||
}
|
||||
if (execution_thread.joinable()) {
|
||||
execution_thread.join();
|
||||
}
|
||||
|
||||
RCLCPP_INFO(node->get_logger(), "rtabmap_viz: All done! Closing...");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user