Skip to content
Snippets Groups Projects

Resolves #115 in groupview app

Merged Nicolas Pope requested to merge feature/115/snapshotmulti into master
1 file
+ 5
0
Compare changes
  • Side-by-side
  • Inline
@@ -3,7 +3,10 @@
#include <ftl/net/universe.hpp>
#include <ftl/rgbd/source.hpp>
#include <ftl/rgbd/group.hpp>
#ifdef HAVE_LIBARCHIVE
#include <ftl/rgbd/snapshot.hpp>
#endif
using Eigen::Matrix4d;
using std::map;
@@ -68,6 +71,7 @@ int main(int argc, char **argv) {
if (grab) {
grab = false;
#ifdef HAVE_LIBARCHIVE
char timestamp[18];
std::time_t t=std::time(NULL);
std::strftime(timestamp, sizeof(timestamp), "%F-%H%M%S", std::localtime(&t));
@@ -78,6 +82,7 @@ int main(int argc, char **argv) {
LOG(INFO) << "SAVE: " << fs.channel1[i].cols << ", " << fs.channel2[i].type();
writer.addCameraRGBD(std::string("camera")+std::to_string(i), fs.channel1[i], fs.channel2[i]);
}
#endif // HAVE_LIBARCHIVE
}
return true;
});
Loading