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:
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 withoutActionprovides reply.CommandParser(tcc_ironl.commands_parser) matches eachAction N:againstaction_dictionary.json.ActionExecutor(tcc_ros/src/tcc_ros/action_executor.py) executes the actions. Named destinations are resolved byDestinationResolverand sent tomove_base; basic moves are velocity commands on/cmd_vel, using odometry for feedback. It can be interrupted withrostopic pub /emergency_stop std_msgs/String "data: 'stop'"or a spoken stop.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 intoperception/base_framethrough TF, and keeps a Kalman-filtered track of each for object naviagtion and scene understanding.
Repository layout
Path |
Contents |
|---|---|
|
The pip toolkit: providers, prompt, parser, destination resolver, SAM weights, CLI. |
|
The ROS package: |
|
ROMR wheeled robot: URDF, Gazebo worlds, maps and navigation launch files. |
|
Unitree Go1 simulation and navigation, based on unitree_ros. |
|
YOLOv8 detection and tracking nodes from ultralytics_ros, as used for perception in the paper. The default perception node, |
|
Container images and the one-command simulation setup. |
|
This documentation. |
|
An export of the project website, also served at linusnep.github.io/TCC-IRoNL/website/. |