From e2f72ff51409f4ba6fd2c0b723c055ad769258ac Mon Sep 17 00:00:00 2001 From: Michael Grupp Date: Mon, 15 Oct 2018 11:20:39 +0200 Subject: [PATCH] Only use ROS log sink in pbstream_map_publisher_main.cc (#1040) Fixes double logging to stderr and rosout and makes it consistent with other cartographer_ros nodes. --- cartographer_ros/cartographer_ros/pbstream_map_publisher_main.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/cartographer_ros/cartographer_ros/pbstream_map_publisher_main.cc b/cartographer_ros/cartographer_ros/pbstream_map_publisher_main.cc index 1dfd5bb..3ca601f 100644 --- a/cartographer_ros/cartographer_ros/pbstream_map_publisher_main.cc +++ b/cartographer_ros/cartographer_ros/pbstream_map_publisher_main.cc @@ -84,7 +84,6 @@ void Run(const std::string& pbstream_filename, const std::string& map_topic, } // namespace cartographer_ros int main(int argc, char** argv) { - FLAGS_alsologtostderr = true; google::InitGoogleLogging(argv[0]); google::ParseCommandLineFlags(&argc, &argv, true);