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

Add new reconstruction class

parent 845bb0b4
No related branches found
No related tags found
1 merge request!186Implements #258 and implements #259 multi group
Pipeline #16871 passed
......@@ -314,6 +314,7 @@ static void run(ftl::Configurable *root) {
fileout.open(std::string(timestamp) + ".ftl");
writer.begin();
// TODO: Add to all grounds / reconstructions
groups[0]->addRawCallback(std::function(recorder));
// TODO: Write pose+calibration+config packets
......@@ -324,6 +325,7 @@ static void run(ftl::Configurable *root) {
sources[i]->inject(sources[i]->getPose());
}
} else {
// FIXME: Remove doesn't work, so multiple records fail.
groups[0]->removeRawCallback(recorder);
writer.end();
fileout.close();
......@@ -365,6 +367,7 @@ static void run(ftl::Configurable *root) {
//if (slave.isPaused()) return true;
if (controls->value("paused", false)) return true;
// TODO: busy needs to be an array now.
if (busy) {
LOG(INFO) << "Group frameset dropped: " << fs.timestamp;
return true;
......@@ -382,7 +385,7 @@ static void run(ftl::Configurable *root) {
UNIQUE_LOCK(scene_A[i].mtx, lk);
pipeline1->apply(scene_A[i], scene_A[i], 0);
align->process(scene_A[i]);
//align->process(scene_A[i]);
// TODO: To use second GPU, could do a download, swap, device change,
......
#ifndef _FTL_RECONSTRUCTION_HPP_
#define _FTL_RECONSTRUCTION_HPP_
namespace ftl {
class Reconstruction : public ftl::Configurable {
public:
Reconstruction();
~Reconstruction();
void addSource(ftl::rgbd::Source *);
/**
* Do the render for a specified virtual camera.
*/
void render(ftl::rgbd::VirtualSource *vs, ftl::rgbd::Frame &out);
private:
ftl::rgbd::Group *group_;
ftl::rgbd::FrameSet fs_;
ftl::operators::Graph *pipeline_;
ftl::render::Triangular *renderer_;
};
}
#endif // _FTL_RECONSTRUCTION_HPP_
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment