Apollo 11.0
自动驾驶开放平台
map_tool.cc 文件参考
#include "gflags/gflags.h"
#include "cyber/common/file.h"
#include "cyber/common/log.h"
#include "modules/common/configs/config_gflags.h"
#include "modules/map/hdmap/hdmap_util.h"
#include "modules/common_msgs/map_msgs/map.pb.h"
map_tool.cc 的引用(Include)关系图:

浏览源代码.

函数

 DEFINE_double (x_offset, 587318.4866268333, "x offset")
 
 DEFINE_double (y_offset, 4141146.110116891, "y offset")
 
 DEFINE_string (output_dir, "/tmp/", "output map directory")
 
int main (int32_t argc, char **argv)
 

函数说明

◆ DEFINE_double() [1/2]

DEFINE_double ( x_offset  ,
587318.  4866268333,
"x offset"   
)

◆ DEFINE_double() [2/2]

DEFINE_double ( y_offset  ,
4141146.  110116891,
"y offset"   
)

◆ DEFINE_string()

DEFINE_string ( output_dir  ,
"/tmp/"  ,
"output map directory"   
)

◆ main()

int main ( int32_t  argc,
char **  argv 
)

在文件 map_tool.cc 第 73 行定义.

73 {
74 google::InitGoogleLogging(argv[0]);
75 FLAGS_alsologtostderr = true;
76 FLAGS_v = 3;
77
78 google::ParseCommandLineFlags(&argc, &argv, true);
79
80 Map map_pb;
81 const auto map_file = apollo::hdmap::BaseMapFile();
83 << "Fail to open:" << map_file;
84 ShiftMap(&map_pb);
85 OutputMap(map_pb);
86 AINFO << "modified map at:" << FLAGS_output_dir;
87}
#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 BaseMapFile()
get base map file path from flags.
Definition hdmap_util.cc:47