| name | new-dataflow |
|---|---|
| description | Create a new dora dataflow project with common templates |
Create a new dora dataflow project with pre-configured templates.
/new-dataflow <name> [--type <template>] [--lang <language>]
| Argument | Description | Default |
|---|---|---|
<name> |
Project name | required |
--type |
Template type | basic |
--lang |
Language | python |
Simple camera + visualization:
nodes:
- id: camera
- id: visualizeObject detection pipeline:
nodes:
- id: camera
- id: detector
- id: visualizeSpeech-to-speech pipeline:
nodes:
- id: microphone
- id: vad
- id: whisper
- id: llm
- id: tts
- id: speakerRobot teleoperation:
nodes:
- id: leader
- id: follower
- id: camera
- id: recorderVision-language interaction:
nodes:
- id: camera
- id: vlm
- id: visualize- Create project directory
- Generate dataflow.yml from template
- Create custom node stubs if needed
- Print next steps
/new-dataflow my-robot --type vision
Creates:
my-robot/
├── dataflow.yml
└── README.md
With dataflow.yml:
nodes:
- id: camera
build: pip install opencv-video-capture
path: opencv-video-capture
inputs:
tick: dora/timer/millis/33
outputs:
- image
env:
CAPTURE_PATH: "0"
IMAGE_WIDTH: "640"
IMAGE_HEIGHT: "480"
- id: detector
build: pip install dora-yolo
path: dora-yolo
inputs:
image: camera/image
outputs:
- bbox
env:
MODEL: yolov8n.pt
- id: visualize
build: pip install dora-rerun
path: dora-rerun
inputs:
image: camera/image
boxes2d: detector/bboxAfter creating:
cd my-robot
dora build dataflow.yml --uv
dora run dataflow.ymlCreate custom templates by modifying the generated dataflow.yml:
- Add/remove nodes
- Adjust environment variables
- Change connections
- Add custom nodes