Code Monkey home page Code Monkey logo

fos's Introduction

FOS Simulator

Fire Operation Simulation

FOS Map Sample

1. How to Run FOS Simulator

There are two methods for operating the FOS simulator: running on a desktop and using a browser.

1-1. Runnign on your Desktop

!!Disclamer and Warning!! Please note that downloading FOS binaries on DoDIN devices, such as NIPRNET Computers, is strictly prohibited. According to the Army IT User Agreement (AUP), downloading or running any executable files on government devices without proper authorization from the AO is not allowed.

To run the FOS simulator on your desktop:

  • Download the appropriate Binary/Executable FOS Simulator file for your operating system from the Commercial FOS Repository Release Tab, or DoD OneDrive Digital O-Plan Sharepoint (requires CAC login).
  • Execute the downloaded executable file with command line arguments. If the arguments are not specified, the program will attempt to receive required entries that have not been entered into the CLI interface since it was executed.

Example:

./"FOS Simulator" --host 127.0.0.1 --port 8080
for index, arg in enumerate(argv):
      if arg == "help" or arg == "-help" or arg == "-h" or arg == "--help":
          print("""Usage:
          --help : to list all available
          --host [IP Address, Str] : host to connect to
          --port [Port, Int] : port to connect to
          --visualize [0/1] : visualize or not
          --logging [0/1] : enable log printing using stdout or not
          """)
          sys.exit(0)

      match (arg.startswith("--"), arg):
          case True, "--host":
              result["host"] = argv[index + 1]
          case True, "--port":
              result["port"] = int(argv[index + 1])
          case True, "--visualize":
              result["visualize"] = bool(int(argv[index + 1]))
          case True, "--logging":
              result["logging"] = bool(int(argv[index + 1]))
  • The simulation log file will be automatically stored in the same directory as the simulator, named play_log.json.
1-2. Running on the Browser

To run the FOS simulator on your browser:

  • Download and save the FOS Simulator HTML and WASM related files in one directory from the listed release repository. Open index.html with your browser.

    If you use the file:// protocol when running index.html, you may need to adjust your browser's CORS settings to enable the loading of WASM files.

    C:\"Program Files (x86)"\Microsoft\Edge\Application\msedge.exe --disable-web-security --user-data-dir="C:\Users\_YOUR_USER_NAME__\Desktop\FOSWEB"

    or

    Reference this: https://answers.microsoft.com/en-us/microsoftedge/forum/all/disable-cors/55c89fb6-8d72-4318-9ee3-e9cdfc6fa708.

    Alternatively, implement a web server to access index.html using the http:// protocol instead of the file:// protocol. You can also visit our example website for FOS Simulation at https://usfk-code-challenge-2023.github.io/FOS.

  • Enter the address of the controller server to which the simulator will connect.

    [Avaliable also on NIPR] Example Websocket Controller Server: (host) port-0-fos-cu6q2blkog9b7j.sel4.cloudtype.app (port) 443

    [Not Avaliable on NIPR] Example WebRTC Controller: Open WebRTC Controller Example as well as FOS Simulator on your browser and when Simulator asks you about host name, then type 'rtc'.

    The simulator operates using WebAssembly on your local machine, rather than on a remote server. Even if you are targeting to run FOS simulator with your browser, you can connect to a locally hosted server(FOS Controller). The browser implementation primarily caters to individuals working on DoDIN computers. If you need to work within a browser, you can implement a local TCP server for the controller or use an external server to establish a connection.

  • After completing the simulation, remember to download your play log file from your browser.

1-3. Detailed Description

2. Implementing FOS Controller

3. Bug Report

  • If you encounter any issues or bugs with the simulator, please contact SGT Kang, Kevin, USFK J5 AI/ML Planning Assistant, Digital O-Plan, via email at [email protected] or submit an issue report at https://github.com/usfk-code-challenge-2023/FOS/issues.

  • Please make sure to regularly check the provided page for any additional simulator fixes that may have been implemented since the start of the competition.

fos's People

Contributors

b-re-w avatar mesopotamianunderpants avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.