Robotics Library  0.7.0
Dc1394Camera.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2009, Markus Rickert
3 // All rights reserved.
4 //
5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are met:
7 //
8 // * Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above copyright notice,
11 // this list of conditions and the following disclaimer in the documentation
12 // and/or other materials provided with the distribution.
13 //
14 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
18 // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
19 // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
20 // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
21 // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
22 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
23 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
24 // POSSIBILITY OF SUCH DAMAGE.
25 //
26 
27 #ifndef RL_HAL_DC1394CAMERA_H
28 #define RL_HAL_DC1394CAMERA_H
29 
30 #if (LIBDC1394_VERSION_MAJOR > 10)
31 #include <dc1394/dc1394.h>
32 #else
33 #include <libdc1394/dc1394_control.h>
34 #include <libraw1394/raw1394.h>
35 #endif
36 
37 #include <string>
38 
39 #include "Camera.h"
40 #include "CyclicDevice.h"
41 #include "DeviceException.h"
42 
43 namespace rl
44 {
45  namespace hal
46  {
50  class Dc1394Camera : public Camera, public CyclicDevice
51  {
52  public:
54  {
55 #if (LIBDC1394_VERSION_MAJOR > 10)
56  COLOR_CODING_MONO8 = ::DC1394_COLOR_CODING_MONO8,
57 #else
58  COLOR_CODING_MONO8 = ::COLOR_FORMAT7_MONO8,
59 #endif
70  };
71 
72  enum Feature
73  {
74 #if (LIBDC1394_VERSION_MAJOR > 10)
75  FEATURE_BRIGHTNESS = ::DC1394_FEATURE_BRIGHTNESS,
76 #else
78 #endif
100  };
101 
103  {
104 #if (LIBDC1394_VERSION_MAJOR > 10)
105  FEATURE_MODE_MANUAL = ::DC1394_FEATURE_MODE_MANUAL,
106 #else
108 #endif
111  };
112 
114  {
115 #if (LIBDC1394_VERSION_MAJOR > 10)
116  FRAMERATE_1_875 = ::DC1394_FRAMERATE_1_875,
117 #else
119 #endif
127  };
128 
129  enum IsoSpeed
130  {
131 #if (LIBDC1394_VERSION_MAJOR > 10)
132  ISO_SPEED_100 = ::DC1394_ISO_SPEED_100,
133 #else
134  ISO_SPEED_100 = ::SPEED_100,
135 #endif
141  };
142 
144  {
145 #if (LIBDC1394_VERSION_MAJOR > 10)
146  OPERATION_MODE_LEGACY = ::DC1394_OPERATION_MODE_LEGACY,
147 #else
149 #endif
151  };
152 
154  {
155 #if (LIBDC1394_VERSION_MAJOR > 10)
156  VIDEO_MODE_160x120_YUV444 = ::DC1394_VIDEO_MODE_160x120_YUV444,
157 #else
158  VIDEO_MODE_160x120_YUV444 = ::MODE_160x120_YUV444,
159 #endif
166 #if (LIBDC1394_VERSION_MAJOR > 10)
168 #else
169  VIDEO_MODE_800x600_YUV422 = ::MODE_800x600_YUV422,
170 #endif
178 #if (LIBDC1394_VERSION_MAJOR > 10)
180 #else
181  VIDEO_MODE_1280x960_YUV422 = ::MODE_1280x960_YUV422,
182 #endif
190 #if (LIBDC1394_VERSION_MAJOR > 10)
192 #else
193  VIDEO_MODE_EXIF = ::MODE_EXIF,
194 #endif
195 #if (LIBDC1394_VERSION_MAJOR > 10)
197 #else
198  VIDEO_MODE_FORMAT7_0 = ::MODE_FORMAT7_0,
199 #endif
207  };
208 
209  class Exception : public DeviceException
210  {
211  public:
212 #if (LIBDC1394_VERSION_MAJOR > 10)
213  Exception(const ::dc1394error_t& error);
214 #else
215  Exception(const int& error);
216 #endif
217 
218  virtual ~Exception() throw();
219 
220 #if (LIBDC1394_VERSION_MAJOR > 10)
221  ::dc1394error_t getError() const;
222 #else
223  int getError() const;
224 #endif
225 
226  virtual const char* what() const throw();
227 
228  protected:
229 
230  private:
231 #if (LIBDC1394_VERSION_MAJOR > 10)
232  ::dc1394error_t error;
233 #else
234  int error;
235 #endif
236  };
237 
238  Dc1394Camera(const ::std::string& filename = "", const unsigned int& node = 0);
239 
240  virtual ~Dc1394Camera();
241 
242  void close();
243 
244  unsigned int getBitsPerPixel() const;
245 
246  unsigned int getColorCodingDepth() const;
247 
248  unsigned int getHeight() const;
249 
250  bool getFeatureAbsoluteControl(const Feature& feature) const;
251 
252  void getFeatureBoundaries(const Feature& feature, unsigned int& min, unsigned int& max) const;
253 
254  void getFeatureBoundariesAbsolute(const Feature& feature, float& min, float& max) const;
255 
256  FeatureMode getFeatureMode(const Feature& feature) const;
257 
258  void getFeatureModes(const Feature& feature, bool& hasManual, bool& hasAuto, bool& hasOnePushAuto) const;
259 
260  unsigned int getFeatureValue(const Feature& feature) const;
261 
262  float getFeatureValueAbsolute(const Feature& feature) const;
263 
264  ::std::string getFilename() const;
265 
266  void getFormat7(VideoMode& videoMode, ColorCoding& colorCoding, unsigned int& left, unsigned int& top, unsigned int& width, unsigned int& height) const;
267 
268  void getFormat7MaximumImageSize(const unsigned int& mode, unsigned int& width, unsigned& height) const;
269 
270  Framerate getFramerate() const;
271 
272  unsigned int getNode() const;
273 
274  int getNumCameras() const;
275 
277 
278  unsigned int getPort() const;
279 
280  unsigned int getSize() const;
281 
282  IsoSpeed getSpeed() const;
283 
284  ::std::chrono::nanoseconds getUpdateRate() const;
285 
286  VideoMode getVideoMode() const;
287 
288  unsigned int getWidth() const;
289 
290  void grab(unsigned char* image);
291 
292  bool hasFeatureAbsoluteControl(const Feature& feature) const;
293 
294  bool isFeatureEnabled(const Feature& feature) const;
295 
296  bool isFeaturePresent(const Feature& feature) const;
297 
298  bool isFeatureReadable(const Feature& feature) const;
299 
300  bool isFeatureSwitchable(const Feature& feature) const;
301 
302  void open();
303 
304  void reset();
305 
306  void setFeatureAbsoluteControl(const Feature& feature, const bool& doOn);
307 
308  void setFeatureEnabled(const Feature& feature, const bool& doOn);
309 
310  void setFeatureMode(const Feature& feature, const FeatureMode& mode);
311 
312  void setFeatureValue(const Feature& feature, const unsigned int& value);
313 
314  void setFeatureValueAbsolute(const Feature& feature, const float& value);
315 
316  void setFilename(const ::std::string& filename);
317 
318  void setFormat7(const VideoMode& videoMode, const ColorCoding& colorCoding, const unsigned int& left, const unsigned int& top, const unsigned int& width, const unsigned int& height);
319 
320  void setFramerate(const Framerate& framerate);
321 
322  void setNode(const unsigned int& node);
323 
324  void setOperationMode(const OperationMode& mode);
325 
326  void setPort(const unsigned int& port);
327 
328  void setSpeed(const IsoSpeed& speed);
329 
330  void setVideoMode(const VideoMode& mode);
331 
332  void start();
333 
334  void step();
335 
336  void stop();
337 
338  protected:
339 
340  private:
341 #if (LIBDC1394_VERSION_MAJOR > 10)
342  unsigned int buffer;
343 
344  ::dc1394camera_t* camera;
345 
346  int cameras;
347 
349 
350  ::dc1394_t* dc1394;
351 
352  ::std::string filename;
353 
354  ::dc1394video_frame_t* frame;
355 
357 
358  unsigned int height;
359 
360  unsigned int left;
361 
362  unsigned int node;
363 
364  unsigned int speed;
365 
366  unsigned int top;
367 
369 
370  unsigned int width;
371 #else
372  unsigned int buffer;
373 
374  ::dc1394_cameracapture camera;
375 
376  int cameras;
377 
378  unsigned int channel;
379 
381 
382  unsigned int drop;
383 
384  ::std::string filename;
385 
387 
388  ::raw1394handle_t handle;
389 
390  unsigned int height;
391 
392  ::dc1394_camerainfo info;
393 
394  unsigned int left;
395 
396  unsigned int node;
397 
398  nodeid_t* nodes;
399 
400  unsigned int port;
401 
402  unsigned int speed;
403 
404  unsigned int top;
405 
407 
408  unsigned int width;
409 #endif
410  };
411  }
412 }
413 
414 #endif // RL_HAL_DC1394CAMERA_H
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_6
@ VIDEO_MODE_FORMAT7_6
Definition: Dc1394Camera.h:205
rl::hal::Dc1394Camera::ColorCoding
ColorCoding
Definition: Dc1394Camera.h:54
rl::hal::Dc1394Camera::FEATURE_CAPTURE_SIZE
@ FEATURE_CAPTURE_SIZE
Definition: Dc1394Camera.h:98
rl::hal::Dc1394Camera::open
void open()
Definition: Dc1394Camera.cpp:830
rl::hal::Dc1394Camera::VIDEO_MODE_1600x1200_YUV422
@ VIDEO_MODE_1600x1200_YUV422
Definition: Dc1394Camera.h:185
rl::hal::Dc1394Camera::getPort
unsigned int getPort() const
rl::hal::Dc1394Camera::VIDEO_MODE_800x600_MONO16
@ VIDEO_MODE_800x600_MONO16
Definition: Dc1394Camera.h:176
rl::hal::Dc1394Camera::FEATURE_WHITE_BALANCE
@ FEATURE_WHITE_BALANCE
Definition: Dc1394Camera.h:81
rl::hal::Dc1394Camera::node
unsigned int node
Definition: Dc1394Camera.h:396
rl::hal::Dc1394Camera::COLOR_CODING_RAW16
@ COLOR_CODING_RAW16
Definition: Dc1394Camera.h:69
rl::hal::Dc1394Camera::COLOR_CODING_RAW8
@ COLOR_CODING_RAW8
Definition: Dc1394Camera.h:68
rl::hal::Dc1394Camera::info
::dc1394_camerainfo info
Definition: Dc1394Camera.h:392
rl::hal::Dc1394Camera::COLOR_CODING_RGB8
@ COLOR_CODING_RGB8
Definition: Dc1394Camera.h:63
rl::hal::Dc1394Camera::FEATURE_SHARPNESS
@ FEATURE_SHARPNESS
Definition: Dc1394Camera.h:80
rl::hal::Dc1394Camera::Exception::what
virtual const char * what() const
Definition: Dc1394Camera.cpp:1331
rl::hal::Dc1394Camera::close
void close()
Definition: Dc1394Camera.cpp:102
rl::hal::Dc1394Camera::VIDEO_MODE_640x480_MONO16
@ VIDEO_MODE_640x480_MONO16
Definition: Dc1394Camera.h:165
rl::hal::Dc1394Camera::stop
void stop()
Definition: Dc1394Camera.cpp:1252
rl::hal::Dc1394Camera::getFeatureBoundaries
void getFeatureBoundaries(const Feature &feature, unsigned int &min, unsigned int &max) const
Definition: Dc1394Camera.cpp:310
rl::hal::DeviceException
Definition: DeviceException.h:37
rl::hal::Dc1394Camera::FEATURE_HUE
@ FEATURE_HUE
Definition: Dc1394Camera.h:82
rl::hal::Dc1394Camera::FEATURE_TILT
@ FEATURE_TILT
Definition: Dc1394Camera.h:96
rl::hal::Dc1394Camera::VIDEO_MODE_1600x1200_MONO16
@ VIDEO_MODE_1600x1200_MONO16
Definition: Dc1394Camera.h:189
rl::hal::Dc1394Camera::getFormat7
void getFormat7(VideoMode &videoMode, ColorCoding &colorCoding, unsigned int &left, unsigned int &top, unsigned int &width, unsigned int &height) const
Definition: Dc1394Camera.cpp:499
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_2
@ VIDEO_MODE_FORMAT7_2
Definition: Dc1394Camera.h:201
rl::hal::Dc1394Camera::FEATURE_TEMPERATURE
@ FEATURE_TEMPERATURE
Definition: Dc1394Camera.h:89
rl::hal::Dc1394Camera::ISO_SPEED_1600
@ ISO_SPEED_1600
Definition: Dc1394Camera.h:139
rl::hal::Dc1394Camera::FRAMERATE_1_875
@ FRAMERATE_1_875
Definition: Dc1394Camera.h:118
rl::hal::Dc1394Camera::getHeight
unsigned int getHeight() const
Definition: Dc1394Camera.cpp:271
rl::hal::Dc1394Camera::COLOR_CODING_MONO16S
@ COLOR_CODING_MONO16S
Definition: Dc1394Camera.h:66
rl::hal::Dc1394Camera::FEATURE_PAN
@ FEATURE_PAN
Definition: Dc1394Camera.h:95
rl::hal::Dc1394Camera::getOperationMode
OperationMode getOperationMode() const
Definition: Dc1394Camera.cpp:556
rl::hal::Dc1394Camera::cameras
int cameras
Definition: Dc1394Camera.h:376
rl::hal::Dc1394Camera::FEATURE_MODE_MANUAL
@ FEATURE_MODE_MANUAL
Definition: Dc1394Camera.h:107
rl::hal::Dc1394Camera::FRAMERATE_60
@ FRAMERATE_60
Definition: Dc1394Camera.h:124
rl::hal::Dc1394Camera::grab
void grab(unsigned char *image)
Definition: Dc1394Camera.cpp:695
rl::hal::Dc1394Camera::setOperationMode
void setOperationMode(const OperationMode &mode)
Definition: Dc1394Camera.cpp:1055
rl::hal::Dc1394Camera
IEEE 1394 based cameras.
Definition: Dc1394Camera.h:51
rl::hal::Dc1394Camera::camera
::dc1394_cameracapture camera
Definition: Dc1394Camera.h:374
rl::hal::Dc1394Camera::ISO_SPEED_3200
@ ISO_SPEED_3200
Definition: Dc1394Camera.h:140
rl::hal::Dc1394Camera::COLOR_CODING_RGB16
@ COLOR_CODING_RGB16
Definition: Dc1394Camera.h:65
rl::hal::Dc1394Camera::nodes
nodeid_t * nodes
Definition: Dc1394Camera.h:398
rl::hal::Dc1394Camera::VIDEO_MODE_EXIF
@ VIDEO_MODE_EXIF
Definition: Dc1394Camera.h:193
rl::hal::Dc1394Camera::isFeaturePresent
bool isFeaturePresent(const Feature &feature) const
Definition: Dc1394Camera.cpp:773
rl::hal::Dc1394Camera::Exception::Exception
Exception(const int &error)
Definition: Dc1394Camera.cpp:1309
rl::hal::Dc1394Camera::top
unsigned int top
Definition: Dc1394Camera.h:404
rl::hal::Dc1394Camera::Exception::error
int error
Definition: Dc1394Camera.h:234
rl::hal::Dc1394Camera::FRAMERATE_15
@ FRAMERATE_15
Definition: Dc1394Camera.h:122
rl::hal::Dc1394Camera::FRAMERATE_30
@ FRAMERATE_30
Definition: Dc1394Camera.h:123
rl::hal::Dc1394Camera::FEATURE_BRIGHTNESS
@ FEATURE_BRIGHTNESS
Definition: Dc1394Camera.h:77
rl::hal::Dc1394Camera::VIDEO_MODE_800x600_MONO8
@ VIDEO_MODE_800x600_MONO8
Definition: Dc1394Camera.h:172
rl::hal::Dc1394Camera::FEATURE_GAMMA
@ FEATURE_GAMMA
Definition: Dc1394Camera.h:84
rl::hal::Dc1394Camera::isFeatureSwitchable
bool isFeatureSwitchable(const Feature &feature) const
Definition: Dc1394Camera.cpp:811
rl::hal::Dc1394Camera::setSpeed
void setSpeed(const IsoSpeed &speed)
Definition: Dc1394Camera.cpp:1070
rl::hal::Dc1394Camera::buffer
unsigned int buffer
Definition: Dc1394Camera.h:372
rl::hal::Dc1394Camera::getFramerate
Framerate getFramerate() const
Definition: Dc1394Camera.cpp:525
DeviceException.h
rl::hal::Dc1394Camera::reset
void reset()
Definition: Dc1394Camera.cpp:893
rl::hal::Dc1394Camera::setFeatureValueAbsolute
void setFeatureValueAbsolute(const Feature &feature, const float &value)
Definition: Dc1394Camera.cpp:982
rl::hal::Dc1394Camera::VIDEO_MODE_1024x768_YUV422
@ VIDEO_MODE_1024x768_YUV422
Definition: Dc1394Camera.h:173
rl::hal::Dc1394Camera::setFeatureValue
void setFeatureValue(const Feature &feature, const unsigned int &value)
Definition: Dc1394Camera.cpp:967
rl::hal::Dc1394Camera::FRAMERATE_240
@ FRAMERATE_240
Definition: Dc1394Camera.h:126
rl::hal::Dc1394Camera::IsoSpeed
IsoSpeed
Definition: Dc1394Camera.h:130
rl::hal::Dc1394Camera::VIDEO_MODE_640x480_MONO8
@ VIDEO_MODE_640x480_MONO8
Definition: Dc1394Camera.h:164
rl::hal::Dc1394Camera::getFeatureValue
unsigned int getFeatureValue(const Feature &feature) const
Definition: Dc1394Camera.cpp:455
rl::hal::Dc1394Camera::isFeatureEnabled
bool isFeatureEnabled(const Feature &feature) const
Definition: Dc1394Camera.cpp:752
rl::hal::Dc1394Camera::COLOR_CODING_YUV422
@ COLOR_CODING_YUV422
Definition: Dc1394Camera.h:61
rl::hal::Dc1394Camera::VIDEO_MODE_800x600_YUV422
@ VIDEO_MODE_800x600_YUV422
Definition: Dc1394Camera.h:169
rl::hal::Dc1394Camera::FEATURE_SHUTTER
@ FEATURE_SHUTTER
Definition: Dc1394Camera.h:85
rl::hal::Dc1394Camera::getColorCodingDepth
unsigned int getColorCodingDepth() const
Definition: Dc1394Camera.cpp:203
rl::hal::CyclicDevice
Definition: CyclicDevice.h:39
rl::hal::Dc1394Camera::Exception
Definition: Dc1394Camera.h:210
rl::hal::Dc1394Camera::VIDEO_MODE_640x480_YUV422
@ VIDEO_MODE_640x480_YUV422
Definition: Dc1394Camera.h:162
rl::hal::Dc1394Camera::handle
::raw1394handle_t handle
Definition: Dc1394Camera.h:388
rl::hal::Dc1394Camera::getNumCameras
int getNumCameras() const
Definition: Dc1394Camera.cpp:550
rl::hal::Dc1394Camera::getBitsPerPixel
unsigned int getBitsPerPixel() const
Definition: Dc1394Camera.cpp:125
rl::hal::Dc1394Camera::FEATURE_EXPOSURE
@ FEATURE_EXPOSURE
Definition: Dc1394Camera.h:79
rl::hal::Dc1394Camera::FEATURE_OPTICAL_FILTER
@ FEATURE_OPTICAL_FILTER
Definition: Dc1394Camera.h:97
rl::hal::Dc1394Camera::FeatureMode
FeatureMode
Definition: Dc1394Camera.h:103
rl::hal::Dc1394Camera::Exception::getError
int getError() const
Definition: Dc1394Camera.cpp:1325
rl::hal::Dc1394Camera::setFeatureAbsoluteControl
void setFeatureAbsoluteControl(const Feature &feature, const bool &doOn)
Definition: Dc1394Camera.cpp:908
rl::hal::Dc1394Camera::FRAMERATE_7_5
@ FRAMERATE_7_5
Definition: Dc1394Camera.h:121
rl::hal::Dc1394Camera::start
void start()
Definition: Dc1394Camera.cpp:1130
rl::hal::Dc1394Camera::step
void step()
Definition: Dc1394Camera.cpp:1247
rl::hal::Dc1394Camera::hasFeatureAbsoluteControl
bool hasFeatureAbsoluteControl(const Feature &feature) const
Definition: Dc1394Camera.cpp:733
rl::hal::Dc1394Camera::setNode
void setNode(const unsigned int &node)
Definition: Dc1394Camera.cpp:1049
rl::hal::Dc1394Camera::VIDEO_MODE_1600x1200_RGB8
@ VIDEO_MODE_1600x1200_RGB8
Definition: Dc1394Camera.h:186
rl::hal::Dc1394Camera::setFeatureMode
void setFeatureMode(const Feature &feature, const FeatureMode &mode)
Definition: Dc1394Camera.cpp:937
rl::hal::Dc1394Camera::getFilename
::std::string getFilename() const
Definition: Dc1394Camera.cpp:493
rl::hal::Dc1394Camera::setFramerate
void setFramerate(const Framerate &framerate)
Definition: Dc1394Camera.cpp:1032
rl::hal::Dc1394Camera::getFormat7MaximumImageSize
void getFormat7MaximumImageSize(const unsigned int &mode, unsigned int &width, unsigned &height) const
Definition: Dc1394Camera.cpp:510
rl::hal::Dc1394Camera::FEATURE_MODE_ONE_PUSH_AUTO
@ FEATURE_MODE_ONE_PUSH_AUTO
Definition: Dc1394Camera.h:110
rl::hal::Dc1394Camera::VIDEO_MODE_640x480_RGB8
@ VIDEO_MODE_640x480_RGB8
Definition: Dc1394Camera.h:163
rl::hal::Dc1394Camera::FEATURE_WHITE_SHADING
@ FEATURE_WHITE_SHADING
Definition: Dc1394Camera.h:92
rl::hal::Dc1394Camera::FEATURE_MODE_AUTO
@ FEATURE_MODE_AUTO
Definition: Dc1394Camera.h:109
rl::hal::Dc1394Camera::FEATURE_IRIS
@ FEATURE_IRIS
Definition: Dc1394Camera.h:87
rl::hal::Dc1394Camera::drop
unsigned int drop
Definition: Dc1394Camera.h:382
rl::hal::Dc1394Camera::setFormat7
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
rl::hal::Dc1394Camera::VIDEO_MODE_640x480_YUV411
@ VIDEO_MODE_640x480_YUV411
Definition: Dc1394Camera.h:161
rl::hal::Camera
Definition: Camera.h:37
rl::hal::Dc1394Camera::setFeatureEnabled
void setFeatureEnabled(const Feature &feature, const bool &doOn)
Definition: Dc1394Camera.cpp:922
rl::hal::Dc1394Camera::ISO_SPEED_400
@ ISO_SPEED_400
Definition: Dc1394Camera.h:137
rl::hal::Dc1394Camera::COLOR_CODING_MONO8
@ COLOR_CODING_MONO8
Definition: Dc1394Camera.h:58
rl::hal::Dc1394Camera::VIDEO_MODE_1280x960_RGB8
@ VIDEO_MODE_1280x960_RGB8
Definition: Dc1394Camera.h:183
rl::hal::Dc1394Camera::COLOR_CODING_YUV411
@ COLOR_CODING_YUV411
Definition: Dc1394Camera.h:60
rl::hal::Dc1394Camera::VIDEO_MODE_160x120_YUV444
@ VIDEO_MODE_160x120_YUV444
Definition: Dc1394Camera.h:158
rl::hal::Dc1394Camera::getFeatureValueAbsolute
float getFeatureValueAbsolute(const Feature &feature) const
Definition: Dc1394Camera.cpp:474
rl::hal::Dc1394Camera::COLOR_CODING_MONO16
@ COLOR_CODING_MONO16
Definition: Dc1394Camera.h:64
rl::hal::Dc1394Camera::channel
unsigned int channel
Definition: Dc1394Camera.h:378
rl::hal::Dc1394Camera::VIDEO_MODE_320x240_YUV422
@ VIDEO_MODE_320x240_YUV422
Definition: Dc1394Camera.h:160
rl::hal::Dc1394Camera::OperationMode
OperationMode
Definition: Dc1394Camera.h:144
rl::hal::Dc1394Camera::getNode
unsigned int getNode() const
Definition: Dc1394Camera.cpp:544
rl::hal::Dc1394Camera::colorCoding
ColorCoding colorCoding
Definition: Dc1394Camera.h:380
rl::hal::Dc1394Camera::framerate
Framerate framerate
Definition: Dc1394Camera.h:386
rl::hal::Dc1394Camera::ISO_SPEED_100
@ ISO_SPEED_100
Definition: Dc1394Camera.h:134
rl::hal::Dc1394Camera::Framerate
Framerate
Definition: Dc1394Camera.h:114
Camera.h
rl::hal::Dc1394Camera::ISO_SPEED_800
@ ISO_SPEED_800
Definition: Dc1394Camera.h:138
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_0
@ VIDEO_MODE_FORMAT7_0
Definition: Dc1394Camera.h:198
rl::hal::Dc1394Camera::getSize
unsigned int getSize() const
Definition: Dc1394Camera.cpp:575
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_4
@ VIDEO_MODE_FORMAT7_4
Definition: Dc1394Camera.h:203
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_7
@ VIDEO_MODE_FORMAT7_7
Definition: Dc1394Camera.h:206
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_1
@ VIDEO_MODE_FORMAT7_1
Definition: Dc1394Camera.h:200
rl::hal::Dc1394Camera::VIDEO_MODE_1024x768_MONO16
@ VIDEO_MODE_1024x768_MONO16
Definition: Dc1394Camera.h:177
rl::hal::Dc1394Camera::Feature
Feature
Definition: Dc1394Camera.h:73
rl::hal::Dc1394Camera::left
unsigned int left
Definition: Dc1394Camera.h:394
rl::hal::Dc1394Camera::VIDEO_MODE_1024x768_MONO8
@ VIDEO_MODE_1024x768_MONO8
Definition: Dc1394Camera.h:175
rl::hal::Dc1394Camera::setPort
void setPort(const unsigned int &port)
rl::hal::Dc1394Camera::getFeatureAbsoluteControl
bool getFeatureAbsoluteControl(const Feature &feature) const
Definition: Dc1394Camera.cpp:291
rl::hal::Dc1394Camera::getVideoMode
VideoMode getVideoMode() const
Definition: Dc1394Camera.cpp:656
rl::hal::Dc1394Camera::OPERATION_MODE_1394B
@ OPERATION_MODE_1394B
Definition: Dc1394Camera.h:150
rl::hal::Dc1394Camera::VIDEO_MODE_800x600_RGB8
@ VIDEO_MODE_800x600_RGB8
Definition: Dc1394Camera.h:171
rl::hal::Dc1394Camera::videoMode
VideoMode videoMode
Definition: Dc1394Camera.h:406
CyclicDevice.h
rl::hal::Dc1394Camera::OPERATION_MODE_LEGACY
@ OPERATION_MODE_LEGACY
Definition: Dc1394Camera.h:148
rl::hal::Dc1394Camera::VideoMode
VideoMode
Definition: Dc1394Camera.h:154
rl::hal::Dc1394Camera::getUpdateRate
::std::chrono::nanoseconds getUpdateRate() const
Definition: Dc1394Camera.cpp:615
rl::hal::Dc1394Camera::filename
::std::string filename
Definition: Dc1394Camera.h:384
rl::hal::Dc1394Camera::isFeatureReadable
bool isFeatureReadable(const Feature &feature) const
Definition: Dc1394Camera.cpp:792
rl::hal::Dc1394Camera::VIDEO_MODE_1024x768_RGB8
@ VIDEO_MODE_1024x768_RGB8
Definition: Dc1394Camera.h:174
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_3
@ VIDEO_MODE_FORMAT7_3
Definition: Dc1394Camera.h:202
rl::hal::Dc1394Camera::ISO_SPEED_200
@ ISO_SPEED_200
Definition: Dc1394Camera.h:136
rl::hal::Dc1394Camera::~Dc1394Camera
virtual ~Dc1394Camera()
Definition: Dc1394Camera.cpp:79
rl::hal::Dc1394Camera::VIDEO_MODE_1600x1200_MONO8
@ VIDEO_MODE_1600x1200_MONO8
Definition: Dc1394Camera.h:187
rl::hal::Dc1394Camera::Exception::~Exception
virtual ~Exception()
Definition: Dc1394Camera.cpp:1316
rl::hal::Dc1394Camera::VIDEO_MODE_1280x960_MONO16
@ VIDEO_MODE_1280x960_MONO16
Definition: Dc1394Camera.h:188
rl::hal::Dc1394Camera::VIDEO_MODE_1280x960_MONO8
@ VIDEO_MODE_1280x960_MONO8
Definition: Dc1394Camera.h:184
rl::hal::Dc1394Camera::VIDEO_MODE_FORMAT7_5
@ VIDEO_MODE_FORMAT7_5
Definition: Dc1394Camera.h:204
rl::hal::Dc1394Camera::COLOR_CODING_RGB16S
@ COLOR_CODING_RGB16S
Definition: Dc1394Camera.h:67
rl::hal::Dc1394Camera::setFilename
void setFilename(const ::std::string &filename)
Definition: Dc1394Camera.cpp:997
rl::hal::Dc1394Camera::FEATURE_FOCUS
@ FEATURE_FOCUS
Definition: Dc1394Camera.h:88
rl::hal::Dc1394Camera::getWidth
unsigned int getWidth() const
Definition: Dc1394Camera.cpp:675
rl::hal::Dc1394Camera::getFeatureBoundariesAbsolute
void getFeatureBoundariesAbsolute(const Feature &feature, float &min, float &max) const
Definition: Dc1394Camera.cpp:337
rl::hal::Dc1394Camera::FEATURE_SATURATION
@ FEATURE_SATURATION
Definition: Dc1394Camera.h:83
rl::hal::Dc1394Camera::FEATURE_TRIGGER
@ FEATURE_TRIGGER
Definition: Dc1394Camera.h:90
rl::hal::Dc1394Camera::getFeatureMode
FeatureMode getFeatureMode(const Feature &feature) const
Definition: Dc1394Camera.cpp:352
rl::hal::Dc1394Camera::FEATURE_TRIGGER_DELAY
@ FEATURE_TRIGGER_DELAY
Definition: Dc1394Camera.h:91
rl::hal::Dc1394Camera::getSpeed
IsoSpeed getSpeed() const
Definition: Dc1394Camera.cpp:595
rl::hal::Dc1394Camera::COLOR_CODING_YUV444
@ COLOR_CODING_YUV444
Definition: Dc1394Camera.h:62
rl::hal::Dc1394Camera::getFeatureModes
void getFeatureModes(const Feature &feature, bool &hasManual, bool &hasAuto, bool &hasOnePushAuto) const
Definition: Dc1394Camera.cpp:399
rl::hal::Dc1394Camera::speed
unsigned int speed
Definition: Dc1394Camera.h:402
rl::hal::Dc1394Camera::port
unsigned int port
Definition: Dc1394Camera.h:400
rl::hal::Dc1394Camera::Dc1394Camera
Dc1394Camera(const ::std::string &filename="", const unsigned int &node=0)
Definition: Dc1394Camera.cpp:36
rl::hal::Dc1394Camera::FEATURE_ZOOM
@ FEATURE_ZOOM
Definition: Dc1394Camera.h:94
rl::hal::Dc1394Camera::height
unsigned int height
Definition: Dc1394Camera.h:390
rl::hal::Dc1394Camera::width
unsigned int width
Definition: Dc1394Camera.h:408
rl::hal::Dc1394Camera::FEATURE_FRAME_RATE
@ FEATURE_FRAME_RATE
Definition: Dc1394Camera.h:93
rl::hal::Dc1394Camera::FEATURE_GAIN
@ FEATURE_GAIN
Definition: Dc1394Camera.h:86
rl::hal::Dc1394Camera::FRAMERATE_3_75
@ FRAMERATE_3_75
Definition: Dc1394Camera.h:120
rl::hal::Dc1394Camera::VIDEO_MODE_1280x960_YUV422
@ VIDEO_MODE_1280x960_YUV422
Definition: Dc1394Camera.h:181
rl::hal::Dc1394Camera::FRAMERATE_120
@ FRAMERATE_120
Definition: Dc1394Camera.h:125
rl::hal::Dc1394Camera::FEATURE_CAPTURE_QUALITY
@ FEATURE_CAPTURE_QUALITY
Definition: Dc1394Camera.h:99
rl::hal::Dc1394Camera::setVideoMode
void setVideoMode(const VideoMode &mode)
Definition: Dc1394Camera.cpp:1087
rl
Robotics Library.
Definition: AnalogInput.cpp:30