Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
librealsense::extrinsics_graph Class Reference

#include <environment.h>

Classes

struct  extrinsics_lock
 

Public Member Functions

 extrinsics_graph ()
 
extrinsics_lock lock ()
 
void override_extrinsics (const stream_interface &from, const stream_interface &to, rs2_extrinsics const &extr)
 
void register_extrinsics (const stream_interface &from, const stream_interface &to, std::weak_ptr< lazy< rs2_extrinsics >> extr)
 
void register_extrinsics (const stream_interface &from, const stream_interface &to, rs2_extrinsics extr)
 
void register_same_extrinsics (const stream_interface &from, const stream_interface &to)
 
bool try_fetch_extrinsics (const stream_interface &from, const stream_interface &to, rs2_extrinsics *extr)
 

Private Member Functions

void cleanup_extrinsics ()
 
int find_stream_profile (const stream_interface &p, bool add_if_not_there=true)
 
bool try_fetch_extrinsics (int from, int to, std::set< int > &visited, rs2_extrinsics *extr)
 

Private Attributes

PRIVATE_TESTABLE __pad0__: std::shared_ptr<lazy<rs2_extrinsics>> fetch_edge(int from
 
std::vector< std::shared_ptr< lazy< rs2_extrinsics > > > _external_extrinsics
 
std::map< int, std::map< int, std::weak_ptr< lazy< rs2_extrinsics > > > > _extrinsics
 
std::shared_ptr< lazy< rs2_extrinsics > > _id
 
std::atomic< int > _locks_count
 
std::mutex _mutex
 
std::map< int, std::weak_ptr< const stream_interface > > _streams
 
PRIVATE_TESTABLE int to
 

Detailed Description

Definition at line 12 of file environment.h.

Constructor & Destructor Documentation

librealsense::extrinsics_graph::extrinsics_graph ( )

Definition at line 8 of file environment.cpp.

Member Function Documentation

void librealsense::extrinsics_graph::cleanup_extrinsics ( )
private

Definition at line 82 of file environment.cpp.

int librealsense::extrinsics_graph::find_stream_profile ( const stream_interface p,
bool  add_if_not_there = true 
)
private

Definition at line 115 of file environment.cpp.

extrinsics_graph::extrinsics_lock librealsense::extrinsics_graph::lock ( )

Definition at line 17 of file environment.cpp.

void librealsense::extrinsics_graph::override_extrinsics ( const stream_interface from,
const stream_interface to,
rs2_extrinsics const &  extr 
)

Definition at line 55 of file environment.cpp.

void librealsense::extrinsics_graph::register_extrinsics ( const stream_interface from,
const stream_interface to,
std::weak_ptr< lazy< rs2_extrinsics >>  extr 
)

Definition at line 28 of file environment.cpp.

void librealsense::extrinsics_graph::register_extrinsics ( const stream_interface from,
const stream_interface to,
rs2_extrinsics  extr 
)

Definition at line 48 of file environment.cpp.

void librealsense::extrinsics_graph::register_same_extrinsics ( const stream_interface from,
const stream_interface to 
)

Definition at line 23 of file environment.cpp.

bool librealsense::extrinsics_graph::try_fetch_extrinsics ( const stream_interface from,
const stream_interface to,
rs2_extrinsics extr 
)

Definition at line 132 of file environment.cpp.

bool librealsense::extrinsics_graph::try_fetch_extrinsics ( int  from,
int  to,
std::set< int > &  visited,
rs2_extrinsics extr 
)
private

Definition at line 149 of file environment.cpp.

Member Data Documentation

PRIVATE_TESTABLE librealsense::extrinsics_graph::__pad0__
private

Definition at line 54 of file environment.h.

std::vector<std::shared_ptr<lazy<rs2_extrinsics> > > librealsense::extrinsics_graph::_external_extrinsics
private

Definition at line 51 of file environment.h.

std::map<int, std::map<int, std::weak_ptr<lazy<rs2_extrinsics> > > > librealsense::extrinsics_graph::_extrinsics
private

Definition at line 60 of file environment.h.

std::shared_ptr<lazy<rs2_extrinsics> > librealsense::extrinsics_graph::_id
private

Definition at line 49 of file environment.h.

std::atomic<int> librealsense::extrinsics_graph::_locks_count
private

Definition at line 59 of file environment.h.

std::mutex librealsense::extrinsics_graph::_mutex
private

Definition at line 48 of file environment.h.

std::map<int, std::weak_ptr<const stream_interface> > librealsense::extrinsics_graph::_streams
private

Definition at line 62 of file environment.h.

PRIVATE_TESTABLE int librealsense::extrinsics_graph::to
private

Definition at line 54 of file environment.h.


The documentation for this class was generated from the following files:


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:37