Changeset 131 in pacpussensors for trunk/Vislab/VislabCamera.cpp
- Timestamp:
- Dec 9, 2016, 9:29:50 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Vislab/VislabCamera.cpp
r127 r131 24 24 25 25 //ComponentFactory<VislabCamera> sFactory("VislabComponent"); 26 26 /*! Constructor */ 27 27 VislabCamera::VislabCamera(const QString& name) 28 28 :diskwriterVideo(name,lib3dv::image::type::RIGHT_RECTIFIED), … … 41 41 void VislabCamera::open() 42 42 { 43 curr_devices = lib3dv::device::enumerate(boost::asio::ip::address_v4::from_string("192.168.0.2"), 1, error); 43 44 curr_devices = lib3dv::device::enumerate(boost::asio::ip::address_v4::from_string("192.168.0.1"), 1, error); 44 45 if(error != lib3dv::error::NONE) 45 46 std::cout << "[EE] 3dv-client: error detected: " << error << std::endl; … … 51 52 } 52 53 //disk_writer = boost::shared_ptr< ::disk_writer>(new ::disk_writer(paths, data_format, autonumber, params, guid_type, log_level)); 54 std::cout << "[II] 3dv-client: banane" << std::endl; 55 curr_devices[0].log_level(2); 56 curr_devices[0].timeout(boost::posix_time::milliseconds(5000)); 53 57 curr_devices[0].connect_image_callback(boost::function<void(boost::shared_ptr< const lib3dv::image>, unsigned int)>(boost::bind(&::VislabImageProcessor::image_callback, &displayVideo, _1, _2))); 54 58 curr_devices[0].connect_image_callback(boost::function<void(boost::shared_ptr< const lib3dv::image>, unsigned int)>(boost::bind(&::VislabImageProcessor::image_callback, &displayDisparite, _1, _2))); … … 58 62 if(error != lib3dv::error::NONE) 59 63 std::cout << "[EE] 3dv-client: error detected: " << error << std::endl; 64 else 65 std::cout << "[II] 3dv-client: device successfully opened" << std::endl; 60 66 } 61 67
Note:
See TracChangeset
for help on using the changeset viewer.