Architecture

TCC-IRoNL keeps the LLM away from the motors. The LLM only translates the user’s commands into action vocabularies; a deterministic parser turns those into structured commands; and the robot execution mechanism (REM) execute them through the ROS navigation stack.

 user ── text / voice ──► chat GUI ──/llm_input──► tcc_main
                             ▲                        │
                             │ /llm_output            │ 1. LLMInterface: prompt + LLM ─► "Action 1: ... Action 2: ..."
                             │ /llm_image_output      │ 2. CommandParser ─► [{"action": "FORWARD", ...}, ...]
                             │ /tts_text              │ 3. ActionExecutor (REM)
                             └────────────────────────┤      ├─ move_base action  (named places, coordinates, objects)
                                                      │      ├─ /cmd_vel          (timed moves, turns, circles)
                                                      │      └─ answers, images   (queries)
                                                      └ 4. PerceptionModule: SAM + CLIP + depth ─► tracked objects around the robot

Nodes

Chat GUI (tcc_ros/scripts/chatGUI_SR.py, launched by chatGUI.launch). A Tk window for typed or spoken commands (Google speech recognition via SpeechRecognition). It publishes the request on /llm_input, shows replies from /llm_output and images from /llm_image_output, and reads out /tts_text.

TCC main (tcc_ros/scripts/tcc_main.py, launched by tcc_ros.launch as /tcc_main). Subscribes to /llm_input and runs the pipeline:

  1. LLMInterface (tcc_ironl.interface) builds the system prompt from the robot status, the action vocabulary, the destinations and few-shot examples, then calls the LLM provider. The response is published on /llm_output; an response without Action provides reply.

  2. CommandParser (tcc_ironl.commands_parser) matches each Action N: against action_dictionary.json.

  3. ActionExecutor (tcc_ros/src/tcc_ros/action_executor.py) executes the actions. Named destinations are resolved by DestinationResolver and sent to move_base; basic moves are velocity commands on /cmd_vel, using odometry for feedback. It can be interrupted with rostopic pub /emergency_stop std_msgs/String "data: 'stop'" or a spoken stop.

  4. PerceptionModule (tcc_ros/src/tcc_ros/vlm_node_SAM.py) segments the synchronised RGB-D stream with SAM, labels the segments with CLIP, estimates depth (the depth image, with MiDaS monocular depth as a fallback), projects each object into perception/base_frame through TF, and keeps a Kalman-filtered track of each for object naviagtion and scene understanding.

Repository layout

Path

Contents

tcc_ironl/

The pip toolkit: providers, prompt, parser, destination resolver, SAM weights, CLI.

tcc_ros/

The ROS package: tcc_main.py, the chat GUI, the action executor, the perception node, config/.

romr_ros/

ROMR wheeled robot: URDF, Gazebo worlds, maps and navigation launch files.

unitree_ros/

Unitree Go1 simulation and navigation, based on unitree_ros.

ultralytics_ros/

YOLOv8 detection and tracking nodes from ultralytics_ros, as used for perception in the paper. The default perception node, vlm_node_SAM.py, uses SAM and CLIP.

Docker/, docker-compose.yml

Container images and the one-command simulation setup.

docs/

This documentation.

website/

An export of the project website, also served at linusnep.github.io/TCC-IRoNL/website/.