Public Member Functions | Protected Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
librealsense::tm2_device Class Reference

#include <tm-device.h>

Inheritance diagram for librealsense::tm2_device:
Inheritance graph
[legend]

Public Member Functions

bool compress_while_record () const override
 
void connect_controller (const std::array< uint8_t, 6 > &mac_address) override
 
void disable_loopback () override
 
void disconnect_controller (int id) override
 
void enable_loopback (const std::string &source_file) override
 
std::vector< tagged_profileget_profiles_tags () const override
 
std::shared_ptr< tm2_sensorget_tm2_sensor ()
 
void hardware_reset () override
 
bool is_enabled () const override
 
 tm2_device (std::shared_ptr< context > ctx, const platform::backend_device_group &group, bool register_device_notifications)
 
virtual ~tm2_device ()
 
- Public Member Functions inherited from librealsense::device
virtual bool contradicts (const stream_profile_interface *a, const std::vector< stream_profile > &others) const override
 
virtual std::shared_ptr< matchercreate_matcher (const frame_holder &frame) const override
 
size_t find_sensor_idx (const sensor_interface &s) const
 
std::shared_ptr< contextget_context () const override
 
platform::backend_device_group get_device_data () const override
 
std::pair< uint32_t, rs2_extrinsicsget_extrinsics (const stream_interface &stream) const override
 
sensor_interfaceget_sensor (size_t subdevice) override
 
const sensor_interfaceget_sensor (size_t subdevice) const override
 
size_t get_sensors_count () const override
 
bool is_valid () const override
 
virtual void stop_activity () const
 
void tag_profiles (stream_profiles profiles) const override
 
virtual ~device ()
 
- Public Member Functions inherited from librealsense::device_interface
virtual ~device_interface ()=default
 
- Public Member Functions inherited from librealsense::info_interface
virtual ~info_interface ()=default
 
- Public Member Functions inherited from librealsense::recordable< info_interface >
virtual ~recordable ()=default
 
- Public Member Functions inherited from librealsense::info_container
void create_snapshot (std::shared_ptr< info_interface > &snapshot) const override
 
void enable_recording (std::function< void(const info_interface &)> record_action) override
 
const std::stringget_info (rs2_camera_info info) const override
 
void register_info (rs2_camera_info info, const std::string &val)
 
bool supports_info (rs2_camera_info info) const override
 
void update (std::shared_ptr< extension_snapshot > ext) override
 
void update_info (rs2_camera_info info, const std::string &val)
 
- Public Member Functions inherited from librealsense::extension_snapshot
virtual ~extension_snapshot ()=default
 
- Public Member Functions inherited from librealsense::tm2_extensions
virtual ~tm2_extensions ()=default
 

Protected Member Functions

void register_stream_to_extrinsic_group (const stream_interface &stream, uint32_t group_index)
 
- Protected Member Functions inherited from librealsense::device
int add_sensor (const std::shared_ptr< sensor_interface > &sensor_base)
 
int assign_sensor (const std::shared_ptr< sensor_interface > &sensor_base, uint8_t idx)
 
 device (std::shared_ptr< context > ctx, const platform::backend_device_group group, bool device_changed_notifications=false)
 
std::vector< rs2_formatmap_supported_color_formats (rs2_format source_format)
 
void register_stream_to_extrinsic_group (const stream_interface &stream, uint32_t groupd_index)
 

Private Member Functions

template<typename Request , typename Response >
platform::usb_status bulk_request_response (const Request &request, Response &response, size_t max_response_size=0, bool assert_success=true)
 
bool cancel_request (platform::rs_usb_request request)
 
platform::rs_usb_request interrupt_read_request (std::vector< uint8_t > &buffer, std::shared_ptr< platform::usb_request_callback > callback)
 
platform::rs_usb_request stream_read_request (std::vector< uint8_t > &buffer, std::shared_ptr< platform::usb_request_callback > callback)
 
platform::usb_status stream_write (const t265::bulk_message_request_header *request)
 
void submit_request (platform::rs_usb_request request)
 

Static Private Member Functions

static const char * tm2_device_name ()
 

Private Attributes

std::shared_ptr< tm2_sensor_sensor
 
std::mutex bulk_mutex
 
platform::rs_usb_endpoint endpoint_bulk_in
 
platform::rs_usb_endpoint endpoint_bulk_out
 
platform::rs_usb_endpoint endpoint_int_in
 
platform::rs_usb_endpoint endpoint_int_out
 
platform::rs_usb_endpoint endpoint_msg_in
 
platform::rs_usb_endpoint endpoint_msg_out
 
std::mutex stream_mutex
 
platform::rs_usb_device usb_device
 
platform::usb_device_info usb_info
 
platform::rs_usb_messenger usb_messenger
 

Friends

class tm2_sensor
 

Additional Inherited Members

- Protected Attributes inherited from librealsense::device
std::map< int, std::pair< uint32_t, std::shared_ptr< const stream_interface > > > _extrinsics
 

Detailed Description

Definition at line 22 of file tm-device.h.

Constructor & Destructor Documentation

