Skip to main content
rua installs no console script. Its command-line surface is two sim programs, run with python -m, which serve a bridge until SIGTERM or Ctrl-C. RobotEndpoint and attach_gym run them for you; you run them by hand to host a sim on another machine or to debug one. Both print one line once the control channel is bound, which a spawning RobotEndpoint reads from stdout:
Everything else on stdout is the sim’s own logging.

python -m rua.sim.bridge

Serve a RobotBridge subclass.
The control channel binds an ephemeral port on 127.0.0.1.

python -m rua.sim.gym

Serve a gym-style env with GymBridge.
attach_gym passes --contract contract.json by default, while the command line’s own default is no file. --host and --port set the control channel only; the robot WebSocket always binds an ephemeral port on 127.0.0.1.
Both programs print a RuntimeWarning from runpy at startup, because rua.sim imports its bridge and gym submodules before python -m runs them. It is harmless. rua.sim.gym.gym_command(target, *, fps=None, contract="contract.json", bridge=None, **defaults) returns the argv attach_gym spawns, if you want to run it yourself.