diff --git a/cartographer_ros/cartographer_ros/CMakeLists.txt b/cartographer_ros/cartographer_ros/CMakeLists.txt index 7aae7e4..afb335d 100644 --- a/cartographer_ros/cartographer_ros/CMakeLists.txt +++ b/cartographer_ros/cartographer_ros/CMakeLists.txt @@ -194,6 +194,7 @@ install(TARGETS cartographer_assets_writer LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} ) + google_binary(cartographer_offline_node USES_CARTOGRAPHER USES_GFLAGS @@ -205,3 +206,9 @@ google_binary(cartographer_offline_node ros_log_sink urdf_reader ) + +install(TARGETS cartographer_offline_node + ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} + LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} + RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} +) diff --git a/cartographer_ros/cartographer_ros/offline_node_main.cc b/cartographer_ros/cartographer_ros/offline_node_main.cc index 335f665..e355e04 100644 --- a/cartographer_ros/cartographer_ros/offline_node_main.cc +++ b/cartographer_ros/cartographer_ros/offline_node_main.cc @@ -210,7 +210,6 @@ void Run(std::vector bag_filenames) { } // namespace cartographer_ros int main(int argc, char** argv) { - FLAGS_alsologtostderr = true; google::InitGoogleLogging(argv[0]); google::ParseCommandLineFlags(&argc, &argv, true);