Git Product home page Git Product logo

gym-rocketlander's Introduction

GIF

Click here for higher quality video

The objective of this environment is to land a rocket on a ship. The environment is highly customizable and takes discrete or continuous inputs.

Installation

cd gym-rocketlander
pip install -e .

Usage

Once the has been installed, it can be used like any other Gym environment:

env = gym.make("gym_rocketlander:rocketlander-v0")

STATE VARIABLES

The state consists of the following variables:

  • x position
  • y position
  • angle
  • first leg ground contact indicator
  • second leg ground contact indicator
  • throttle
  • engine gimbal

If VEL_STATE is set to true, the velocities are included:

  • x velocity
  • y velocity
  • angular velocity

CONTROL INPUTS

Discrete control inputs are:

  • gimbal left
  • gimbal right
  • throttle up
  • throttle down
  • use first control thruster
  • use second control thruster
  • no action

Continuous control inputs are:

  • gimbal (left/right)
  • throttle (up/down)
  • control thruster (left/right)

gym-rocketlander's People

Contributors

embersarc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gym-rocketlander's Issues

Environment isn't converging

Sorry but I tried lots of different algorithms(D4PG,DDPG,SAC) with solid implementations( they worked & converged in other envs).

This environment has either problem with reward assignment or something else. I trained each one for 8 Million steps(10 000 episodes) none of them came close to beating getting more than -2.0 reward.

While videos looks promising I think its something environment details fundamentally broken.

Change state variables?

Hi,

Looks like great work, and helps advance an idea I had and wanted to expand upon!

Just slightly confused how I'm editing the state variables to change VEL_STATE and also Discrete vs Continuous. Any help would be appreciated!

Thanks for all the work!

Anthony

Background is black

Running your PPO project, I got a series of very black frames. It's hard to find the rocket.

So I decided to test the environment by newing a python file and added these code:

          import gym
          import time

          env = gym.make('RocketLander-v0')
          env.reset()
          for t in range(500):
               env.render()
               env.step(env.action_space.sample())
               time.sleep(0.05)

I had the same problem ! How should I solve this problem ? Please ! ! !

2018-03-09 10-09-32

AssertionError: Failed on kwargs

When is try to make env with gym I get:-

pybox2d/library/Box2D/Box2D.py", line 158, in _init_kwargs
% (self.__class__.__name__, key, ex))
AssertionError: Failed on kwargs for b2PolygonShape.vertices: count >= 3

Undefined name 'BLACK' in go.py

flake8 testing of https://github.com/EmbersArc/gym on Python 2.7.14

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./envs/board_game/go.py:108:60: F821 undefined name 'BLACK'
    curr_state = GoState(pachi_py.CreateBoard(board_size), BLACK)
                                                           ^
./envs/board_game/go.py:111:53: F821 undefined name 'BLACK'
        a = (black_policy_fn if curr_state.color == BLACK else white_policy_fn)(curr_state, prev_state, prev_action)
                                                    ^
2     F821 undefined name 'BLACK'

ModuleNotFoundError: No module named 'Box2D'

How to fix it ๐Ÿ‘
Traceback (most recent call last):
File "E:\HOC\nam4\spacex\gym-master\envs\box2d\rocket_lander.py", line 3, in
import Box2D
ModuleNotFoundError: No module named 'Box2D'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.