Command Line Launching

../../_images/basiliskVizardLogo.png

This page contains a series of terminal commands to open Vizard from the command line on macOS and provide optional arguments. Adjust the command line open command and file name according to your platform and how you named the Vizard application. The examples below it is assumed the application is called Vizard.app and it is installed in the syste /Applications folder.

To launch an instance of the Vizard application from the command line:

open /Applications/Vizard.app

The Vizard application supports the following command line arguments:

  1. To launch Vizard application and automatically load a playback binary Vizard data file, use the -loadFile argument followed by the filepath:

    open /Applications/Vizard.app --args -loadFile ~/filepath/filename.bin
    
  2. To launch Vizard application in direct 2-way communication mode without displaying anything to the screen, use the argument -batchmode with the -noDisplay argument:

    open /Applications/Vizard.app --args -batchmode -noDisplay tcp://xxx.xxx.x.xx.xxxxx
    
  3. To launch Vizard application with a livestreaming connection to DirectComm, use the -directComm argument followed by the TCP address Vizard should connect to:

    open /Applications/Vizard.app --args -directComm  tcp://xxx.xxx.x.xx:xxxxx
    

    Note that here Vizard will show the scene being rendered which is helpful for debugging and demonstrations, but it will slow down the simulation.

    To run Vizard cameras in a headless mode, use the -noDisplay argument instead.

  4. To save a copy of all vizMessages passed to Vizard during the run, use the -saveMsgFile argument. Optionally, this argument can be followed by the desired file name that Vizard will name the saved message file on exit:

    open /Applications/Vizard.app --args -saveMsgFile filenameToUse
    
  5. To launch Vizard application and safe the rendering and image transmission times (in noDisplay mode) to the file ~/VizardData/opNavMetrics.txt, use:

    open /Applications/Vizard.app --args -saveMetrics -noDisplay tcp://xxx.xxx.x.xx.xxxxx