| 11 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected