Go to the documentation of this file.00001
00002
00003
00004 #include "image.h"
00005 #include "r200.h"
00006
00007 using namespace rsimpl;
00008 using namespace rsimpl::ds;
00009
00010 namespace rsimpl
00011 {
00012 r200_camera::r200_camera(std::shared_ptr<uvc::device> device, const static_device_info & info)
00013 : ds_device(device, info, calibration_validator())
00014 {
00015 }
00016
00017 void r200_camera::start_fw_logger(char , int , std::timed_mutex& )
00018 {
00019 throw std::logic_error("Not implemented");
00020 }
00021
00022 void r200_camera::stop_fw_logger()
00023 {
00024 throw std::logic_error("Not implemented");
00025 }
00026
00027 std::shared_ptr<rs_device> make_r200_device(std::shared_ptr<uvc::device> device)
00028 {
00029 LOG_INFO("Connecting to Intel RealSense R200");
00030
00031 static_device_info info;
00032 info.name = "Intel RealSense R200" ;
00033 auto cam_info = ds::read_camera_info(*device);
00034
00035 ds_device::set_common_ds_config(device, info, cam_info);
00036
00037
00038 info.subdevice_modes.push_back({ 2, {2400, 1081}, pf_rw10, 30, cam_info.calibration.intrinsicsThird[0], { cam_info.calibration.modesThird[0][0]}, {0}});
00039
00040 return std::make_shared<r200_camera>(device, info);
00041 }
00042
00043 std::shared_ptr<rs_device> make_lr200_device(std::shared_ptr<uvc::device> device)
00044 {
00045 LOG_INFO("Connecting to Intel RealSense LR200");
00046
00047 static_device_info info;
00048 info.name = "Intel RealSense LR200" ;
00049 auto cam_info = ds::read_camera_info(*device);
00050
00051 ds_device::set_common_ds_config(device, info, cam_info);
00052
00053
00054 info.subdevice_modes.push_back({ 2,{ 1920, 1080 }, pf_rw16, 30, cam_info.calibration.intrinsicsThird[0],{ cam_info.calibration.modesThird[0][0] },{ 0 } });
00055
00056 return std::make_shared<r200_camera>(device, info);
00057 }
00058 }