MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / Load

Method Load

LibCarla/source/carla/nav/Navigation.cpp:71–85  ·  view source on GitHub ↗

load navigation data

Source from the content-addressed store, hash-verified

69
70 // load navigation data
71 bool Navigation::Load(const std::string &filename) {
72 std::ifstream f;
73 std::istream_iterator<uint8_t> start(f), end;
74
75 // read the whole file
76 f.open(filename, std::ios::binary);
77 if (!f.is_open()) {
78 return false;
79 }
80 std::vector<uint8_t> content(start, end);
81 f.close();
82
83 // parse the content
84 return Load(std::move(content));
85 }
86
87 // load navigation data from memory
88 bool Navigation::Load(std::vector<uint8_t> content) {

Callers 4

UnregisterWalkerMethod · 0.45
WalkerNavigationMethod · 0.45
TickMethod · 0.45
CallMethod · 0.45

Calls 4

LoadFunction · 0.85
logFunction · 0.50
closeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected