Getting Started

We recommend following this page in order: install ReLI natively or with Docker, try it in our simulator, and then connect a real robot. Names such as sim and romr_ros1 refer to the example configurations bundled with the package (Bundled examples).

Requirements

  • Python 3.10 or newer on the machine that runs ReLI (Linux, macOS or Windows).

  • A chat model: an OpenAI, Anthropic or Gemini API key, or a local OpenAI-compatible server such as Ollama, vLLM or llama.cpp.

  • An NVIDIA GPU (recommended) for open-vocabulary perception with SAM 3, Grounding DINO or OWLv2, and for monocular depth. The simulator, planning and safety checks run on any CPU.

  • For a real robot: ROS 1 Noetic or ROS 2 Humble/Jazzy with a rosbridge server.

ReLI can run on the robot or on a separate GPU workstation, independent of the robot’s ROS distribution and Python version (ROS Noetic, for example, uses Python 3.8).

Installation on the host

We recommend a virtual environment:

python3 -m venv ~/reli_env
source ~/reli_env/bin/activate
pip install --upgrade pip

For GPU inference, first install the PyTorch build that matches the local CUDA version (pytorch.org), and then install ReLI with the extras required by the setup:

pip install reli-robot                       # core: planning, safety, simulator, CLI
pip install "reli-robot[web]"                # + browser interface
pip install "reli-robot[web,vision,ros]"     # + perception and real robots
pip install "reli-robot[all]"                # everything except YOLO, RealSense and embeddings

The package is published on PyPI as reli-robot; it is imported as reli and provides the reli command.

Extra

Adds

Needed for

web

FastAPI, Uvicorn, OpenCV

reli web

vision

PyTorch, torchvision, Transformers, Pillow, OpenCV

SAM 3, Grounding DINO, OWLv2, CLIP/SigLIP 2, monocular depth

yolo

Ultralytics

perception.detector: yolo_world

ros

roslibpy

ROS 1 / ROS 2 robots through rosbridge

realsense

pyrealsense2

camera.source: realsense without ROS

speech

faster-whisper

speech.backend: faster_whisper

anthropic, gemini

Provider SDKs

llm.provider: anthropic / gemini

embeddings

sentence-transformers

consent.method: embedding

The SAM 3 weights (facebook/sam3) are gated on Hugging Face: accept the licence on the model page and run hf auth login once.

To work on our code, we install the repository in editable mode:

git clone https://github.com/LinusNEP/ReLI.git
cd ReLI
pip install -e ".[dev,web]"
pytest                                  # no network, GPU or ROS needed

Installation with Docker

The repository includes a Dockerfile and a compose.yaml. GPU containers additionally require the NVIDIA Container Toolkit.

git clone https://github.com/LinusNEP/ReLI.git
cd ReLI
docker build -t reli .                  # GPU-capable PyTorch
# docker build -t reli --build-arg TORCH_INDEX=https://download.pytorch.org/whl/cpu .   # smaller, CPU only

To start the browser interface on the simulator:

docker run --rm -it --gpus all \
  -p 127.0.0.1:8080:8080 \
  -e OPENAI_API_KEY -e HF_TOKEN \
  -v "$PWD":/work \
  -v reli-hf:/cache/huggingface \
  reli web -c sim --host 0.0.0.0

Then open http://localhost:8080. The repository is mounted at /work, so configurations are passed by their relative path (-c configs/my_robot.yaml) and interaction logs are written to runs/. The reli-hf volume keeps downloaded models between runs. Other commands follow the image name in the same way, e.g. docker run --rm -it -e OPENAI_API_KEY reli chat -c sim. We add --device /dev/video0 for a webcam, and --network host (instead of -p) when the rosbridge server runs on the same machine.

Docker Compose starts the same container:

docker compose up                        # CPU
docker compose --profile gpu up reli-gpu # all NVIDIA GPUs

Language model access

ReLI needs one chat model. We set the API key of the configured provider:

llm.provider

Key (environment variable)

Notes

openai

OPENAI_API_KEY

default

anthropic

ANTHROPIC_API_KEY

pip install "reli-robot[anthropic]"

gemini

GEMINI_API_KEY

pip install "reli-robot[gemini]"

openai_compatible

