| 137 | } |
| 138 | |
| 139 | TEST(PcdWriterTest, pcd2pcd) |
| 140 | { |
| 141 | std::string outfile(Support::temppath("utm17.pcd")); |
| 142 | std::string infile(Support::datapath("pcd/utm17_space.pcd")); |
| 143 | |
| 144 | FileUtils::deleteFile(outfile); |
| 145 | |
| 146 | PcdReader r; |
| 147 | Options ro; |
| 148 | |
| 149 | ro.add("filename", infile); |
| 150 | r.setOptions(ro); |
| 151 | |
| 152 | PcdWriter w; |
| 153 | Options wo; |
| 154 | |
| 155 | wo.add("filename", outfile); |
| 156 | wo.add("order", "X,Y,Z"); |
| 157 | wo.add("precision", 2); |
| 158 | w.setOptions(wo); |
| 159 | w.setInput(r); |
| 160 | |
| 161 | PointTable t; |
| 162 | |
| 163 | w.prepare(t); |
| 164 | w.execute(t); |
| 165 | |
| 166 | comparePcdPcd(infile, outfile); |
| 167 | } |
| 168 | |
| 169 | TEST(PcdWriterTest, las2pcd) |
| 170 | { |
nothing calls this directly
no test coverage detected