MCPcopy Create free account
hub / github.com/LimHyungTae/patchwork / PcdLoader

Method PcdLoader

include/tools/pcd_loader.hpp:13–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11class PcdLoader {
12 public:
13 explicit PcdLoader(const std::string &pcd_path) : pcd_path_(pcd_path) {
14 for (num_frames_ = 0;; num_frames_++) {
15 std::string filename = (boost::format("%s/%06d.pcd") % pcd_path % num_frames_).str();
16 if (!boost::filesystem::exists(filename)) {
17 break;
18 }
19 }
20
21 if (num_frames_ == 0) {
22 std::cerr << "error: no files in " << pcd_path << std::endl;
23 }
24 }
25
26 ~PcdLoader() {}
27

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected