Apollo 11.0
自动驾驶开放平台
topo_creator.cc 文件参考
topo_creator.cc 的引用(Include)关系图:

浏览源代码.

函数

int main (int argc, char **argv)
 

函数说明

◆ main()

int main ( int  argc,
char **  argv 
)

在文件 topo_creator.cc22 行定义.

22 {
23 google::InitGoogleLogging(argv[0]);
24 google::ParseCommandLineFlags(&argc, &argv, true);
25
27
28 ACHECK(apollo::cyber::common::GetProtoFromFile(FLAGS_routing_conf_file,
29 &routing_conf))
30 << "Unable to load routing conf file: " + FLAGS_routing_conf_file;
31
32 AINFO << "Conf file: " << FLAGS_routing_conf_file << " is loaded.";
33
34 const auto base_map = apollo::hdmap::BaseMapFile();
35 const auto routing_map = apollo::hdmap::RoutingMapFile();
36
37 apollo::routing::GraphCreator creator(base_map, routing_map, routing_conf);
38 ACHECK(creator.Create()) << "Create routing topo failed!";
39
40 AINFO << "Create routing topo successfully from " << base_map << " to "
41 << routing_map;
42 return 0;
43}
#define ACHECK(cond)
Definition log.h:80
#define AINFO
Definition log.h:42
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,...
Definition file.cc:132
std::string RoutingMapFile()
get routing map file path from flags.
Definition hdmap_util.cc:63
std::string BaseMapFile()
get base map file path from flags.
Definition hdmap_util.cc:47