Skip to content

Commit e3a521f

Browse files
undid changes to random action
1 parent 3286dae commit e3a521f

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

scripts/environments/random_agent.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -52,26 +52,6 @@ def main():
5252
print(f"[INFO]: Gym action space: {env.action_space}")
5353
# reset environment
5454
env.reset()
55-
56-
outs = env.unwrapped.get_IO_descriptors
57-
out = outs["observations"]
58-
out_actions = outs["actions"]
59-
# Make a yaml file with the output
60-
import yaml
61-
62-
with open("obs_descriptors.yaml", "w") as f:
63-
yaml.safe_dump(outs, f)
64-
65-
for k, v in out_actions.items():
66-
print(f"--- Action term: {k} ---")
67-
for k1, v1 in v.items():
68-
print(f"{k1}: {v1}")
69-
70-
for k, v in out.items():
71-
print(f"--- Obs term: {k} ---")
72-
for k1, v1 in v.items():
73-
print(f"{k1}: {v1}")
74-
exit(0)
7555
# simulate environment
7656
while simulation_app.is_running():
7757
# run everything in inference mode

0 commit comments

Comments
 (0)