def main(args: argparse.Namespace) -> None: if args.verbose: ff.print_airsim_path(airsim.__path__) preflight(args) # setup client = connect(ff.SimMode.ComputerVision) try: fly(client, args) # do stuff except KeyboardInterrupt: client.reset() # avoid UE4 'fatal error' when exiting with Ctrl+C finally: ff.log("Done")
def main(args: argparse.Namespace) -> None: if args.verbose: ff.print_airsim_path(airsim.__path__) assert args.env_name is not None, "missing --launch option" ff.launch_env(*ff.LaunchEnvArgs(args)) if not args.skip_connect: ff.input_or_exit("\nPress [enter] to connect to AirSim ") client = connect(ff.SimMode.ComputerVision) time.sleep(1) client.reset() ff.log("Done")
def main(args: argparse.Namespace) -> None: if args.verbose: ff.print_airsim_path(airsim.__path__) if args.env_name is not None: # the --launch option was passed ff.launch_env(*ff.LaunchEnvArgs(args)) input("\nPress [enter] to connect to AirSim ") preflight(args) # setup client = connect_to_airsim() try: fly(client, args) # do stuff except KeyboardInterrupt: client.reset() # avoid UE4 'fatal error' when exiting with Ctrl+C
def main(args: argparse.Namespace) -> None: if args.verbose: ff.print_airsim_path(airsim.__path__) preflight(args) # setup client = connect(SIM_MODE) try: fly(client, args) # do stuff except KeyboardInterrupt: client.reset() # avoid UE4 'fatal error' when exiting with Ctrl+C finally: ff.log("Done\n") ff.log_info(f"Used scale = {args.scale} and offset = {args.offset}") ff.log_info(f"Used VELOCITY = {VELOCITY}") ff.log_info(f"Used SIM_MODE = {SIM_MODE}") ff.log_info(f"Used LOOK_AT_TARGET = {to_xyz_str(LOOK_AT_TARGET)}") ff.log_info(f"Used CAPTURE_CAMERA = {CAPTURE_CAMERA}")