Skip to content

Commit

Permalink
Merge pull request #4688 from ev-mp/candidate
Browse files Browse the repository at this point in the history
 Revert a WA to handle extrinsic data externally
  • Loading branch information
ev-mp authored Aug 21, 2019
2 parents 5840abb + 56e1698 commit 235304e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/environment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ namespace librealsense
void extrinsics_graph::register_extrinsics(const stream_interface & from, const stream_interface & to, rs2_extrinsics extr)
{
auto lazy_extr = std::make_shared<lazy<rs2_extrinsics>>([=]() {return extr; });
_external_extrinsics.push_back(lazy_extr);
register_extrinsics(from, to, lazy_extr);
}

Expand Down
2 changes: 2 additions & 0 deletions src/environment.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ namespace librealsense
private:
std::mutex _mutex;
std::shared_ptr<lazy<rs2_extrinsics>> _id;
// Required by current implementation to hold the reference instead of the device for certain types. TODO
std::vector<std::shared_ptr<lazy<rs2_extrinsics>>> _external_extrinsics;

PRIVATE_TESTABLE:
std::shared_ptr<lazy<rs2_extrinsics>> fetch_edge(int from, int to);
Expand Down

0 comments on commit 235304e

Please sign in to comment.