|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_HAL_DC1394CAMERA_H
28 #define RL_HAL_DC1394CAMERA_H
30 #if (LIBDC1394_VERSION_MAJOR > 10)
31 #include <dc1394/dc1394.h>
33 #include <libdc1394/dc1394_control.h>
34 #include <libraw1394/raw1394.h>
55 #if (LIBDC1394_VERSION_MAJOR > 10)
74 #if (LIBDC1394_VERSION_MAJOR > 10)
104 #if (LIBDC1394_VERSION_MAJOR > 10)
115 #if (LIBDC1394_VERSION_MAJOR > 10)
131 #if (LIBDC1394_VERSION_MAJOR > 10)
145 #if (LIBDC1394_VERSION_MAJOR > 10)
155 #if (LIBDC1394_VERSION_MAJOR > 10)
166 #if (LIBDC1394_VERSION_MAJOR > 10)
178 #if (LIBDC1394_VERSION_MAJOR > 10)
190 #if (LIBDC1394_VERSION_MAJOR > 10)
195 #if (LIBDC1394_VERSION_MAJOR > 10)
212 #if (LIBDC1394_VERSION_MAJOR > 10)
220 #if (LIBDC1394_VERSION_MAJOR > 10)
226 virtual const char*
what()
const throw();
231 #if (LIBDC1394_VERSION_MAJOR > 10)
232 ::dc1394error_t
error;
290 void grab(
unsigned char* image);
341 #if (LIBDC1394_VERSION_MAJOR > 10)
354 ::dc1394video_frame_t* frame;
414 #endif // RL_HAL_DC1394CAMERA_H
@ VIDEO_MODE_FORMAT7_6
Definition: Dc1394Camera.h:205
ColorCoding
Definition: Dc1394Camera.h:54
@ FEATURE_CAPTURE_SIZE
Definition: Dc1394Camera.h:98
void open()
Definition: Dc1394Camera.cpp:830
@ VIDEO_MODE_1600x1200_YUV422
Definition: Dc1394Camera.h:185
unsigned int getPort() const
@ VIDEO_MODE_800x600_MONO16
Definition: Dc1394Camera.h:176
@ FEATURE_WHITE_BALANCE
Definition: Dc1394Camera.h:81
unsigned int node
Definition: Dc1394Camera.h:396
@ COLOR_CODING_RAW16
Definition: Dc1394Camera.h:69
@ COLOR_CODING_RAW8
Definition: Dc1394Camera.h:68
::dc1394_camerainfo info
Definition: Dc1394Camera.h:392
@ COLOR_CODING_RGB8
Definition: Dc1394Camera.h:63
@ FEATURE_SHARPNESS
Definition: Dc1394Camera.h:80
virtual const char * what() const
Definition: Dc1394Camera.cpp:1331
void close()
Definition: Dc1394Camera.cpp:102
@ VIDEO_MODE_640x480_MONO16
Definition: Dc1394Camera.h:165
void stop()
Definition: Dc1394Camera.cpp:1252
void getFeatureBoundaries(const Feature &feature, unsigned int &min, unsigned int &max) const
Definition: Dc1394Camera.cpp:310
Definition: DeviceException.h:37
@ FEATURE_HUE
Definition: Dc1394Camera.h:82
@ FEATURE_TILT
Definition: Dc1394Camera.h:96
@ VIDEO_MODE_1600x1200_MONO16
Definition: Dc1394Camera.h:189
void getFormat7(VideoMode &videoMode, ColorCoding &colorCoding, unsigned int &left, unsigned int &top, unsigned int &width, unsigned int &height) const
Definition: Dc1394Camera.cpp:499
@ VIDEO_MODE_FORMAT7_2
Definition: Dc1394Camera.h:201
@ FEATURE_TEMPERATURE
Definition: Dc1394Camera.h:89
@ ISO_SPEED_1600
Definition: Dc1394Camera.h:139
@ FRAMERATE_1_875
Definition: Dc1394Camera.h:118
unsigned int getHeight() const
Definition: Dc1394Camera.cpp:271
@ COLOR_CODING_MONO16S
Definition: Dc1394Camera.h:66
@ FEATURE_PAN
Definition: Dc1394Camera.h:95
OperationMode getOperationMode() const
Definition: Dc1394Camera.cpp:556
int cameras
Definition: Dc1394Camera.h:376
@ FEATURE_MODE_MANUAL
Definition: Dc1394Camera.h:107
@ FRAMERATE_60
Definition: Dc1394Camera.h:124
void grab(unsigned char *image)
Definition: Dc1394Camera.cpp:695
void setOperationMode(const OperationMode &mode)
Definition: Dc1394Camera.cpp:1055
IEEE 1394 based cameras.
Definition: Dc1394Camera.h:51
::dc1394_cameracapture camera
Definition: Dc1394Camera.h:374
@ ISO_SPEED_3200
Definition: Dc1394Camera.h:140
@ COLOR_CODING_RGB16
Definition: Dc1394Camera.h:65
nodeid_t * nodes
Definition: Dc1394Camera.h:398
@ VIDEO_MODE_EXIF
Definition: Dc1394Camera.h:193
bool isFeaturePresent(const Feature &feature) const
Definition: Dc1394Camera.cpp:773
Exception(const int &error)
Definition: Dc1394Camera.cpp:1309
unsigned int top
Definition: Dc1394Camera.h:404
int error
Definition: Dc1394Camera.h:234
@ FRAMERATE_15
Definition: Dc1394Camera.h:122
@ FRAMERATE_30
Definition: Dc1394Camera.h:123
@ FEATURE_BRIGHTNESS
Definition: Dc1394Camera.h:77
@ VIDEO_MODE_800x600_MONO8
Definition: Dc1394Camera.h:172
@ FEATURE_GAMMA
Definition: Dc1394Camera.h:84
bool isFeatureSwitchable(const Feature &feature) const
Definition: Dc1394Camera.cpp:811
void setSpeed(const IsoSpeed &speed)
Definition: Dc1394Camera.cpp:1070
unsigned int buffer
Definition: Dc1394Camera.h:372
Framerate getFramerate() const
Definition: Dc1394Camera.cpp:525
void reset()
Definition: Dc1394Camera.cpp:893
void setFeatureValueAbsolute(const Feature &feature, const float &value)
Definition: Dc1394Camera.cpp:982
@ VIDEO_MODE_1024x768_YUV422
Definition: Dc1394Camera.h:173
void setFeatureValue(const Feature &feature, const unsigned int &value)
Definition: Dc1394Camera.cpp:967
@ FRAMERATE_240
Definition: Dc1394Camera.h:126
IsoSpeed
Definition: Dc1394Camera.h:130
@ VIDEO_MODE_640x480_MONO8
Definition: Dc1394Camera.h:164
unsigned int getFeatureValue(const Feature &feature) const
Definition: Dc1394Camera.cpp:455
bool isFeatureEnabled(const Feature &feature) const
Definition: Dc1394Camera.cpp:752
@ COLOR_CODING_YUV422
Definition: Dc1394Camera.h:61
@ VIDEO_MODE_800x600_YUV422
Definition: Dc1394Camera.h:169
@ FEATURE_SHUTTER
Definition: Dc1394Camera.h:85
unsigned int getColorCodingDepth() const
Definition: Dc1394Camera.cpp:203
Definition: CyclicDevice.h:39
Definition: Dc1394Camera.h:210
@ VIDEO_MODE_640x480_YUV422
Definition: Dc1394Camera.h:162
::raw1394handle_t handle
Definition: Dc1394Camera.h:388
int getNumCameras() const
Definition: Dc1394Camera.cpp:550
unsigned int getBitsPerPixel() const
Definition: Dc1394Camera.cpp:125
@ FEATURE_EXPOSURE
Definition: Dc1394Camera.h:79
@ FEATURE_OPTICAL_FILTER
Definition: Dc1394Camera.h:97
FeatureMode
Definition: Dc1394Camera.h:103
int getError() const
Definition: Dc1394Camera.cpp:1325
void setFeatureAbsoluteControl(const Feature &feature, const bool &doOn)
Definition: Dc1394Camera.cpp:908
@ FRAMERATE_7_5
Definition: Dc1394Camera.h:121
void start()
Definition: Dc1394Camera.cpp:1130
void step()
Definition: Dc1394Camera.cpp:1247
bool hasFeatureAbsoluteControl(const Feature &feature) const
Definition: Dc1394Camera.cpp:733
void setNode(const unsigned int &node)
Definition: Dc1394Camera.cpp:1049
@ VIDEO_MODE_1600x1200_RGB8
Definition: Dc1394Camera.h:186
void setFeatureMode(const Feature &feature, const FeatureMode &mode)
Definition: Dc1394Camera.cpp:937
::std::string getFilename() const
Definition: Dc1394Camera.cpp:493
void setFramerate(const Framerate &framerate)
Definition: Dc1394Camera.cpp:1032
void getFormat7MaximumImageSize(const unsigned int &mode, unsigned int &width, unsigned &height) const
Definition: Dc1394Camera.cpp:510
@ FEATURE_MODE_ONE_PUSH_AUTO
Definition: Dc1394Camera.h:110
@ VIDEO_MODE_640x480_RGB8
Definition: Dc1394Camera.h:163
@ FEATURE_WHITE_SHADING
Definition: Dc1394Camera.h:92
@ FEATURE_MODE_AUTO
Definition: Dc1394Camera.h:109
@ FEATURE_IRIS
Definition: Dc1394Camera.h:87
unsigned int drop
Definition: Dc1394Camera.h:382
void setFormat7(const VideoMode &videoMode, const ColorCoding &colorCoding, const unsigned int &left, const unsigned int &top, const unsigned int &width, const unsigned int &height)
Definition: Dc1394Camera.cpp:1003
@ VIDEO_MODE_640x480_YUV411
Definition: Dc1394Camera.h:161
void setFeatureEnabled(const Feature &feature, const bool &doOn)
Definition: Dc1394Camera.cpp:922
@ ISO_SPEED_400
Definition: Dc1394Camera.h:137
@ COLOR_CODING_MONO8
Definition: Dc1394Camera.h:58
@ VIDEO_MODE_1280x960_RGB8
Definition: Dc1394Camera.h:183
@ COLOR_CODING_YUV411
Definition: Dc1394Camera.h:60
@ VIDEO_MODE_160x120_YUV444
Definition: Dc1394Camera.h:158
float getFeatureValueAbsolute(const Feature &feature) const
Definition: Dc1394Camera.cpp:474
@ COLOR_CODING_MONO16
Definition: Dc1394Camera.h:64
unsigned int channel
Definition: Dc1394Camera.h:378
@ VIDEO_MODE_320x240_YUV422
Definition: Dc1394Camera.h:160
OperationMode
Definition: Dc1394Camera.h:144
unsigned int getNode() const
Definition: Dc1394Camera.cpp:544
ColorCoding colorCoding
Definition: Dc1394Camera.h:380
Framerate framerate
Definition: Dc1394Camera.h:386
@ ISO_SPEED_100
Definition: Dc1394Camera.h:134
Framerate
Definition: Dc1394Camera.h:114
@ ISO_SPEED_800
Definition: Dc1394Camera.h:138
@ VIDEO_MODE_FORMAT7_0
Definition: Dc1394Camera.h:198
unsigned int getSize() const
Definition: Dc1394Camera.cpp:575
@ VIDEO_MODE_FORMAT7_4
Definition: Dc1394Camera.h:203
@ VIDEO_MODE_FORMAT7_7
Definition: Dc1394Camera.h:206
@ VIDEO_MODE_FORMAT7_1
Definition: Dc1394Camera.h:200
@ VIDEO_MODE_1024x768_MONO16
Definition: Dc1394Camera.h:177
Feature
Definition: Dc1394Camera.h:73
unsigned int left
Definition: Dc1394Camera.h:394
@ VIDEO_MODE_1024x768_MONO8
Definition: Dc1394Camera.h:175
void setPort(const unsigned int &port)
bool getFeatureAbsoluteControl(const Feature &feature) const
Definition: Dc1394Camera.cpp:291
VideoMode getVideoMode() const
Definition: Dc1394Camera.cpp:656
@ OPERATION_MODE_1394B
Definition: Dc1394Camera.h:150
@ VIDEO_MODE_800x600_RGB8
Definition: Dc1394Camera.h:171
VideoMode videoMode
Definition: Dc1394Camera.h:406
@ OPERATION_MODE_LEGACY
Definition: Dc1394Camera.h:148
VideoMode
Definition: Dc1394Camera.h:154
::std::chrono::nanoseconds getUpdateRate() const
Definition: Dc1394Camera.cpp:615
::std::string filename
Definition: Dc1394Camera.h:384
bool isFeatureReadable(const Feature &feature) const
Definition: Dc1394Camera.cpp:792
@ VIDEO_MODE_1024x768_RGB8
Definition: Dc1394Camera.h:174
@ VIDEO_MODE_FORMAT7_3
Definition: Dc1394Camera.h:202
@ ISO_SPEED_200
Definition: Dc1394Camera.h:136
virtual ~Dc1394Camera()
Definition: Dc1394Camera.cpp:79
@ VIDEO_MODE_1600x1200_MONO8
Definition: Dc1394Camera.h:187
virtual ~Exception()
Definition: Dc1394Camera.cpp:1316
@ VIDEO_MODE_1280x960_MONO16
Definition: Dc1394Camera.h:188
@ VIDEO_MODE_1280x960_MONO8
Definition: Dc1394Camera.h:184
@ VIDEO_MODE_FORMAT7_5
Definition: Dc1394Camera.h:204
@ COLOR_CODING_RGB16S
Definition: Dc1394Camera.h:67
void setFilename(const ::std::string &filename)
Definition: Dc1394Camera.cpp:997
@ FEATURE_FOCUS
Definition: Dc1394Camera.h:88
unsigned int getWidth() const
Definition: Dc1394Camera.cpp:675
void getFeatureBoundariesAbsolute(const Feature &feature, float &min, float &max) const
Definition: Dc1394Camera.cpp:337
@ FEATURE_SATURATION
Definition: Dc1394Camera.h:83
@ FEATURE_TRIGGER
Definition: Dc1394Camera.h:90
FeatureMode getFeatureMode(const Feature &feature) const
Definition: Dc1394Camera.cpp:352
@ FEATURE_TRIGGER_DELAY
Definition: Dc1394Camera.h:91
IsoSpeed getSpeed() const
Definition: Dc1394Camera.cpp:595
@ COLOR_CODING_YUV444
Definition: Dc1394Camera.h:62
void getFeatureModes(const Feature &feature, bool &hasManual, bool &hasAuto, bool &hasOnePushAuto) const
Definition: Dc1394Camera.cpp:399
unsigned int speed
Definition: Dc1394Camera.h:402
unsigned int port
Definition: Dc1394Camera.h:400
Dc1394Camera(const ::std::string &filename="", const unsigned int &node=0)
Definition: Dc1394Camera.cpp:36
@ FEATURE_ZOOM
Definition: Dc1394Camera.h:94
unsigned int height
Definition: Dc1394Camera.h:390
unsigned int width
Definition: Dc1394Camera.h:408
@ FEATURE_FRAME_RATE
Definition: Dc1394Camera.h:93
@ FEATURE_GAIN
Definition: Dc1394Camera.h:86
@ FRAMERATE_3_75
Definition: Dc1394Camera.h:120
@ VIDEO_MODE_1280x960_YUV422
Definition: Dc1394Camera.h:181
@ FRAMERATE_120
Definition: Dc1394Camera.h:125
@ FEATURE_CAPTURE_QUALITY
Definition: Dc1394Camera.h:99
void setVideoMode(const VideoMode &mode)
Definition: Dc1394Camera.cpp:1087
Robotics Library.
Definition: AnalogInput.cpp:30