Skip to content

Conversation

@Thxssio
Copy link

@Thxssio Thxssio commented Dec 23, 2025

🐛 Bugfix: FIRASim Docker loads correct robot geometry/configs

What was the problem?

When running FIRASim inside Docker, robot geometry was loaded with fallback defaults (e.g. radius/height),
causing robots to appear giant compared to native builds.

Root cause: installed binary runs from /usr/local/bin, so qApp->applicationDirPath() changes and the app
may not find team .ini files (e.g. Parsian.ini) and/or the ~/.grsim.xml file. This triggers default
values in loadRobotSettings().

What changed?

  • Ship a default XML template (firasim.xml) inside the image and copy it to ~/.grsim.xml on first run.
  • Ensure team configuration .ini files are available in the installed path expected by the app
    (e.g. /usr/local/share/grsim/config).
  • Docker entrypoint updated to initialize runtime config and support X11/VNC/offscreen modes.

How to test

X11 (host display)

xhost +local:docker
docker run --rm -it \
  -e DISPLAY=$DISPLAY \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  --device /dev/dri \
  taurabots/firasim:latest

Thxssio and others added 4 commits December 23, 2025 16:28
When installed to /usr/local/bin, applicationDirPath changes and ../config is not valid. Add fallback search paths (e.g., /usr/local/share/grsim/config) to prevent default robot geometry.
fix(config): make robot ini lookup work after install
Ship team .ini files to /usr/local/share/grsim/config and ensure ~/.grsim.xml is created from template. Prevents fallback to default robot geometry (giant robots) inside containers.
fix: load robot/team configs correctly in Docker installs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant