22 const int ac_depth_results::table_id;
23 const uint16_t ac_depth_results::this_version;
25 const uint16_t rgb_calibration_table::table_id;
26 const uint16_t rgb_calibration_table::eeprom_table_id;
31 if (raw_data.size() <
sizeof(
pose))
36 AC_LOG(
DEBUG,
"raw extrinsics data from camera:\n" << std::setprecision(15) <<
res );
44 for (
auto it = devices.begin();
it != devices.end(); ++
it)
61 if(result.
mi == 4 || result.
mi == 6)
79 auto temperature_data = _l500_depth_dev->get_temperatures();
84 return float(temperature_data.LDD_temperature);
86 return float(temperature_data.MC_temperature);
88 return float(temperature_data.MA_temperature);
90 return float(temperature_data.APD_temperature);
92 return float(temperature_data.HUM_temperature);
98 l500_temperature_options::l500_temperature_options(
l500_device *l500_depth_dev,
101 :_l500_depth_dev(l500_depth_dev)
103 , _description( description )
109 switch (flash_version)
112 case 103:
return { 1, { 40, 320, 321, 326, 327, 54} };
114 throw std::runtime_error(
"Unsupported flash version: " +
std::to_string(flash_version));
120 switch (flash_version)
123 case 103:
return { 4, { 256, 257, 258, 263, 264, 512, 25, 2 } };
125 throw std::runtime_error(
"Unsupported flash version: " +
std::to_string(flash_version));
134 memcpy(&rv.
header, flash_buffer.data() + header_offset,
sizeof(rv.
header));
155 , _enabled( enabled )
183 , _freefall_opt( freefall_opt )
203 auto temperature_data = _l500_depth_dev->get_temperatures();
204 return (
float)(temperature_data.nest_avg);
209 if ((width == 240 && height == 320) || (width == 320 && height == 240))
211 else if ((width == 640 && height == 480) || (width == 480 && height == 640))
213 else if ((width == 1024 && height == 768) || (width == 768 && height == 1024))
216 throw std::runtime_error(
to_string() <<
"Invalid resolution " << width <<
"x" << height);
rs2_sensor_mode get_resolution_from_width_height(int width, int height)
flash_section parse_flash_section(const std::vector< uint8_t > &flash_buffer, flash_table toc, flash_structure s)
const uint32_t FLASH_RW_TABLE_OF_CONTENT_OFFSET
std::shared_ptr< freefall_option > _freefall_opt
bool is_enabled() const override
void set(float value) override
rs2_option
Defines general configuration controls. These can generally be mapped to camera UVC controls...
std::function< void(const option &)> _record_action
bool try_fetch_usb_device(std::vector< platform::usb_device_info > &devices, const platform::uvc_device_info &info, platform::usb_device_info &result)
std::function< void(const option &)> _record_action
GLsizei const GLchar *const * string
virtual void enable(bool=true)
hw_sync_option(hw_monitor &hwm, std::shared_ptr< freefall_option > freefall_opt)
::realsense_legacy_msgs::pose_< std::allocator< void > > pose
float query() const override
const uint32_t FLASH_RO_TABLE_OF_CONTENT_OFFSET
def info(name, value, persistent=False)
freefall_option(hw_monitor &hwm, bool enabled=true)
rs2_extrinsics from_raw_extrinsics(rs2_extrinsics extr)
std::vector< uint8_t > send(std::vector< uint8_t > const &data) const
flash_section read_write_section
GLint GLsizei GLsizei height
GLenum GLenum GLsizei const GLuint GLboolean enabled
virtual void set(float value) override
flash_structure get_ro_flash_structure(const uint32_t flash_version)
flash_info get_flash_info(const std::vector< uint8_t > &flash_buffer)
flash_table parse_table_of_contents(const std::vector< uint8_t > &flash_buffer, uint32_t toc_offset)
#define AC_LOG(TYPE, MSG)
rs2_sensor_mode
For setting the camera_mode option.
Cross-stream extrinsics: encodes the topology describing how the different devices are oriented...
const uint32_t FLASH_INFO_HEADER_OFFSET
virtual void set(float value) override
flash_section read_only_section
flash_structure get_rw_flash_structure(const uint32_t flash_version)
rs2_extrinsics get_color_stream_extrinsic(const std::vector< uint8_t > &raw_data)
const uint16_t L515_PID_PRE_PRQ
std::string to_string(T value)