Troubleshooting

Start with tcc-ironl doctor in the TCC-IRoNL virtualenv: it checks the API key, CUDA, the SAM checkpoint and ROS in one go.

ImportError: tcc_ros needs the tcc-ironl toolkit

The ROS nodes import the toolkit from this repository. Activate the virtualenv and install it, or re-run the installer:

source ~/catkin_ws/TCC-IRoNLEnv/bin/activate
pip install -e ~/catkin_ws/src/TCC-IRoNL

SAM checkpoint not found

FileNotFoundError: SAM checkpoint 'sam_vit_b_01ec64.pth' not found ...

Download it into the toolkit cache, which the perception node always searches:

tcc-ironl download-weights            # or: --model vit_l / vit_h, with sam_model_type to match

Alternatively, point SAM_MODEL_PATH at the file, or give an absolute path in models/sam_checkpoint. The error message lists every folder that was searched.

CUDA out of memory

RuntimeError: CUDA out of memory

Use the smallest SAM model, sam_model_type: "vit_b" with sam_checkpoint: "sam_vit_b_01ec64.pth" (the default), and close other GPU programs (Gazebo with GPU rendering also uses VRAM). nvidia-smi shows what is using the GPU.

LLM API errors

The robot replies “I’m sorry, I couldn’t process that request.” and the tcc_main log shows, for example:

[ERROR] OpenAI API error: Error code: 401 ...
  • 401/403: the key is missing or wrong. Check echo $OPENAI_API_KEY (or the variable for your provider) in the terminal that launched tcc_ros.launch.

  • 404 / model not found: the provider does not offer that model name. Set a current one in models/llm_name; see Configuration.

  • Timeouts: raise models/llm_timeout_seconds, or check the network from the robot.

Test the provider without ROS with tcc-ironl chat "hello".

A command is not executed

The tcc_main log shows Action not recognized: ... when a line from the LLM matches no pattern in action_dictionary.json. Check the line with tcc-ironl parse "<the line>", then either rephrase your request or extend the pattern.

tcc_main hangs at “Waiting for move_base action server…”

The executor waits for move_base before it starts. Launch the navigation stack first (T2 for the Go1, or romr_navigation.launch), and check rostopic list | grep move_base.

ROS topics not connected

[ WARN] [timestamp]: /odom topic not received
rostopic list | grep odom
rostopic hz /odom

For the camera, compare topics/camera_color and topics/camera_depth in config.yaml with rostopic list.

Docker: GPU not available

Failed to initialize NVML: Unknown Error

Install the NVIDIA Container Toolkit and restart Docker:

sudo apt install -y nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker

Docker: Gazebo or the chat GUI does not open

Allow local containers to use your X server before docker compose up: xhost +local:docker.

apt update fails with an expired or missing ROS key

Install ros-apt-source, which provides the current ROS signing key, by following the ROS signing key migration guide. The Docker images install it during the build.