Esempio n. 1
0
fbrp.process(
    name="proc",
    runtime=fbrp.Conda(
        channels=[
            "conda-forge",
            "robostack",
        ],
        dependencies=[
            "python>=3.7",
            "ros-foxy-ompl",
        ],
        setup_commands=[
            [
                "g++",
                "-o",
                "proc",
                fbrp.NoEscape("-I${CONDA_PREFIX}/include"),
                fbrp.NoEscape("-I${CONDA_PREFIX}/include/eigen3"),
                fbrp.NoEscape("-I${CONDA_PREFIX}/include/ompl-1.5"),
                "./proc.cpp",
                fbrp.NoEscape("-L${CONDA_PREFIX}/lib"),
                "-lompl",
            ],
        ],
        run_command=[
            fbrp.NoEscape("LD_LIBRARY_PATH=${CONDA_PREFIX}/lib"), "./proc"
        ],
    ),
)

fbrp.main()
Esempio n. 2
0
import fbrp

fbrp.process(
    name="proc",
    runtime=fbrp.Conda(
        yaml="env.yml",
        run_command=["python3", "proc.py"],
    ),
    cfg={
        "prefix": "In the beginning... ",
    },
)

fbrp.process(
    name="api",
    runtime=fbrp.Docker(image="ghcr.io/alephzero/api:latest"),
)

fbrp.main()
Esempio n. 3
0
import fbrp
import os

fbrp.process(
    name="conda_proc",
    runtime=fbrp.Conda(
        dependencies=["python>=3.7"],
        run_command=["python3", "proc.py"],
    ),
    env={
        "my_conda_path": "/tmp/",
        "my_conda_time_out": "2",
    },
)

fbrp.process(
    name="docker_x11_proc",
    runtime=fbrp.Docker(
        dockerfile="./Dockerfile",
        mount=["/tmp/.X11-unix:/tmp/.X11-unix"],
        run_kwargs={
            "Env": [f"DISPLAY={os.getenv('DISPLAY')}"],
        },
    ),
    env={
        "my_docker_path": "/tmp/",
        "my_docker_time_out": "2",
    },
)

fbrp.process(
Esempio n. 4
0
import fbrp

fbrp.process(
    name="alice",
    runtime=fbrp.Conda(
        yaml="env.yml",
        run_command=["python3", "alice.py"],
    ),
)

fbrp.process(
    name="bob",
    runtime=fbrp.Conda(
        yaml="env.yml",
        run_command=["python3", "bob.py"],
    ),
)

fbrp.process(
    name="api",
    runtime=fbrp.Docker(image="ghcr.io/alephzero/api:latest"),
)

fbrp.main()
Esempio n. 5
0
import fbrp

genmsg_py = [
    "python",
    fbrp.NoEscape("${CONDA_PREFIX}/lib/genpy/genmsg_py.py"),
    "-p",
    "my_msgs",
    "-o",
    "my_msgs/py",
]

fbrp.process(
    name="genmsgs",
    runtime=fbrp.Conda(
        channels=[
            "conda-forge",
            "robostack",
        ],
        dependencies=[
            "ros-noetic-genpy",
        ],
        setup_commands=[
            genmsg_py + ["my_msgs/PsUtil.msg"],
            genmsg_py + ["--initpy"],
        ],
        run_command=[],
    ),
)

fbrp.main()
Esempio n. 6
0
import fbrp

fbrp.process(
    name="proc",
    runtime=fbrp.Conda(
        channels=[
            "conda-forge",
            "robostack",
        ],
        dependencies=[
            "python>=3.7",
            "ros-common-msgs",
        ],
        run_command=["python", "proc.py"],
    ),
)

fbrp.main()