[Rock-dev] camera_prosilica moved to gitorious

Alexander Duda Alexander.Duda at dfki.de
Sun May 29 13:47:06 CEST 2011


the following packages moved from spacegit to www.gitorious.org.
- camera_prosilica
- orogen-camera_base
- orogen-camera_proslica

The propose of the packages is to generalize all types of camera. At the moment there is only one implementation for prosilica gige cameras but we are working on implementations for firewire and unicap cameras which will follow soon.

The package camera_prosilica is downloading the Prosilica SDK from Willow Garage via wget, because we are still testing the new SDK version and the old one seems to be unavailable on the official website. 

Alex

Example to display 100 frames taken by a prosilica camera: 

    //width = 640 ; height = 360; color depth = 8 Bit; Color Mode = RGB
    Frame frame(640,360,8,MODE_RGB);
 
    //set interface to Prosilica GigE
    CamGigEProsilica prosilica_gige;
    CamInterface &camera = prosilica_gige;

    try
    {
        //open a specific camera
        camera.open2("GE1900C",Master);
	
	//configure the camera to match the frame settings;
        camera.setFrameSettings(frame);

	//set frame rate to 10 and use fixed trigger mode
        camera.setAttrib(double_attrib::FrameRate,10);
        camera.setAttrib(enum_attrib::FrameStartTriggerModeToFixedRate);

        //start capturing (buffer size is set to 4 frames)
        camera.grab(Continuously,4);
	
        //display 100 frames
        int i=0;
        while (i<100)
        {            
            //callbacks can be used as well
	    if (camera.isFrameAvailable())
            {
              //retrieve frame (copy free) 
	      camera >> frame;	
	      cv::imshow("image",frame.convertToCvMat());
	      cv::waitKey(2);
              i++;
            }
            else
                usleep(100);
        }
    }
    catch (std::runtime_error e)
        std::cout <<  e.what() << std::endl << std::endl;

    //close camera
    camera.close();

-- 
Dipl.-Ing. Alexander Duda 
Unterwasserrobotik

DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany

Phone: +49 (0)421 178-456620
Fax:   +49 (0)421 178-454150
E-Mail: alexander.duda at dfki.de

Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.:    DE 148646973
Steuernummer:  19/673/0060/3

_______________________________________________
Projektleiter-hb mailing list
Projektleiter-hb at dfki.de
http://www.dfki.de/mailman/cgi-bin/listinfo/projektleiter-hb




More information about the Rock-dev mailing list