Skip to content

dora-rs/node-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Dora Node Hub

This hub contains useful pre-built nodes for Dora.

Packages

Feel free to modify this README with your own nodes so that it benefits the community.

Type Title Support Description Downloads License
Camera PyOrbbeckSDK πŸ“ Image and depth from Orbbeck Camera Downloads License
Camera PyRealsense LinuxπŸ†—
MacπŸ› οΈ
Image and depth from Realsense Downloads License
Camera OpenCV Video Capture βœ… Image stream from OpenCV Camera Downloads License
Camera Kornia V4L Capture βœ… Video stream for Linux Camera (rust) License
Camera Kornia GST Capture βœ… Video Capture using Gstreamer (rust) License
Peripheral Keyboard βœ… Keyboard char listener Downloads License
Peripheral Microphone βœ… Audio from microphone Downloads License
Peripheral PyAudio(Speaker) βœ… Output audio from speaker Downloads License
Actuator Feetech πŸ“ Feetech Client
Actuator Dynamixel πŸ“ Dynamixel Client
Chassis Agilex - UGV πŸ†— Robomaster Client Downloads License
Chassis DJI - Robomaster S1 πŸ“ Robomaster Client
Chassis Dora Kit Car πŸ†— Open Source Chassis Downloads License
Arm Alex Koch - Low Cost Robot πŸ“ Alex Koch - Low Cost Robot Client
Arm Lebai - LM3 πŸ“ Lebai client
Arm Agilex - Piper πŸ†— Agilex arm client Downloads License
Robot Pollen - Reachy 1 πŸ“ Reachy 1 Client
Robot Pollen - Reachy 2 πŸ†— Reachy 2 client Downloads License
Robot Trossen - Aloha πŸ“ Aloha client
Voice Activity Detection(VAD) Silero VAD βœ… Silero Voice activity detection Downloads License
Speech to Text(STT) Whisper βœ… Transcribe audio to text Downloads License
Object Detection Yolov8 βœ… Object detection Downloads License
Segmentation SAM2 Cudaβœ…
MetalπŸ› οΈ
Segment Anything Downloads License
Large Language Model(LLM) Qwen2.5 βœ… Large Language Model using Qwen Downloads License
Vision Language Model(VLM) Qwen2.5-vl βœ… Vision Language Model using Qwen2.5 VL Downloads License
Vision Language Model(VLM) InternVL πŸ†— InternVL is a vision language model Downloads License
Vision Language Action(VLA) RDT-1B πŸ†— Infer policy using Robotic Diffusion Transformer Downloads License
Translation ArgosTranslate πŸ†— Open Source translation engine Downloads License
Translation Opus MT πŸ†— Translate text between language Downloads License
Text to Speech(TTS) Kokoro TTS βœ… Efficient Text to Speech Downloads License
Recorder Llama Factory Recorder πŸ†— Record data to train LLM and VLM Downloads License
Recorder LeRobot Recorder πŸ“ LeRobot Recorder helper
Visualization Plot βœ… Simple OpenCV plot visualization Downloads License
Visualization Rerun βœ… Visualization tool Downloads License
Simulator Mujoco πŸ“ Mujoco Simulator
Simulator Carla πŸ“ Carla Simulator
Simulator Gymnasium πŸ“ Experimental OpenAI Gymnasium bridge
Image Processing Kornia Sobel Operator βœ… Kornia image processing Sobel operator (rust) License

Examples

Type Title Description Last Commit
Audio Speech to Text(STT) Transform speech to text. License
Audio Translation Translate audio in real time. License
Vision Vision Language Model(VLM) Use a VLM to understand images. License
Vision YOLO Use YOLO to detect object within image. License
Vision Camera Simple webcam plot example License
Vision Image Processing Multi camera image processing
Model Training Piper RDT Piper RDT Pipeline License
Model Training LeRobot - Alexander Koch Training Alexander Koch Low Cost Robot with LeRobot License
Benchmark CPU Benchmark CPU Benchmark of dora-rs License

Python

Add a new python node

  • To work on a new node, start by:
cd node-hub
dora new your-node-name --lang python --kind node
cd ./your-node-name
uv venv --seed -p 3.11
uv pip install -e . # Install
uv run ruff check . --fix # Format
uv run ruff check . # Lint
uv run pytest . # Test
  • To add a python dependency just do:
