Changeset 131 in pacpussensors for trunk/Vislab/VislabCamera.cpp


Ignore:
Timestamp:
Dec 9, 2016, 9:29:50 AM (8 years ago)
Author:
ldecherf
Message:

Comments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Vislab/VislabCamera.cpp

    r127 r131  
    2424
    2525//ComponentFactory<VislabCamera> sFactory("VislabComponent");
    26 
     26/*! Constructor */
    2727    VislabCamera::VislabCamera(const QString& name)
    2828     :diskwriterVideo(name,lib3dv::image::type::RIGHT_RECTIFIED),
     
    4141void VislabCamera::open()
    4242{
    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);
    4445    if(error != lib3dv::error::NONE)
    4546        std::cout << "[EE] 3dv-client: error detected: " << error << std::endl;
     
    5152    }
    5253      //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));
    5357    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)));
    5458    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)));
     
    5862    if(error != lib3dv::error::NONE)
    5963      std::cout << "[EE] 3dv-client: error detected: " << error << std::endl;
     64        else
     65                std::cout << "[II] 3dv-client: device successfully opened" << std::endl;
    6066}
    6167
Note: See TracChangeset for help on using the changeset viewer.