All Projects → bark-simulator → bark-ml

bark-simulator / bark-ml

Licence: MIT license
Gym environments and agents for autonomous driving.

Programming Languages

python
139335 projects - #7 most used programming language
C++
36643 projects - #6 most used programming language
Starlark
911 projects

Projects that are alternatives of or similar to bark-ml

modelicagym
Modelica models integration with Open AI Gym
Stars: ✭ 53 (-22.06%)
Mutual labels:  openai-gym, reinforcement-learning-environments
gym-cartpole-swingup
A simple, continuous-control environment for OpenAI Gym
Stars: ✭ 20 (-70.59%)
Mutual labels:  openai-gym, reinforcement-learning-environments
gym-hybrid
Collection of OpenAI parametrized action-space environments.
Stars: ✭ 26 (-61.76%)
Mutual labels:  openai-gym, reinforcement-learning-environments
simple-playgrounds
Simulator for Reinforcement Learning and AI. 2D environments with physics and interactive entities. Agents with rich sensors and actuators.
Stars: ✭ 18 (-73.53%)
Mutual labels:  agents, reinforcement-learning-environments
robo-gym-robot-servers
Repository containing Robot Servers ROS packages
Stars: ✭ 25 (-63.24%)
Mutual labels:  openai-gym, reinforcement-learning-environments
gym-R
An R package providing access to the OpenAI Gym API
Stars: ✭ 21 (-69.12%)
Mutual labels:  openai-gym
SF-GRU
Pedestrian Action Anticipation using Contextual Feature Fusion in Stacked RNNs
Stars: ✭ 43 (-36.76%)
Mutual labels:  autonomous-driving
ZeroSimROSUnity
Robotic simulation in Unity with ROS integration.
Stars: ✭ 112 (+64.71%)
Mutual labels:  reinforcement-learning-environments
scenario
Agent simulation in Jupyter
Stars: ✭ 17 (-75%)
Mutual labels:  agents
glcapsnet
Global-Local Capsule Network (GLCapsNet) is a capsule-based architecture able to provide context-based eye fixation prediction for several autonomous driving scenarios, while offering interpretability both globally and locally.
Stars: ✭ 33 (-51.47%)
Mutual labels:  autonomous-driving
pong-from-pixels
Training a Neural Network to play Pong from pixels
Stars: ✭ 25 (-63.24%)
Mutual labels:  openai-gym
rl trading
No description or website provided.
Stars: ✭ 14 (-79.41%)
Mutual labels:  openai-gym
Depth-Guided-Inpainting
Code for ECCV 2020 "DVI: Depth Guided Video Inpainting for Autonomous Driving"
Stars: ✭ 50 (-26.47%)
Mutual labels:  autonomous-driving
ocsinventory
📚 Curso GRÁTIS OCS Inventory NG e GLPI Help Desk REPOSITÓRIO CONGELADO - Esse repositório não irá mais receber atualizações.
Stars: ✭ 58 (-14.71%)
Mutual labels:  agents
Baidu Lane Segmentation
4th place solution in Baidu Autonomous Driving Lane Segmentation
Stars: ✭ 19 (-72.06%)
Mutual labels:  autonomous-driving
deep rl acrobot
TensorFlow A2C to solve Acrobot, with synchronized parallel environments
Stars: ✭ 32 (-52.94%)
Mutual labels:  openai-gym
iroko
A platform to test reinforcement learning policies in the datacenter setting.
Stars: ✭ 55 (-19.12%)
Mutual labels:  openai-gym
MetaGym
Collection of Reinforcement Learning / Meta Reinforcement Learning Environments.
Stars: ✭ 222 (+226.47%)
Mutual labels:  gym-environments
contextual
Contextual Bandits in R - simulation and evaluation of Multi-Armed Bandit Policies
Stars: ✭ 72 (+5.88%)
Mutual labels:  reinforcement
DRL in CV
A course on Deep Reinforcement Learning in Computer Vision. Visit Website:
Stars: ✭ 59 (-13.24%)
Mutual labels:  reinforcement

Gym Environments and Agents for Autonomous Driving

CI Build Github Contributors Downloads Python Versions Package Versions Package Versions Codacy Badge Environments

BARK-ML

Try it on Google Colab! Open In Colab

BARK-ML offers various OpenAI-Gym environments and reinforcement learning agents for autonomous driving.

Install BARK-ML using pip install bark-ml.

Gym Environments

Highway Scenario

env = gym.make("highway-v0")

The highway scenario is a curved road with four lanes where all vehicles are being controlled by the intelligent driver model (IDM). For more details have a look here.

Available environments:

  • highway-v0: Continuous highway environment
  • highway-v1: Discrete highway environment

BARK-ML Highway Scenario
The highway-v0 environment.

Merging Scenario

env = gym.make("merging-v0")

In the merging scenario, the ego vehicle is placed on the right and its goal is placed on the left lane. All other vehicles are controlled by the MOBIL model. For more details have a look here.

Available environments:

  • merging-v0: Continuous merging environment
  • merging-v1: Discrete merging environment

BARK-ML Merging Scenario
The merging-v0 environment.

Intersection / Unprotected Left Turn

env = gym.make("intersection-v0")

In the intersection scenario, the ego vehicle starts on the bottom-right lane and its goal is set on the top-left lane (unprotected left turn). For more details have a look here.

Available environments:

  • intersection-v0: Continuous intersection environment
  • intersection-v1: Discrete intersection environment

BARK-ML Intersection Scenario
The intersection-v0 environment.

Getting Started

An example using the OpenAi-Gym interface can be found here:

import gym
import numpy as np
# registers bark-ml environments
import bark_ml.environments.gym  # pylint: disable=unused-import

env = gym.make("merging-v0")

initial_state = env.reset()
done = False
while done is False:
  action = np.array([0., 0.]) # acceleration and steering-rate
  observed_state, reward, done, info = env.step(action)
  print(f"Observed state: {observed_state}, "
        f"Action: {action}, Reward: {reward}, Done: {done}")

Building From Source

Clone the repository using git clone https://github.com/bark-simulator/bark-ml, install the virtual python environment and activate it afterwards using:

bash utils/install.sh
source utils/dev_into.sh

Now - once in the virtual python environment - you can build any of the libraries or execute binaries within BARK-ML using Bazel. To run the getting started example from above, use the following command: bazel run //examples:continuous_env.

Documentation

Read the documentation online.

Publications

License

BARK-ML code is distributed under MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].