Spaces:
Sleeping
Sleeping
File size: 594 Bytes
bc6bee9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | from rl_env.environment import ATCEnv
from rl_env.models import ATCAction
env = ATCEnv()
obs, _ = env.reset(task="single_approach")
print("Initial observation:", obs)
# Realistic safe sequence
commands = [
"ATC VECTOR RL001 90", # turn east toward the runway
"ATC ALTITUDE RL001 4000", # descend to 4000 ft
"ATC SPEED RL001 210", # set speed to 210 kt
"ATC LAND RL001 RWY_1" # request landing
]
action = ATCAction(commands=commands)
obs, reward, done, _, info = env.step(action)
print("After step:", obs, "reward:", reward, "done:", done)
|