The tm2 class is an interface for T2XX devices, such as T265.
For T265, it provides RS2_STREAM_FISHEYE (2), RS2_STREAM_GYRO, RS2_STREAM_ACCEL, and RS2_STREAM_POSE streams, and contains the following sensors:
Definition at line 796 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.


Public Member Functions | |
| tm2 (device d) | |
| void | enable_loopback (const std::string &from_file) |
| Enter the given device into loopback operation mode that uses the given file as input for raw data. More... | |
| void | disable_loopback () |
| Restores the given device into normal operation mode. More... | |
| bool | is_loopback_enabled () const |
| Checks if the device is in loopback mode or not. More... | |
| void | connect_controller (const std::array< uint8_t, 6 > &mac_addr) |
| Connects to a given tm2 controller. More... | |
| void | disconnect_controller (int id) |
| Disconnects a given tm2 controller. More... | |
| void | set_intrinsics (int fisheye_sensor_id, const rs2_intrinsics &intrinsics) |
| Set tm2 camera intrinsics. More... | |
| void | set_extrinsics (rs2_stream from_stream, int from_id, rs2_stream to_stream, int to_id, rs2_extrinsics &extrinsics) |
| Set tm2 camera extrinsics. More... | |
| void | set_motion_device_intrinsics (rs2_stream stream_type, const rs2_motion_device_intrinsic &motion_intriniscs) |
| Set tm2 motion device intrinsics. More... | |
| tm2 (device d) | |
| void | enable_loopback (const std::string &from_file) |
| Enter the given device into loopback operation mode that uses the given file as input for raw data. More... | |
| void | disable_loopback () |
| Restores the given device into normal operation mode. More... | |
| bool | is_loopback_enabled () const |
| Checks if the device is in loopback mode or not. More... | |
| void | connect_controller (const std::array< uint8_t, 6 > &mac_addr) |
| Connects to a given tm2 controller. More... | |
| void | disconnect_controller (int id) |
| Disconnects a given tm2 controller. More... | |
| void | set_intrinsics (int fisheye_sensor_id, const rs2_intrinsics &intrinsics) |
| Set tm2 camera intrinsics. More... | |
| void | set_extrinsics (rs2_stream from_stream, int from_id, rs2_stream to_stream, int to_id, rs2_extrinsics &extrinsics) |
| Set tm2 camera extrinsics. More... | |
| void | set_motion_device_intrinsics (rs2_stream stream_type, const rs2_motion_device_intrinsic &motion_intriniscs) |
| Set tm2 motion device intrinsics. More... | |
| void | write_calibration () const |
| Write calibration that was set by set_calibration_table to device's EEPROM. More... | |
| void | write_calibration () const |
| Write calibration that was set by set_calibration_table to device's EEPROM. More... | |
| void | reset_to_factory_calibration () |
| Reset device to factory calibration. More... | |
| void | reset_to_factory_calibration () |
| Reset device to factory calibration. More... | |
| std::vector< sensor > | query_sensors () const |
| returns the list of adjacent devices, sharing the same physical parent composite device More... | |
| std::vector< sensor > | query_sensors () const |
| returns the list of adjacent devices, sharing the same physical parent composite device More... | |
| template<class T > | |
| T | first () const |
| template<class T > | |
| T | first () const |
| bool | supports (rs2_camera_info info) const |
| check if specific camera info is supported More... | |
| bool | supports (rs2_camera_info info) const |
| check if specific camera info is supported More... | |
| const char * | get_info (rs2_camera_info info) const |
| retrieve camera specific information, like versions of various internal components More... | |
| const char * | get_info (rs2_camera_info info) const |
| retrieve camera specific information, like versions of various internal components More... | |
| void | hardware_reset () |
| send hardware reset request to the device More... | |
| void | hardware_reset () |
| send hardware reset request to the device More... | |
| operator bool () const | |
| operator bool () const | |
| const std::shared_ptr< rs2_device > & | get () const |
| const std::shared_ptr< rs2_device > & | get () const |
| template<class T > | |
| bool | is () const |
| template<class T > | |
| bool | is () const |
| template<class T > | |
| T | as () const |
| template<class T > | |
| T | as () const |
| operator std::shared_ptr< rs2_device > () | |
| operator std::shared_ptr< rs2_device > () | |
Protected Attributes | |
| std::shared_ptr< rs2_device > | _dev |
|
inline |
Definition at line 799 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), RS2_EXTENSION_TM2, and rs2_is_device_extendable_to().
|
inline |
Definition at line 799 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), RS2_EXTENSION_TM2, and rs2_is_device_extendable_to().
|
inlineinherited |
Definition at line 129 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
|
inlineinherited |
Definition at line 129 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
|
inline |
Connects to a given tm2 controller.
| [in] | mac_addr | The MAC address of the desired controller |
Definition at line 847 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_connect_tm2_controller().
|
inline |
Connects to a given tm2 controller.
| [in] | mac_addr | The MAC address of the desired controller |
Definition at line 847 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_connect_tm2_controller().
|
inline |
Restores the given device into normal operation mode.
Definition at line 824 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_loopback_disable().
|
inline |
Restores the given device into normal operation mode.
Definition at line 824 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_loopback_disable().
|
inline |
Disconnects a given tm2 controller.
| [in] | id | The ID of the desired controller |
Definition at line 858 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_disconnect_tm2_controller().
|
inline |
Disconnects a given tm2 controller.
| [in] | id | The ID of the desired controller |
Definition at line 858 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_disconnect_tm2_controller().
|
inline |
Enter the given device into loopback operation mode that uses the given file as input for raw data.
| [in] | from_file | Path to bag file with raw data for loopback |
Definition at line 814 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_loopback_enable().
|
inline |
Enter the given device into loopback operation mode that uses the given file as input for raw data.
| [in] | from_file | Path to bag file with raw data for loopback |
Definition at line 814 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_loopback_enable().
|
inlineinherited |
Definition at line 52 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::query_sensors().
|
inlineinherited |
Definition at line 52 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::query_sensors().
|
inlineinherited |
Definition at line 116 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev.
Referenced by rs2::device_list::contains(), rs2::device_calibration::device_calibration(), rs2::recorder::recorder(), rs2::event_information::was_added(), and rs2::event_information::was_removed().
|
inlineinherited |
Definition at line 116 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev.
|
inlineinherited |
retrieve camera specific information, like versions of various internal components
| [in] | info | camera info type to retrieve |
Definition at line 79 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_get_device_info().
|
inlineinherited |
retrieve camera specific information, like versions of various internal components
| [in] | info | camera info type to retrieve |
Definition at line 79 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_get_device_info().
|
inlineinherited |
send hardware reset request to the device
Definition at line 90 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_hardware_reset().
|
inlineinherited |
send hardware reset request to the device
Definition at line 90 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_hardware_reset().
|
inlineinherited |
Definition at line 122 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
|
inlineinherited |
Definition at line 122 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
|
inline |
Checks if the device is in loopback mode or not.
Definition at line 835 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_loopback_is_enabled().
|
inline |
Checks if the device is in loopback mode or not.
Definition at line 835 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_loopback_is_enabled().
|
inlineinherited |
Definition at line 112 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev.
|
inlineinherited |
Definition at line 112 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev.
|
inlineexplicitinherited |
Definition at line 138 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev.
|
inlineexplicitinherited |
Definition at line 138 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev.
|
inlineinherited |
returns the list of adjacent devices, sharing the same physical parent composite device
Definition at line 25 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), rs2_create_sensor(), rs2_delete_sensor(), rs2_delete_sensor_list(), rs2_get_sensors_count(), rs2_query_sensors(), and pydeepstreamdoc::tensor::TensorDoc::size.
Referenced by rs2::device::first().
|
inlineinherited |
returns the list of adjacent devices, sharing the same physical parent composite device
Definition at line 25 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), rs2_create_sensor(), rs2_delete_sensor(), rs2_delete_sensor_list(), rs2_get_sensors_count(), rs2_query_sensors(), and pydeepstreamdoc::tensor::TensorDoc::size.
|
inlineinherited |
Reset device to factory calibration.
Definition at line 316 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_reset_to_factory_calibration().
|
inlineinherited |
Reset device to factory calibration.
Definition at line 316 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_reset_to_factory_calibration().
|
inline |
Set tm2 camera extrinsics.
| [in] | from_stream | only support RS2_STREAM_FISHEYE |
| [in] | from_id | only support left fisheye = 1 |
| [in] | to_stream | only support RS2_STREAM_FISHEYE |
| [in] | to_id | only support right fisheye = 2 |
| [in] | extrinsics | extrinsics value to be written to the device |
Definition at line 886 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::error::handle(), and rs2_set_extrinsics().
|
inline |
Set tm2 camera extrinsics.
| [in] | from_stream | only support RS2_STREAM_FISHEYE |
| [in] | from_id | only support left fisheye = 1 |
| [in] | to_stream | only support RS2_STREAM_FISHEYE |
| [in] | to_id | only support right fisheye = 2 |
| [in] | extrinsics | extrinsics value to be written to the device |
Definition at line 886 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::error::handle(), and rs2_set_extrinsics().
|
inline |
Set tm2 camera intrinsics.
| [in] | fisheye_senor_id | The ID of the fisheye sensor |
| [in] | intrinsics | value to be written to the device |
Definition at line 870 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::sensor::get(), rs2::error::handle(), rs2_set_intrinsics(), and RS2_STREAM_FISHEYE.
|
inline |
Set tm2 camera intrinsics.
| [in] | fisheye_senor_id | The ID of the fisheye sensor |
| [in] | intrinsics | value to be written to the device |
Definition at line 870 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::sensor::get(), rs2::error::handle(), rs2_set_intrinsics(), and RS2_STREAM_FISHEYE.
|
inline |
Set tm2 motion device intrinsics.
| [in] | stream_type | stream type of the motion device |
| [in] | motion_intriniscs | intrinsics value to be written to the device |
Definition at line 900 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::sensor::get(), rs2::error::handle(), and rs2_set_motion_device_intrinsics().
|
inline |
Set tm2 motion device intrinsics.
| [in] | stream_type | stream type of the motion device |
| [in] | motion_intriniscs | intrinsics value to be written to the device |
Definition at line 900 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::sensor::get(), rs2::error::handle(), and rs2_set_motion_device_intrinsics().
|
inlineinherited |
check if specific camera info is supported
| [in] | info | the parameter to check for support |
Definition at line 66 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_supports_device_info().
|
inlineinherited |
check if specific camera info is supported
| [in] | info | the parameter to check for support |
Definition at line 66 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_supports_device_info().
|
inlineinherited |
Write calibration that was set by set_calibration_table to device's EEPROM.
Definition at line 306 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_write_calibration().
|
inlineinherited |
Write calibration that was set by set_calibration_table to device's EEPROM.
Definition at line 306 of file 9.2/sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
References rs2::device::_dev, rs2::error::handle(), and rs2_write_calibration().
|
protectedinherited |
Definition at line 146 of file sources/libs/ds3d/3rdparty/realsense2/include/librealsense2/hpp/rs_device.hpp.
Referenced by rs2::software_device::add_sensor(), rs2::software_device::add_to(), rs400::advanced_mode::advanced_mode(), rs2::auto_calibrated_device::auto_calibrated_device(), rs2::calibration_change_device::calibration_change_device(), rs2::updatable::check_firmware_compatibility(), connect_controller(), rs2::updatable::create_flash_backup(), rs2::software_device::create_matcher(), rs2::firmware_logger::create_message(), rs2::firmware_logger::create_parsed_message(), rs2::playback::current_status(), rs2::debug_protocol::debug_protocol(), rs2::device_calibration::device_calibration(), disable_loopback(), disconnect_controller(), enable_loopback(), rs2::updatable::enter_update_state(), rs2::recorder::filename(), rs2::firmware_logger::firmware_logger(), rs2::device::get(), rs400::advanced_mode::get_ae_control(), rs400::advanced_mode::get_amp_factor(), rs2::auto_calibrated_device::get_calibration_table(), rs400::advanced_mode::get_census(), rs400::advanced_mode::get_color_control(), rs400::advanced_mode::get_color_correction(), rs400::advanced_mode::get_depth_control(), rs400::advanced_mode::get_depth_table(), rs2::playback::get_duration(), rs2::firmware_logger::get_firmware_log(), rs2::firmware_logger::get_flash_log(), rs400::advanced_mode::get_hdad(), rs2::device::get_info(), rs2::firmware_logger::get_number_of_fw_logs(), rs2::playback::get_position(), rs400::advanced_mode::get_rau_support_vector_control(), rs400::advanced_mode::get_rau_thresholds_control(), rs400::advanced_mode::get_rsm(), rs400::advanced_mode::get_slo_color_thresholds_control(), rs400::advanced_mode::get_slo_penalty_control(), rs2::device::hardware_reset(), rs2::firmware_logger::init_parser(), rs2::device_hub::is_connected(), rs400::advanced_mode::is_enabled(), is_loopback_enabled(), rs2::playback::is_real_time(), rs2::serializable_device::load_json(), rs2::device::operator bool(), rs2::device::operator std::shared_ptr< rs2_device >(), rs2::device::operator=(), rs2::firmware_logger::parse_log(), rs2::playback::pause(), rs2::recorder::pause(), rs2::playback::playback(), rs2::device::query_sensors(), rs2::recorder::recorder(), rs2::calibration_change_device::register_calibration_change_callback(), rs2::software_device::register_info(), rs2::calibrated_device::reset_to_factory_calibration(), rs2::playback::resume(), rs2::recorder::resume(), rs2::auto_calibrated_device::run_on_chip_calibration(), rs2::auto_calibrated_device::run_tare_calibration(), rs2::playback::seek(), rs2::debug_protocol::send_and_receive_raw_data(), rs2::serializable_device::serializable_device(), rs2::serializable_device::serialize_json(), rs400::advanced_mode::set_ae_control(), rs400::advanced_mode::set_amp_factor(), rs2::auto_calibrated_device::set_calibration_table(), rs400::advanced_mode::set_census(), rs400::advanced_mode::set_color_control(), rs400::advanced_mode::set_color_correction(), rs400::advanced_mode::set_depth_control(), rs400::advanced_mode::set_depth_table(), rs2::software_device::set_destruction_callback(), rs400::advanced_mode::set_hdad(), rs2::playback::set_playback_speed(), rs400::advanced_mode::set_rau_support_vector_control(), rs400::advanced_mode::set_rau_thresholds_control(), rs2::playback::set_real_time(), rs400::advanced_mode::set_rsm(), rs400::advanced_mode::set_slo_color_thresholds_control(), rs400::advanced_mode::set_slo_penalty_control(), rs2::playback::set_status_changed_callback(), rs2::playback::stop(), rs2::device::supports(), tm2(), rs400::advanced_mode::toggle_advanced_mode(), rs2::device_calibration::trigger_device_calibration(), rs2::updatable::updatable(), rs2::update_device::update(), rs2::update_device::update_device(), rs2::software_device::update_info(), rs2::updatable::update_unsigned(), and rs2::calibrated_device::write_calibration().