Intel® RealSense™ Cross Platform API  2.13.0
Intel Realsense Cross-platform API
Public Member Functions | List of all members
rs2::tm2 Class Reference

#include <rs_device.hpp>

Inheritance diagram for rs2::tm2:
rs2::device

Public Member Functions

 tm2 (device d)
 
void enable_loopback (const std::string &from_file)
 
void disable_loopback ()
 
bool is_loopback_enabled () const
 
void connect_controller (const std::array< uint8_t, 6 > &mac_addr)
 
void disconnect_controller (int id)
 
- Public Member Functions inherited from rs2::device
std::vector< sensorquery_sensors () const
 
template<class T >
first () const
 
bool supports (rs2_camera_info info) const
 
const char * get_info (rs2_camera_info info) const
 
void hardware_reset ()
 
deviceoperator= (const std::shared_ptr< rs2_device > dev)
 
deviceoperator= (const device &dev)
 
 device ()
 
 operator bool () const
 
const std::shared_ptr< rs2_device > & get () const
 
template<class T >
bool is () const
 
template<class T >
as () const
 
virtual ~device ()
 

Additional Inherited Members

- Protected Member Functions inherited from rs2::device
 device (std::shared_ptr< rs2_device > dev)
 
- Protected Attributes inherited from rs2::device
std::shared_ptr< rs2_device_dev
 

Constructor & Destructor Documentation

◆ tm2()

rs2::tm2::tm2 ( device  d)
inline

Member Function Documentation

◆ connect_controller()

void rs2::tm2::connect_controller ( const std::array< uint8_t, 6 > &  mac_addr)
inline

Connects to a given tm2 controller

Parameters
[in]mac_addrThe MAC address of the desired controller

◆ disable_loopback()

void rs2::tm2::disable_loopback ( )
inline

Restores the given device into normal operation mode

◆ disconnect_controller()

void rs2::tm2::disconnect_controller ( int  id)
inline

Disconnects a given tm2 controller

Parameters
[in]idThe ID of the desired controller

◆ enable_loopback()

void rs2::tm2::enable_loopback ( const std::string &  from_file)
inline

Enter the given device into loopback operation mode that uses the given file as input for raw data

Parameters
[in]from_filePath to bag file with raw data for loopback

◆ is_loopback_enabled()

bool rs2::tm2::is_loopback_enabled ( ) const
inline

Checks if the device is in loopback mode or not

Returns
true if the device is in loopback operation mode

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