File size: 3,614 Bytes
12d535c
83ac11e
 
 
 
 
37584e0
83ac11e
 
37584e0
83ac11e
 
37584e0
83ac11e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12d535c
 
 
 
 
83ac11e
12d535c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f4392e4
12d535c
 
83ac11e
 
 
 
 
37584e0
 
 
83ac11e
37584e0
 
83ac11e
 
 
 
 
 
4a58031
83ac11e
 
 
 
 
12d535c
 
 
 
37584e0
12d535c
37584e0
 
 
 
 
 
f4392e4
37584e0
12d535c
 
 
 
 
37584e0
12d535c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37584e0
12d535c
 
 
 
37584e0
12d535c
37584e0
12d535c
37584e0
 
 
12d535c
37584e0
 
 
d4a3c67
 
 
37584e0
12d535c
 
 
 
 
37584e0
12d535c
 
 
 
 
 
 
37584e0
12d535c
 
6535dfe
 
83ac11e
f4392e4
83ac11e
 
 
f4392e4
 
 
 
 
 
83ac11e
f4392e4
37584e0
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
nodes:
  - id: robot
    operator:
      python: ../operators/robot.py
      inputs:
        blaster:
          source: llm/blaster
          queue_size: 1
        led:
          source: llm/led
          queue_size: 1
        control:
          source: planning/control
          queue_size: 1
        gimbal_control:
          source: planning/gimbal_control
          queue_size: 1
        tick:
          source: dora/timer/millis/100
          queue_size: 1
      outputs:
        - position

  - id: bot_webcam
    custom:
      source: ../operators/opencv_stream.py
      outputs:
        - image

  - id: object_detection
    operator:
      python: ../operators/object_detection.py
      inputs:
        image: bot_webcam/image
      outputs:
        - bbox

  ### Second Camera
  - id: webcam
    operator:
      python: ../operators/webcam.py
      inputs:
        tick:
          source: dora/timer/millis/50
          queue_size: 1
      outputs:
        - image

  - id: plot_webcam
    operator:
      python: ../operators/plot.py
      inputs:
        image: webcam/image
        text: whisper/text  


  - id: plot_bot
    operator:
      python: ../operators/plot.py
      inputs:
        image: bot_webcam/image
        keyboard_buffer: keyboard/buffer
        user_message: keyboard/submitted
        assistant_message: llm/assistant_message
        bbox: object_detection/bbox


  - id: planning
    operator:
      python: ../operators/planning_op.py
      inputs:
        position: robot/position
        bbox: object_detection/bbox
        tick: dora/timer/millis/100
      outputs:
        - control
        - gimbal_control
        - led
        - blaster

  ## Speech to text
  - id: keyboard
    custom:
      source: ../operators/keyboard_op.py
      outputs:
        - buffer
        - submitted
        - record
        - ask
        - send
        - change
      inputs:
        recording: whisper/text

  - id: microphone
    operator:
      python: ../operators/microphone_op.py
      inputs:
        record: keyboard/record
      outputs:
        - audio

  - id: whisper
    operator:
      python: ../operators/whisper_op.py
      inputs:
        audio: microphone/audio
      outputs:
        - text

  ## Code Modifier
  - id: vectordb
    operator:
      python: ../operators/sentence_transformers_op.py
      inputs:
        query: keyboard/change
        saved_file: file_saver/saved_file
      outputs:
        - raw_file

  - id: llm
    operator:
      python: ../operators/llm_op.py
      inputs:
        code_modifier: vectordb/raw_file
        assistant: keyboard/ask
        message_sender: keyboard/send
      outputs:
        - modified_file
        - assistant_message
        - line
        - control
        - led
        - blaster
        - rotation

  - id: file_saver
    operator:
      python: ../operators/file_saver_op.py
      inputs:
        llm_output_file: llm/modified_file
      outputs:
        - saved_file

  - id: dora-record
    custom:
      source: dora-record
      inputs:
        llm_output_file: llm/modified_file
        raw_file: vectordb/raw_file
        saved_file: file_saver/saved_file
        audio: microphone/audio
        whisper_text: whisper/text
        bbox: object_detection/bbox
        image: cv2_encoder/encoded_image
        position: robot/position
        control: planning/control
        gimbal_control: planning/gimbal_control

  ### Second Camera
  - id: cv2_encoder
    operator:
      python: ../operators/cv2_encoder_op.py
      inputs:
        image: bot_webcam/image
      outputs:
        - encoded_image