#include <hdmap_util.h>
◆ BaseMap()
const HDMap & apollo::hdmap::HDMapUtil::BaseMap |
( |
| ) |
|
|
static |
◆ BaseMapPtr() [1/2]
const HDMap * apollo::hdmap::HDMapUtil::BaseMapPtr |
( |
| ) |
|
|
static |
在文件 hdmap_util.cc 第 111 行定义.
111 {
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134 if (base_map_ == nullptr) {
135 std::lock_guard<std::mutex> lock(base_map_mutex_);
136 if (base_map_ == nullptr) {
138 }
139 }
140 return base_map_.get();
141}
std::unique_ptr< HDMap > CreateMap(const std::string &map_file_path)
std::string BaseMapFile()
get base map file path from flags.
◆ BaseMapPtr() [2/2]
在文件 hdmap_util.cc 第 98 行定义.
98 {
99 std::lock_guard<std::mutex> lock(base_map_mutex_);
100 if (base_map_ != nullptr &&
101 base_map_seq_ == map_msg.header().sequence_num()) {
102
103 return base_map_.get();
104 } else {
106 base_map_seq_ = map_msg.header().sequence_num();
107 }
108 return base_map_.get();
109}
◆ ReloadBaseMap()
bool apollo::hdmap::HDMapUtil::ReloadBaseMap |
( |
| ) |
|
|
static |
在文件 hdmap_util.cc 第 171 行定义.
171 {
172 {
173 std::lock_guard<std::mutex> lock(base_map_mutex_);
175 }
176 return base_map_ != nullptr;
177}
◆ ReloadMaps()
bool apollo::hdmap::HDMapUtil::ReloadMaps |
( |
| ) |
|
|
static |
在文件 hdmap_util.cc 第 159 行定义.
159 {
160 {
161 std::lock_guard<std::mutex> lock(base_map_mutex_);
163 }
164 {
165 std::lock_guard<std::mutex> lock(sim_map_mutex_);
167 }
168 return base_map_ != nullptr && sim_map_ != nullptr;
169}
std::string SimMapFile()
get simulation map file path from flags.
◆ SimMap()
const HDMap & apollo::hdmap::HDMapUtil::SimMap |
( |
| ) |
|
|
static |
◆ SimMapPtr()
const HDMap * apollo::hdmap::HDMapUtil::SimMapPtr |
( |
| ) |
|
|
static |
在文件 hdmap_util.cc 第 145 行定义.
145 {
146 if (FLAGS_use_navigation_mode) {
148 } else if (sim_map_ == nullptr) {
149 std::lock_guard<std::mutex> lock(sim_map_mutex_);
150 if (sim_map_ == nullptr) {
152 }
153 }
154 return sim_map_.get();
155}
该类的文档由以下文件生成: