-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathview_map.py
35 lines (25 loc) · 1.42 KB
/
view_map.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# =============================================================================
# Copyright 2022-2023. Codex Laboratories LLC. All Rights Reserved.
#
# Created By: Tyler Fedrizzi
# Created On: 6 December 2022
#
# Description: Core Execution of the forward-facing gui
# =============================================================================
import argparse
import os
import sys
# Taken from https://docs.python-guide.org/writing/structure/
# Add the root folder to our path to access SWARM
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from core.swarm import SWARM
SIMULATION_NAME = "example"
argpaser = argparse.ArgumentParser("SWARM Simulation Platform",
usage="Run a simulation using a specific map name.",
description="This system represents the client in the SWARM simulation platform. This connects to the core SWARM platform and manages the processing of running a simulation.")
argpaser.add_argument("--map-name", default="SWARMHome", help='The name of the environment to run. Use `list_envs.py` to see which environments are supported')
argpaser.add_argument("--ip-address", default="127.0.0.1", help='The remote IP address of the SWARM Server provided by Codex Labs')
args = argpaser.parse_args()
sim_manager = SWARM(ip_address=args.ip_address, folder="../")
sim_manager.setup_simulation(args.map_name)
print("Finished!")