uv add numpy # for example

The package is then added to your pyproject.toml

  • Modify the code within main.py in your liking.

  • Create a PR and let the CI/CD run test on it πŸ™‹

Structure

The structure of the node hub is as follows (please use the same structure if you need to add a new node):

node-hub/
└── your-node/
    β”œβ”€β”€ README.md
    β”œβ”€β”€ your-node
    β”‚   β”œβ”€β”€ __init__.py
    β”‚   β”œβ”€β”€ __main__.py
    β”‚   └── main.py
    β”œβ”€β”€ pyproject.toml
    └── tests
        └── test_<your-node>.py

The idea is to make a pyproject.toml file that will install the required dependencies for the node and attach main function of the node inside a callable script in your environment.

To do so, you will need to add a main function inside the main.py file.

def main():
    pass

And then you will need to adapt the following pyproject.toml file:

[project]
name = "[name of the node e.g. video-encoder, with '-' to replace spaces]"
version = "0.1"
authors = [{ name = "[Pseudo/Name]", email = "[email]" }]
description = "Dora Node for []"
readme = "README.md"
license = { text = "MIT" }

dependencies = [
    "dora-rs >= 0.3.8",
]

[project.scripts]
[name of the node with '-' to replace spaces] = "[name of the node with '_' to replace spaces].main:main"

[tool.ruff.lint]
extend-select = [
  "D",    # pydocstyle
  "UP",   # Ruff's UP rule
  "PERF", # Ruff's PERF rule
  "RET",  # Ruff's RET rule
  "RSE",  # Ruff's RSE rule
  "NPY",  # Ruff's NPY rule
  "N",    # Ruff's N rule
  "I",    # Ruff's I rule
]

Finally, the README.md file should explicit all inputs/outputs of the node and how to configure it in the YAML file.

Example

[project]
name = "opencv-plot"
version = "0.1"
authors = [
    "Haixuan Xavier Tao <tao.xavier@outlook.com>",
    "Enzo Le Van <dev@enzo-le-van.fr>"
]
description = "Dora Node for plotting data with OpenCV"
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.7"

dependencies = [
    "dora-rs >= 0.3.8",
]
[dependency-groups]
dev = ["pytest >=8.1.1", "ruff >=0.9.1"]

[project.scripts]
opencv-plot = "opencv_plot.main:main"

[tool.ruff.lint]
extend-select = [
  "D",    # pydocstyle
  "UP",   # Ruff's UP rule
  "PERF", # Ruff's PERF rule
  "RET",  # Ruff's RET rule
  "RSE",  # Ruff's RSE rule
  "NPY",  # Ruff's NPY rule
  "N",    # Ruff's N rule
  "I",    # Ruff's I rule
]

Adding git dependency

  • If a git repository is added as submodule. Proper path should be added in pyproject.toml inorder to make sure that linting and testing are exempted for that dependency.
  • A very good example of how this can be done is as follows

Correct approach:

[tool.ruff]
exclude = ["dora_magma/Magma"]

[tool.black]
extend.exclude = "dora_magma/Magma"

Incorrect Approach:

[tool.ruff]
exclude = ["dora-magma/dora_magma/Magma"]

[tool.black]
extend.exclude = "dora_magma/Magma"
Note:
  • dora-magma is root folder of the node.

Rust

Add a new rust node

cd node-hub
dora new your-node-name --lang rust --kind node
cd ./your-node-name

Steps Before Building

  • Before building the node, make sure to add your node to the workspace members list in the root Cargo.toml file:
[workspace]
members = [
...
"node-hub/your-node-name"
]
  • Also change the Cargo.toml file in your node to use the workspace version of dora-node-api:
[dependencies]
dora-node-api = { workspace = true }

Structure

The structure of the node hub for Rust is as follows (please use the same structure if you need to add a new node):

node-hub/
└── your-node/
    β”œβ”€β”€ Cargo.toml
    β”œβ”€β”€ README.md
    └── src/
           └── main.rs

The README.md file should explicit all inputs/outputs of the node and how to configure it in the YAML file.

License

This project is licensed under Apache-2.0. Check out NOTICE.md for more information.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •