diff --git a/driving_environment_analyzer/include/driving_environment_analyzer/node.hpp b/driving_environment_analyzer/include/driving_environment_analyzer/node.hpp index 1bc9eba0..da2677b0 100644 --- a/driving_environment_analyzer/include/driving_environment_analyzer/node.hpp +++ b/driving_environment_analyzer/include/driving_environment_analyzer/node.hpp @@ -49,7 +49,7 @@ class DrivingEnvironmentAnalyzer : public rclcpp::Node explicit DrivingEnvironmentAnalyzer(const rclcpp::NodeOptions & node_options); private: - bool isEnoughData(const bool use_map_in_bag); + bool isDataReady(const bool use_map_in_bag); void onMap(const HADMapBin::ConstSharedPtr map_msg); void analyze(); diff --git a/driving_environment_analyzer/src/node.cpp b/driving_environment_analyzer/src/node.cpp index b4ddd154..b9496710 100644 --- a/driving_environment_analyzer/src/node.cpp +++ b/driving_environment_analyzer/src/node.cpp @@ -281,12 +281,12 @@ DrivingEnvironmentAnalyzer::DrivingEnvironmentAnalyzer(const rclcpp::NodeOptions reader_.open(bag_filename); - if (!isEnoughData(use_map_in_bag)) { + if (!isDataReady(use_map_in_bag)) { rclcpp::shutdown(); } } -bool DrivingEnvironmentAnalyzer::isEnoughData(const bool use_map_in_bag) +bool DrivingEnvironmentAnalyzer::isDataReady(const bool use_map_in_bag) { const std::string topic_route = "/planning/mission_planning/route"; const std::string topic_map = "/map/vector_map";