{"id":14958912,"url":"https://github.com/sdsubhajitdas/rocket_lander_gym","last_synced_at":"2025-06-11T01:08:05.081Z","repository":{"id":100534509,"uuid":"141623661","full_name":"sdsubhajitdas/Rocket_Lander_Gym","owner":"sdsubhajitdas","description":"💥💥 This is a easy installable extension for OpenAi Gym Environment. This simulates SpaceX Falcon landing.","archived":false,"fork":false,"pushed_at":"2018-07-24T11:11:33.000Z","size":4534,"stargazers_count":56,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-07T02:02:41.814Z","etag":null,"topics":["artificial-intelligence","deep-learning","deep-neural-networks","deep-q-network","gym","gym-environment","openai","openai-gym","openai-gym-agents","openai-gym-environment","openai-gym-environments","reinforcement-learning","reinforcement-learning-agent","reinforcement-learning-playground","spacex","spacex-launches","spacex-visualization","spacexbot","tensorflow","tensorflow-experiments"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdsubhajitdas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2018-07-19T19:42:24.000Z","updated_at":"2025-01-04T17:31:02.000Z","dependencies_parsed_at":"2023-05-15T19:15:32.282Z","dependency_job_id":null,"html_url":"https://github.com/sdsubhajitdas/Rocket_Lander_Gym","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"38146c7bcdf0dc715e25f316c5e12679ff38d7ae"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdsubhajitdas%2FRocket_Lander_Gym","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdsubhajitdas%2FRocket_Lander_Gym/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdsubhajitdas%2FRocket_Lander_Gym/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdsubhajitdas%2FRocket_Lander_Gym/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdsubhajitdas","download_url":"https://codeload.github.com/sdsubhajitdas/Rocket_Lander_Gym/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdsubhajitdas%2FRocket_Lander_Gym/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259178497,"owners_count":22817387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["artificial-intelligence","deep-learning","deep-neural-networks","deep-q-network","gym","gym-environment","openai","openai-gym","openai-gym-agents","openai-gym-environment","openai-gym-environments","reinforcement-learning","reinforcement-learning-agent","reinforcement-learning-playground","spacex","spacex-launches","spacex-visualization","spacexbot","tensorflow","tensorflow-experiments"],"created_at":"2024-09-24T13:18:29.640Z","updated_at":"2025-06-11T01:08:05.061Z","avatar_url":"https://github.com/sdsubhajitdas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rocket Lander Gym\n\nThis is an [OpenAI](https://github.com/openai) [gym](https://github.com/openai/gym) custom environment. It simulates SpaceX Falcon Rocket landing. I have not created this environment, this environment was orginally created by [Sven Niederberger](https://github.com/EmbersArc) check the orginal work [here](https://github.com/EmbersArc/gym). I have just seperated the environment from the orginal source and converted it into a installable package following the guidelines from [here](https://github.com/openai/gym/blob/master/gym/envs/README.md). \n\nWhy I did this ?\nWell I wanted to try out this environment but the procedure was not very clear in the original source. Moreover [here](https://github.com/EmbersArc/gym) the environment was fused with the OpenAI gym repository so I decided to seperate them so that people who already have gym installed or are using newer version of gym can use this environment. This repository will also provide easy access to this environment.\n\n[Click here for higher quality video](https://gfycat.com/CoarseEmbellishedIsopod) \n\n![](images/showcase.gif) \n\n## Getting Started\n\nThese instructions will get you the environment up and running on your local machine for development purposes. See [FAQ](FAQ.md) section for problems with installation or running.\n\n### Prerequisites\nThings you need to install before installing this project.Please install them before hand it is very important. \n\n```\ngym, pybox2d\n```\n This project heavily depends on OpenAI gym and Box2d so please install them before hand otherwise you might encounter error. A full installation of [gym](https://github.com/openai/gym) is recommended. A quick look over [FAQ](FAQ.md) section is recommended because of some problems with installation of Box2d.\n### Installing\n\nA step by step series of how to get a development environment running.\nYou can use also virtual environment for conflicting dependencies.I personally use [virtualenv](https://virtualenv.pypa.io/en/stable/) for more information look [here](https://github.com/pypa/virtualenv) \n\nFirst install gym\n\n```\npip install gym\n```\n\nand now the custom environment\n\n```\ngit clone https://github.com/Jeetu95/Rocket_Lander_Gym.git\ncd Rocket_Lander_Gym/\npip install .\n\n```\n### Testing out the environment\n\nNow to test whether the environment is working or not run the following code.\n\n###### Note :- The image above is a trained model what you get in this repository is not a trained model but only the gym environment.\n\n```\nimport gym\nimport gym.spaces\nimport rocket_lander_gym\n\nenv = gym.make('RocketLander-v0')\nenv.reset()\n\nPRINT_DEBUG_MSG = True\n\n\nwhile True:\n    env.render()\n    action = env.action_space.sample()\n    observation,reward,done,info =env.step(action)\n\n    if PRINT_DEBUG_MSG:\n        print(\"Action Taken  \",action)\n        print(\"Observation   \",observation)\n        print(\"Reward Gained \",reward)\n        print(\"Info          \",info,end='\\n\\n')\n\n    if done:\n        print(\"Simulation done.\")\n        break\nenv.close()\n```\nTo ommit out the debug messages change ***PRINT_DEBUG_MSG*** to ***False***\n\n## Details About The Project\n\nThe objective of this environment is to land a rocket on a ship. The environment is highly customizable and takes discrete or continuous inputs.\n\n### STATE VARIABLES  \nThe state consists of the following variables:\n- x position  \n- y position  \n- angle  \n- first leg ground contact indicator  \n- second leg ground contact indicator  \n- throttle  \n- engine gimbal  \n  \nIf VEL_STATE is set to true, the velocities are included:  \n- x velocity  \n- y velocity  \n- angular velocity  \n  \nAll state variables are normalized for improved training.\n    \n### CONTROL INPUTS  \nDiscrete control inputs are: \n- gimbal left  \n- gimbal right  \n- throttle up  \n- throttle down  \n- use first control thruster  \n- use second control thruster  \n- no action  \n    \nContinuous control inputs are:  \n- gimbal (left/right)  \n- throttle (up/down)  \n- control thruster (left/right)  \n\n![](images/demo.gif) \n![](images/demo-info.png) \n\n## Authors\n\n* **Sven Niederberger** - *Initial work* - [Sven Niederberger](https://github.com/EmbersArc)\n* **Subhajit Das** - *Wrapping up work* - [Subhajit Das](https://github.com/J)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdsubhajitdas%2Frocket_lander_gym","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdsubhajitdas%2Frocket_lander_gym","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdsubhajitdas%2Frocket_lander_gym/lists"}