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
This commit is part of merge request !77. Comments created here will be created in the context of that merge request.
...@@ -3,7 +3,10 @@ ...@@ -3,7 +3,10 @@
#include <ftl/net/universe.hpp> #include <ftl/net/universe.hpp>
#include <ftl/rgbd/source.hpp> #include <ftl/rgbd/source.hpp>
#include <ftl/rgbd/group.hpp> #include <ftl/rgbd/group.hpp>
#ifdef HAVE_LIBARCHIVE
#include <ftl/rgbd/snapshot.hpp> #include <ftl/rgbd/snapshot.hpp>
#endif
using Eigen::Matrix4d; using Eigen::Matrix4d;
using std::map; using std::map;
...@@ -68,6 +71,7 @@ int main(int argc, char **argv) { ...@@ -68,6 +71,7 @@ int main(int argc, char **argv) {
if (grab) { if (grab) {
grab = false; grab = false;
#ifdef HAVE_LIBARCHIVE
char timestamp[18]; char timestamp[18];
std::time_t t=std::time(NULL); std::time_t t=std::time(NULL);
std::strftime(timestamp, sizeof(timestamp), "%F-%H%M%S", std::localtime(&t)); std::strftime(timestamp, sizeof(timestamp), "%F-%H%M%S", std::localtime(&t));
...@@ -78,6 +82,7 @@ int main(int argc, char **argv) { ...@@ -78,6 +82,7 @@ int main(int argc, char **argv) {
LOG(INFO) << "SAVE: " << fs.channel1[i].cols << ", " << fs.channel2[i].type(); 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]); writer.addCameraRGBD(std::string("camera")+std::to_string(i), fs.channel1[i], fs.channel2[i]);
} }
#endif // HAVE_LIBARCHIVE
} }
return true; return true;
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment