dora-rs / dora

DORA (Dataflow-Oriented Robotic Application) is middleware designed to streamline and simplify the creation of AI-based robotic applications. It offers low latency, composable, and distributed dataflow capabilities. Applications are modeled as directed graphs, also referred to as pipelines.
https://dora-rs.ai
Apache License 2.0
1.36k stars 69 forks source link

Specify conda env for Python Operators #468

Closed haixuanTao closed 3 months ago

haixuanTao commented 3 months ago

This PR makes it possible to specify the conda env that we want to use in a specific operator.

  - id: robot
    operator:
      python:
        source: ../operators/robot.py
        conda_env: robomaster

This will call:

conda run -n robomaster python -c "import dora; dora.start_runtime()"