File: CaptureSettings.h

package info (click to toggle)
urg 0.8.11-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,212 kB
  • ctags: 1,605
  • sloc: sh: 10,014; cpp: 6,459; ansic: 2,419; makefile: 203
file content (60 lines) | stat: -rw-r--r-- 1,786 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef QRK_CAPTURE_SETTINGS_H
#define QRK_CAPTURE_SETTINGS_H

/*!
  \file
  \brief Data acquisition setting

  \author Satofumi KAMIMURA

  $Id: CaptureSettings.h 1715 2010-02-21 21:03:13Z satofumi $
*/

/*!
  \brief Quick Robot Development Kit.
*/
namespace qrk
{
  /*!
    \brief Receive data type
  */
  typedef enum {
    TypeUnknown,                //!< Unknown
    QT,                         //!< Quit to receive
    GD,                         //!< Get Data (each data size: 3 byte)
    GS,                         //!< Get Short data (each data size: 2 byte)
    MD,                         //!< Measure Data (each data size: 3 byte)
    MS,                         //!< Measure Data (each data size: 2 byte)
    ME,                         //!< Intensity data
    Mx_Reply,                   //!< The first response message of Mx command
    InvalidData,                //!< Error response
  } CaptureType;


  /*!
    \brief Data acquisition setting
  */
  class CaptureSettings
  {
  public:
    CaptureType type;           //!< Type of receive data
    int error_code;             //!< Error code
    long timestamp;             //!< [msec]
    int capture_first;          //!< Acquisition beginning index
    int capture_last;           //!< Acquisition end index
    int skip_lines;             //!< Number of lines to skip
    int skip_frames;            //!< Data acquisition interval
    int remain_times;           //!< Remaining number of  scans
    int data_byte;              //!< Number of data bytes


    CaptureSettings(void)
      : type(TypeUnknown), error_code(-1), timestamp(-1),
        capture_first(-1), capture_last(-1),
        skip_lines(-1), skip_frames(-1), remain_times(-1), data_byte(-1)
    {
    }
  };
}

#endif /* !QRK_CAPTURE_SETTINGS_H */