File size: 2,969 Bytes
ef17c16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab:

inline-header {
#include <json/json.h>
#include <sawIntuitiveResearchKit/terminal.h>
#include <sawIntuitiveResearchKit/IO_configuration.h>
#include <sawIntuitiveResearchKit/teleop_ECM_proxy_configuration.h>
#include <sawIntuitiveResearchKit/teleop_PSM_proxy_configuration.h>
}

enum {
    name console_input_type;
    namespace dvrk;
    enum-value {
        name UNDEFINED;
        description Undefined;
        value 0;
    }
    enum-value {
        name PEDALS_ONLY;
        description Only use foot pedals, coag is used for operator_present;
    }
    enum-value {
        name PEDALS_GOOVIS_HEAD_SENSOR;
        description Use pedals for clutch and camera, Goovis HID for operator_present;
    }
    enum-value {
        name PEDALS_ISI_HEAD_SENSOR;
        description Use pedals for clutch and camera, ISI head sensor for operator_present;
    }
    enum-value {
        name PEDALS_DVRK_HEAD_SENSOR;
        description Use pedals for clutch and camera, dVRK head sensor for operator_present;
    }
    enum-value {
        name SIMULATED;
        description No inputs required;
    }
    enum-value {
        name COMPONENTS;
        description Specify the component and interface for each input: clutch, camera, operator_present;
    }
}

class {
    name console_configuration;
    namespace dvrk;
    attribute CISST_EXPORT;

    member {
        name name;
        type std::string;
        visibility public;
    }

    member {
        name input_type;
        type dvrk::console_input_type;
        visibility public;
    }

    member {
        name IO_pedals;
        type dvrk::IO_configuration;
        visibility public;
        default dvrk::IO_configuration("IO_pedals");
    }

    member {
        name IO_head_sensor;
        type dvrk::IO_configuration;
        visibility public;
        default dvrk::IO_configuration("IO_head_sensor");
    }

    member {
        name HID_file;
        type std::string;
        visibility public;
        default "";
    }

    member {
        name clutch;
        type dvrk::terminal;
        visibility public;
        default dvrk::terminal();
    }

    member {
        name camera;
        type dvrk::terminal;
        visibility public;
        default dvrk::terminal();
    }

    member {
        name operator_present;
        type dvrk::terminal;
        visibility public;
        default dvrk::terminal();
    }

    member {
        name teleop_PSMs;
        type std::vector<dvrk::teleop_PSM_proxy_configuration>;
        visibility public;
        default std::vector<dvrk::teleop_PSM_proxy_configuration>();
    }

    member {
        name teleop_ECMs;
        type std::vector<dvrk::teleop_ECM_proxy_configuration>;
        visibility public;
        default std::vector<dvrk::teleop_ECM_proxy_configuration>();
    }
}