diff --git a/cartographer_ros/cartographer_ros/CMakeLists.txt b/cartographer_ros/cartographer_ros/CMakeLists.txt index 20c9ecb..7aae7e4 100644 --- a/cartographer_ros/cartographer_ros/CMakeLists.txt +++ b/cartographer_ros/cartographer_ros/CMakeLists.txt @@ -175,6 +175,7 @@ google_binary(cartographer_assets_writer google_binary(cartographer_node USES_CARTOGRAPHER + USES_GFLAGS SRCS node_main.cc DEPENDS @@ -195,6 +196,7 @@ install(TARGETS cartographer_assets_writer ) google_binary(cartographer_offline_node USES_CARTOGRAPHER + USES_GFLAGS SRCS offline_node_main.cc DEPENDS diff --git a/cartographer_ros/cartographer_ros/node_main.cc b/cartographer_ros/cartographer_ros/node_main.cc index aea0452..71a24c9 100644 --- a/cartographer_ros/cartographer_ros/node_main.cc +++ b/cartographer_ros/cartographer_ros/node_main.cc @@ -23,6 +23,7 @@ #include "cartographer/common/port.h" #include "cartographer_ros/node.h" #include "cartographer_ros/ros_log_sink.h" +#include "gflags/gflags.h" #include "tf2_ros/transform_listener.h" DEFINE_string(configuration_directory, "", diff --git a/cartographer_ros/cartographer_ros/offline_node_main.cc b/cartographer_ros/cartographer_ros/offline_node_main.cc index 000e928..0a710a1 100644 --- a/cartographer_ros/cartographer_ros/offline_node_main.cc +++ b/cartographer_ros/cartographer_ros/offline_node_main.cc @@ -26,6 +26,7 @@ #include "cartographer_ros/node.h" #include "cartographer_ros/ros_log_sink.h" #include "cartographer_ros/urdf_reader.h" +#include "gflags/gflags.h" #include "ros/callback_queue.h" #include "rosbag/bag.h" #include "rosbag/view.h"