haixuantao
commited on
Commit
•
4a58031
1
Parent(s):
5b42d0b
Adding data
Browse files- graphs/dataflow.yml +1 -0
- graphs/out/018e2f11-b850-7a66-8cee-39922407a10a/bbox.parquet +3 -0
- graphs/out/018e2f11-b850-7a66-8cee-39922407a10a/control.parquet +3 -0
- graphs/out/018e2f11-b850-7a66-8cee-39922407a10a/gimbal_control.parquet +3 -0
- graphs/out/018e2f11-b850-7a66-8cee-39922407a10a/image.parquet +3 -0
- graphs/out/018e2f11-b850-7a66-8cee-39922407a10a/position.parquet +3 -0
- graphs/out/018e2f12-a644-76a9-a295-4786aa798619/audio.parquet +3 -0
- graphs/out/018e2f12-a644-76a9-a295-4786aa798619/bbox.parquet +3 -0
- graphs/out/018e2f12-a644-76a9-a295-4786aa798619/chatgpt_output_file.parquet +3 -0
- graphs/out/018e2f12-a644-76a9-a295-4786aa798619/control.parquet +3 -0
- graphs/out/018e2f12-a644-76a9-a295-4786aa798619/gimbal_control.parquet +3 -0
- graphs/out/018e2f12-a644-76a9-a295-4786aa798619/image.parquet +3 -0
- graphs/out/018e2f12-a644-76a9-a295-4786aa798619/mistral_output_file.parquet +3 -0
- graphs/out/018e2f12-a644-76a9-a295-4786aa798619/position.parquet +3 -0
- graphs/out/018e2f12-a644-76a9-a295-4786aa798619/raw_file.parquet +3 -0
- graphs/out/018e2f12-a644-76a9-a295-4786aa798619/saved_file.parquet +3 -0
- graphs/out/018e2f12-a644-76a9-a295-4786aa798619/whisper_text.parquet +3 -0
- operators/planning_op.py +6 -4
graphs/dataflow.yml
CHANGED
@@ -68,6 +68,7 @@ nodes:
|
|
68 |
inputs:
|
69 |
position: robot/position
|
70 |
bbox: object_detection/bbox
|
|
|
71 |
outputs:
|
72 |
- control
|
73 |
- gimbal_control
|
|
|
68 |
inputs:
|
69 |
position: robot/position
|
70 |
bbox: object_detection/bbox
|
71 |
+
tick: dora/timer/millis/100
|
72 |
outputs:
|
73 |
- control
|
74 |
- gimbal_control
|
graphs/out/018e2f11-b850-7a66-8cee-39922407a10a/bbox.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ae1a99e1a7f1ade640f29aab47e55c622b887931c92e549b474481fa28c6e64f
|
3 |
+
size 25815
|
graphs/out/018e2f11-b850-7a66-8cee-39922407a10a/control.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:63ad9b2b4e448761fd1549a1b4a0c70d3f5f2494bd7f27f4dd8d6ec6542f7f12
|
3 |
+
size 12183
|
graphs/out/018e2f11-b850-7a66-8cee-39922407a10a/gimbal_control.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d21dfd83a6635527e2d16e76ec0a7120d5f7d0dbcd815812012444f6eb85ebb3
|
3 |
+
size 12214
|
graphs/out/018e2f11-b850-7a66-8cee-39922407a10a/image.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2332eefc02f4f4126b1fc73801b913fefc866c6a70cc04f2b5cd25b3857dda12
|
3 |
+
size 76143701
|
graphs/out/018e2f11-b850-7a66-8cee-39922407a10a/position.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bc67ef11c769b7300a020fe8d77f23115267bd12e266b38c45d1420ad99a2049
|
3 |
+
size 2648
|
graphs/out/018e2f12-a644-76a9-a295-4786aa798619/audio.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cfce8a2abb68fe2bf5abcf6d1bdc846ae315cb98c0c7e5d6e51b36b036625e30
|
3 |
+
size 269766
|
graphs/out/018e2f12-a644-76a9-a295-4786aa798619/bbox.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:95b5c5d4f297073c26915ee5fbe4f134ba59068b846db183d8ceec874c5c6b68
|
3 |
+
size 199583
|
graphs/out/018e2f12-a644-76a9-a295-4786aa798619/chatgpt_output_file.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b84717602d95f439b0f6aa60b1385ab9fa4c61ad2365dbffa9981dd76f707f83
|
3 |
+
size 49463
|
graphs/out/018e2f12-a644-76a9-a295-4786aa798619/control.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:72304a5696f19ec12f9827a78c66fd25839574f271e2918cc92e6277c68a73c1
|
3 |
+
size 59961
|
graphs/out/018e2f12-a644-76a9-a295-4786aa798619/gimbal_control.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9f45e380f0540000b47b00d82cb3820af5190fc8e61aa971cb92b552ab2057a6
|
3 |
+
size 59933
|
graphs/out/018e2f12-a644-76a9-a295-4786aa798619/image.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f516f375dab14ea2f56c7c3637f157592582dca52fa96290b18bab58cb3e057e
|
3 |
+
size 542012793
|
graphs/out/018e2f12-a644-76a9-a295-4786aa798619/mistral_output_file.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0bcf5cba4a503dc134edea837bb940613525a217a2790e1ca9de54411b96bfe2
|
3 |
+
size 22484
|
graphs/out/018e2f12-a644-76a9-a295-4786aa798619/position.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bed4253153d62e93f935206077e3db9ec471e55043083bc88cc38f65b32f4667
|
3 |
+
size 2700
|
graphs/out/018e2f12-a644-76a9-a295-4786aa798619/raw_file.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4daafa9777821c8876c463dc3345b455c8985d2063240a55e6870d4ffa0089a0
|
3 |
+
size 18615
|
graphs/out/018e2f12-a644-76a9-a295-4786aa798619/saved_file.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6b5807f6bffa4a56ae3622e53a0450beb95d2aa6336b6f6d9879245ee14c257e
|
3 |
+
size 19016
|
graphs/out/018e2f12-a644-76a9-a295-4786aa798619/whisper_text.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c2ab0c3d0af8a0a43d5fbcba581da5af342a6ae6a487765b3f571b263cab53b1
|
3 |
+
size 2749
|
operators/planning_op.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import numpy as np
|
2 |
import pyarrow as pa
|
3 |
from dora import DoraStatus
|
@@ -25,6 +26,7 @@ CAMERA_HEIGHT = 540
|
|
25 |
class Operator:
|
26 |
def __init__(self):
|
27 |
self.bboxs = []
|
|
|
28 |
|
29 |
def on_event(
|
30 |
self,
|
@@ -33,11 +35,11 @@ class Operator:
|
|
33 |
) -> DoraStatus:
|
34 |
global X, Y, SPEED, PITCH, ROTATION, RGB, BRIGHTNESS, GOAL_OBJECTIVES, GIMBAL_POSITION_GOAL
|
35 |
if dora_event["type"] == "INPUT":
|
36 |
-
if dora_event["id"] == "
|
|
|
|
|
37 |
bboxs = dora_event["value"].to_numpy()
|
38 |
-
self.bboxs = np.reshape(
|
39 |
-
bboxs, (-1, 6)
|
40 |
-
) # [ min_x, min_y, max_x, max_y, confidence, label ]
|
41 |
|
42 |
elif dora_event["id"] == "position":
|
43 |
[x, y, z, gimbal_pitch, gimbal_yaw] = dora_event["value"].to_numpy()
|
|
|
1 |
+
import time
|
2 |
import numpy as np
|
3 |
import pyarrow as pa
|
4 |
from dora import DoraStatus
|
|
|
26 |
class Operator:
|
27 |
def __init__(self):
|
28 |
self.bboxs = []
|
29 |
+
self.time = time.time()
|
30 |
|
31 |
def on_event(
|
32 |
self,
|
|
|
35 |
) -> DoraStatus:
|
36 |
global X, Y, SPEED, PITCH, ROTATION, RGB, BRIGHTNESS, GOAL_OBJECTIVES, GIMBAL_POSITION_GOAL
|
37 |
if dora_event["type"] == "INPUT":
|
38 |
+
if dora_event["id"] == "tick":
|
39 |
+
self.time = time.time()
|
40 |
+
elif dora_event["id"] == "bbox":
|
41 |
bboxs = dora_event["value"].to_numpy()
|
42 |
+
self.bboxs = np.reshape(bboxs, (-1, 6))
|
|
|
|
|
43 |
|
44 |
elif dora_event["id"] == "position":
|
45 |
[x, y, z, gimbal_pitch, gimbal_yaw] = dora_event["value"].to_numpy()
|