Skip to content
Snippets Groups Projects
Commit bb6e2d93 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

pose from vision node

parent f7b18b17
No related branches found
No related tags found
1 merge request!210Feature/multiplexer pose
Pipeline #18147 failed
...@@ -114,7 +114,8 @@ static ftl::rgbd::Generator *createSourceGenerator(const std::vector<ftl::rgbd:: ...@@ -114,7 +114,8 @@ static ftl::rgbd::Generator *createSourceGenerator(const std::vector<ftl::rgbd::
input->setPose(input->getPose()); input->setPose(input->getPose());
continue; continue;
} }
input->setPose(T->second); //input->setPose(T->second);
} }
} }
...@@ -122,6 +123,7 @@ static ftl::rgbd::Generator *createSourceGenerator(const std::vector<ftl::rgbd:: ...@@ -122,6 +123,7 @@ static ftl::rgbd::Generator *createSourceGenerator(const std::vector<ftl::rgbd::
for (auto s : srcs) { for (auto s : srcs) {
s->setChannel(Channel::Depth); s->setChannel(Channel::Depth);
grp->addSource(s); grp->addSource(s);
LOG(INFO) << s->getPose();
} }
return grp; return grp;
} }
...@@ -233,6 +235,7 @@ static void run(ftl::Configurable *root) { ...@@ -233,6 +235,7 @@ static void run(ftl::Configurable *root) {
auto reconstr = ftl::create<ftl::Reconstruction>(root, std::string("recon")+std::to_string(i), std::to_string(i)); auto reconstr = ftl::create<ftl::Reconstruction>(root, std::string("recon")+std::to_string(i), std::to_string(i));
//reconstr->setGenerator(gen); //reconstr->setGenerator(gen);
gen->onFrameSet([stream, reconstr](ftl::rgbd::FrameSet &fs) { gen->onFrameSet([stream, reconstr](ftl::rgbd::FrameSet &fs) {
LOG(INFO) << fs.frames[0].getPose();
stream->select(fs.id, Channel::Colour + Channel::Depth); stream->select(fs.id, Channel::Colour + Channel::Depth);
return reconstr->post(fs); return reconstr->post(fs);
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment