68 {
69 if (argc < 2) {
70 std::cout << "export_msgs config_file" << std::endl;
71 return -1;
72 }
73
75 std::shared_ptr<apollo::cyber::Node> node(
77 if (!node) {
78 std::cout << "Failed to create export node." << std::endl;
79 return -1;
80 }
81 std::vector<std::string> channels;
82 std::vector<std::string> child_frame_ids;
83 std::cout << "start to load config file: " << argv[1] << std::endl;
85 &child_frame_ids)) {
86 std::cout << "Failed to read config file" << std::endl;
87 return -1;
88 }
90 child_frame_ids);
92 sleep(1);
93 }
94 return 0;
95}
bool Init(const char *binary_name, const std::string &dag_info)
std::unique_ptr< Node > CreateNode(const std::string &node_name, const std::string &name_space)
bool config_parser(const std::string &config_file, std::vector< std::string > *channels, std::vector< std::string > *child_frame_ids)