def __init__(self):
    self.seed()
    self.viewer = None
    self.world = Box2D.b2World()
    self.terrain = None
    self.hull = None
    self.prev_shaping = None
    self.fd_polygon = fixtureDef(shape=polygonShape(vertices=[(0, 0), (1, 0), (1, (- 1)), (0, (- 1))]), friction=FRICTION)
    self.fd_edge = fixtureDef(shape=edgeShape(vertices=[(0, 0), (1, 1)]), friction=FRICTION, categoryBits=1)
    self.reset()
    high = np.array(([np.inf] * 24))
    self.action_space = spaces.Box(np.array([(- 1), (- 1), (- 1), (- 1)]), np.array([(+ 1), (+ 1), (+ 1), (+ 1)]))
    self.observation_space = spaces.Box((- high), high)
def __init__(self):
    self.seed()
    self.viewer = None
    self.world = Box2D.b2World()
    self.terrain = None
    self.hull = None
    self.prev_shaping = None
    self.fd_polygon = fixtureDef(shape=polygonShape(vertices=[(0, 0), (1, 0), (1, (- 1)), (0, (- 1))]), friction=FRICTION)
    self.fd_edge = fixtureDef(shape=edgeShape(vertices=[(0, 0), (1, 1)]), friction=FRICTION, categoryBits=1)
    self.reset()
    high = np.array(([np.inf] * 24))
    self.action_space = spaces.Box(np.array([(- 1), (- 1), (- 1), (- 1)]), np.array([(+ 1), (+ 1), (+ 1), (+ 1)]))
    self.observation_space = spaces.Box((- high), high)