optional

Ollama, vLLM, llama.cpp, LM Studio, DeepSeek, Groq, OpenRouter, …

For fully offline operation, we use a local server such as Ollama (ollama pull qwen3:14b) and configure:

llm:
  provider: openai_compatible
  base_url: http://localhost:11434/v1
  model: qwen3:14b

Simulation

sim reproduces the office layout of our simulation experiments: eleven rooms and a corridor, the destinations of the evaluation, and a few objects for simulated perception. The robot is a kinematic differential-drive model, so nothing besides Python is needed.

export OPENAI_API_KEY=...
reli chat -c sim -v
you> Fahre zwei Meter vorwärts und dreh dich dann nach rechts.
   plan: [{'action': 'MOVE', 'distance': 2.0, 'direction': 'forward'},
          {'action': 'TURN', 'angle': 90.0, 'direction': 'right'}]
robot [de]> Alles klar: 2 Meter vorwärts, dann eine Rechtsdrehung.
robot [de]> Soll ich loslegen? Erwartete Endpose: x=2 m, y=0 m, Ausrichtung -90°. (ja/nein)
you> ja
robot [de]> Ich bin 2 m vorwärts gefahren.
robot [de]> Ich habe mich um 90 Grad nach rechts gedreht.

Instructions can be given in any language, or a mix of languages:

Instruction

Behaviour

“Go to the kitchen, then come back to the origin.”

Two navigation goals, after consent

“Draw a square with 1.5 m sides, turning right.”

One POLYGON step, expanded into eight primitives

“Turn to face the plant.” / “Va vers la chaise.”

Visual grounding, with active search if the object is not in view

“Wo bist du?” / “你看到了什么?”

Pose report/scene description

“Move forward.”

The robot asks how far (clarification)

“stop”, “halt”, “停”

Immediate stop, without a model call

Multi-step motion plans require confirmation: the user replies yes, ja, oui, 是, … or gives a new instruction instead.

Browser interface

reli web -c sim        # http://127.0.0.1:8080

In the browser, instructions can be typed or spoken. There is also a live map with the destinations and the robot’s trail, the camera stream when a camera is configured, and a STOP button. Speech is recognised in the browser by default; for server-side recognition, we set speech.backend: faster_whisper (with pip install "reli-robot[speech]") or speech.backend: openai.

Without a robot or an API key

reli simulate validates a JSON plan against the action catalogue, expands composite steps, runs the safety review and executes the plan in the simulator:

reli simulate -c sim '[{"action": "GO_TO_OBJECT", "object": "chair"},
                       {"action": "REPORT_POSE"}]'
2 step(s) -> 2 primitive(s)
   1. {'action': 'GO_TO_OBJECT', 'object': 'chair'}
   2. {'action': 'REPORT_POSE'}
robot> I am now in front of the chair.
robot> I am at x=1.56 m, y=0.5 m, heading 18 degrees.
end pose: x=1.56 m, y=0.5 m, heading 18 deg (success)

Webcam perception

webcam_local combines the simulated robot with a webcam, SAM 3 and monocular metric depth, so that retrospective queries like “what do you see?” and “where is the cup?” use real-time perception:

pip install "reli-robot[web,vision]"
reli web -c webcam_local

Real robots

On the robot, we start rosbridge next to the usual bringup, localisation and navigation stack:

roslaunch rosbridge_server rosbridge_websocket.launch          # ROS 1 Noetic
ros2 launch rosbridge_server rosbridge_websocket_launch.xml    # ROS 2 Humble / Jazzy

Robots without a native rosbridge installation can run it in a container:

docker build -f docker/rosbridge.Dockerfile -t rosbridge:noetic .                          # ROS 1
docker build -f docker/rosbridge.Dockerfile -t rosbridge:jazzy --build-arg ROS_DISTRO=jazzy .  # ROS 2
docker run --rm --network host --ipc host rosbridge:noetic

On the ReLI machine, select the robot configuration:

pip install "reli-robot[ros,vision,web]"
reli web -c romr_ros1      # ROMR / ROS 1 + move_base
reli web -c ros2_nav2      # ROS 2 + Nav2

Real-Robot Deployment lists the interfaces ReLI uses and describes the camera calibration.