This class implements a TaskContext that grabs images from a firewire-camera using OpenCV. More...
#include <CaptureCamera.hpp>
Public Member Functions | |
CaptureCamera (std::string name) | |
Creates an unconfigured CaptureCamera component. | |
virtual bool | configureHook () |
virtual bool | startHook () |
virtual void | updateHook () |
virtual void | cleanupHook () |
Protected Attributes | |
RTT::WriteDataPort< IplImage > | _image |
Dataport which contains grabbed image. | |
RTT::WriteDataPort < RTT::TimeService::ticks > | _capture_time |
Dataport which contains grabbing timestamp. | |
RTT::Command< bool(void)> | _newImage |
Command to grab image. | |
RTT::Command< bool(void)> | _setProperties |
Command to update the camera properties. | |
RTT::Property< int > | _camera_index |
camera id | |
RTT::Property< std::string > | _video_driver |
select video driver: autodetect, v4l or firewire | |
RTT::Property< int > | _capture_mode |
capturing mode, check dc1394 for values (firewire) | |
RTT::Property< int > | _capture_shutter |
shutter time in micro seconds (firewire) | |
RTT::Property< int > | _capture_gain |
capturing gain | |
RTT::Property< int > | _capture_convert |
set true if opencv should convert the grabbed image to RGB (firewire) | |
RTT::Property< double > | _capture_fps |
framerate of camera (firewire) | |
RTT::Property< int > | _capture_width |
capture frame width | |
RTT::Property< int > | _capture_height |
capture frame height | |
RTT::Property< bool > | _show_time |
boolean whether to print capturing time information | |
RTT::Property< bool > | _show_image |
boolean whether to show the captured image in a window |
This class implements a TaskContext that grabs images from a firewire-camera using OpenCV.
The component can be executed a periodic as well as by a non-periodic activity.
Definition at line 46 of file CaptureCamera.hpp.
CaptureCamera | ( | std::string | name | ) |
Creates an unconfigured CaptureCamera component.
name | Name of the component |
Definition at line 25 of file CaptureCamera.cpp.
References CaptureCamera::_camera_index, CaptureCamera::_capture_convert, CaptureCamera::_capture_fps, CaptureCamera::_capture_gain, CaptureCamera::_capture_height, CaptureCamera::_capture_mode, CaptureCamera::_capture_shutter, CaptureCamera::_capture_time, CaptureCamera::_capture_width, CaptureCamera::_image, CaptureCamera::_show_image, CaptureCamera::_show_time, and CaptureCamera::_video_driver.