Skip to content
Snippets Groups Projects
Commit ec7b07a9 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Groupview without libarchive

parent 9f27d2d7
No related branches found
No related tags found
1 merge request!77Resolves #115 in groupview app
Pipeline #12499 failed
......@@ -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;
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment