<reponame>suqi/gym-sandbox<gh_stars>1-10
# -*- coding: utf-8 -*-
import gym
import gym_sandbox
import time
import random

# choose a env name from env_list
# env = gym.make("police-killall-ravel-v0")
# env = gym.make("police-killall-static-cords-500-v0")
env = gym.make("police-killall-trigger-3dravel-v0")

env.env.init_params(show_dashboard=True, bokeh_output="standalone")

print("action shape >>> ", env.action_space.n)

s_init = env.reset()
print("state shape >>> ", s_init.shape)

for i in range(1000):
    # choose your action
    a = random.choice(range(4))
    s_, r, done, info = env.step(a)

    time.sleep(0.1)
    env.render()

    print(a, r, done, info)

    # if done:
    #     break



# -*- coding: utf-8 -*-
import gym
import gym_sandbox
import time
import random

# choose a env name from env_list
# env = gym.make("police-killall-ravel-v0")
# env = gym.make("police-killall-static-cords-500-v0")
env = gym.make("police-killall-trigger-3dravel-v0")

env.env.init_params(show_dashboard=True, bokeh_output="standalone")

print("action shape >>> ", env.action_space.n)

s_init = env.reset()
print("state shape >>> ", s_init.shape)

for i in range(1000):
    # choose your action
    a = random.choice(range(4))
    s_, r, done, info = env.step(a)

    time.sleep(0.1)
    env.render()

    print(a, r, done, info)

    # if done:
    #     break
# -*- coding: utf-8 -*- # choose a env name from env_list # env = gym.make("police-killall-ravel-v0") # env = gym.make("police-killall-static-cords-500-v0") # choose your action # if done: #     break