librealsense::tm2_device::tm2_device ( std::shared_ptr< context ctx,
const platform::backend_device_group group,
bool  register_device_notifications 
)

Definition at line 1916 of file tm-device.cpp.

librealsense::tm2_device::~tm2_device ( )
virtual

Definition at line 2008 of file tm-device.cpp.

Member Function Documentation

template<typename Request , typename Response >
platform::usb_status librealsense::tm2_device::bulk_request_response ( const Request &  request,
Response &  response,
size_t  max_response_size = 0,
bool  assert_success = true 
)
private

Definition at line 2026 of file tm-device.cpp.

bool librealsense::tm2_device::cancel_request ( platform::rs_usb_request  request)
private

Definition at line 2105 of file tm-device.cpp.

bool librealsense::tm2_device::compress_while_record ( ) const
inlineoverridevirtual

Reimplemented from librealsense::device.

Definition at line 43 of file tm-device.h.

void librealsense::tm2_device::connect_controller ( const std::array< uint8_t, 6 > &  mac_address)
inlineoverridevirtual

Implements librealsense::tm2_extensions.

Definition at line 36 of file tm-device.h.

void librealsense::tm2_device::disable_loopback ( )
overridevirtual

Implements librealsense::tm2_extensions.

Definition at line 2141 of file tm-device.cpp.

void librealsense::tm2_device::disconnect_controller ( int  id)
inlineoverridevirtual

Implements librealsense::tm2_extensions.

Definition at line 37 of file tm-device.h.

void librealsense::tm2_device::enable_loopback ( const std::string source_file)
overridevirtual

Enable loopback will replace the input and ouput of the tm2 sensor

Implements librealsense::tm2_extensions.

Definition at line 2124 of file tm-device.cpp.

std::vector<tagged_profile> librealsense::tm2_device::get_profiles_tags ( ) const
inlineoverridevirtual

Implements librealsense::device_interface.

Definition at line 39 of file tm-device.h.

std::shared_ptr<tm2_sensor> librealsense::tm2_device::get_tm2_sensor ( )
inline

Definition at line 45 of file tm-device.h.

void librealsense::tm2_device::hardware_reset ( )
overridevirtual

Reimplemented from librealsense::device.

Definition at line 2018 of file tm-device.cpp.

platform::rs_usb_request librealsense::tm2_device::interrupt_read_request ( std::vector< uint8_t > &  buffer,
std::shared_ptr< platform::usb_request_callback callback 
)
private

Definition at line 2113 of file tm-device.cpp.

bool librealsense::tm2_device::is_enabled ( ) const
overridevirtual

Implements librealsense::tm2_extensions.

Definition at line 2147 of file tm-device.cpp.

void librealsense::tm2_device::register_stream_to_extrinsic_group ( const stream_interface stream,
uint32_t  group_index 
)
protected

Definition at line 2152 of file tm-device.cpp.

platform::rs_usb_request librealsense::tm2_device::stream_read_request ( std::vector< uint8_t > &  buffer,
std::shared_ptr< platform::usb_request_callback callback 
)
private

Definition at line 2090 of file tm-device.cpp.

platform::usb_status librealsense::tm2_device::stream_write ( const t265::bulk_message_request_header request)
private

Definition at line 2069 of file tm-device.cpp.

void librealsense::tm2_device::submit_request ( platform::rs_usb_request  request)
private

Definition at line 2098 of file tm-device.cpp.

static const char* librealsense::tm2_device::tm2_device_name ( )
inlinestaticprivate

Definition at line 51 of file tm-device.h.

Friends And Related Function Documentation

friend class tm2_sensor
friend

Definition at line 78 of file tm-device.h.

Member Data Documentation

std::shared_ptr<tm2_sensor> librealsense::tm2_device::_sensor
private

Definition at line 55 of file tm-device.h.

std::mutex librealsense::tm2_device::bulk_mutex
private

Definition at line 65 of file tm-device.h.

platform::rs_usb_endpoint librealsense::tm2_device::endpoint_bulk_in
private

Definition at line 62 of file tm-device.h.

platform::rs_usb_endpoint librealsense::tm2_device::endpoint_bulk_out
private

Definition at line 62 of file tm-device.h.

platform::rs_usb_endpoint librealsense::tm2_device::endpoint_int_in
private

Definition at line 63 of file tm-device.h.

platform::rs_usb_endpoint librealsense::tm2_device::endpoint_int_out
private

Definition at line 63 of file tm-device.h.

platform::rs_usb_endpoint librealsense::tm2_device::endpoint_msg_in
private

Definition at line 61 of file tm-device.h.

platform::rs_usb_endpoint librealsense::tm2_device::endpoint_msg_out
private

Definition at line 61 of file tm-device.h.

std::mutex librealsense::tm2_device::stream_mutex
private

Definition at line 70 of file tm-device.h.

platform::rs_usb_device librealsense::tm2_device::usb_device
private

Definition at line 58 of file tm-device.h.

platform::usb_device_info librealsense::tm2_device::usb_info
private

Definition at line 57 of file tm-device.h.

platform::rs_usb_messenger librealsense::tm2_device::usb_messenger
private

Definition at line 59 of file tm-device.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:38