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

Allow virt cam lock to source pose

parent ce30eac9
No related branches found
No related tags found
1 merge request!116Implements #133 point alignment
Pipeline #14722 passed
This commit is part of merge request !116. Comments created here will be created in the context of that merge request.
...@@ -136,6 +136,9 @@ static void run(ftl::Configurable *root) { ...@@ -136,6 +136,9 @@ static void run(ftl::Configurable *root) {
ftl::rgbd::Group group; ftl::rgbd::Group group;
ftl::ILW *align = ftl::create<ftl::ILW>(root, "merge"); ftl::ILW *align = ftl::create<ftl::ILW>(root, "merge");
int o = root->value("origin_pose", 0) % sources.size();
virt->setPose(sources[o]->getPose());
// Generate virtual camera render when requested by streamer // Generate virtual camera render when requested by streamer
virt->onRender([splat,virt,&scene_B,align](ftl::rgbd::Frame &out) { virt->onRender([splat,virt,&scene_B,align](ftl::rgbd::Frame &out) {
virt->setTimestamp(scene_B.timestamp); virt->setTimestamp(scene_B.timestamp);
......
...@@ -8,7 +8,8 @@ class VirtualImpl : public ftl::rgbd::detail::Source { ...@@ -8,7 +8,8 @@ class VirtualImpl : public ftl::rgbd::detail::Source {
public: public:
explicit VirtualImpl(ftl::rgbd::Source *host, const ftl::rgbd::Camera &params) : ftl::rgbd::detail::Source(host) { explicit VirtualImpl(ftl::rgbd::Source *host, const ftl::rgbd::Camera &params) : ftl::rgbd::detail::Source(host) {
params_ = params; params_ = params;
capabilities_ = ftl::rgbd::kCapMovable | ftl::rgbd::kCapVideo | ftl::rgbd::kCapStereo; capabilities_ = ftl::rgbd::kCapVideo | ftl::rgbd::kCapStereo;
if (!host->value("locked", false)) capabilities_ |= ftl::rgbd::kCapMovable;
} }
~VirtualImpl() { ~VirtualImpl() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment