35 AINFO <<
"map_dir: " << FLAGS_map_dir;
36 if (FLAGS_planning_offline_bags.empty()) {
41 AERROR <<
"Feature output is not ready.";
45 const std::string planning_config_file =
46 "/apollo/modules/planning/planning_component/conf/planning_config.pb.txt";
50 <<
"failed to load planning config file " << planning_config_file;
53 if (!message_process.
Init(planning_config)) {
57 const std::vector<std::string> inputs =
58 absl::StrSplit(FLAGS_planning_offline_bags,
':');
59 for (
const auto& input : inputs) {
60 std::vector<std::string> offline_bags;
62 std::sort(offline_bags.begin(), offline_bags.end());
63 AINFO <<
"For input " << input <<
", found " << offline_bags.size()
64 <<
" rosbags to process";
65 for (std::size_t i = 0; i < offline_bags.size(); ++i) {
66 AINFO <<
"\tProcessing: [ " << i + 1 <<
" / " << offline_bags.size()
67 <<
" ]: " << offline_bags[i];
72 message_process.
Close();
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...