Coder Social home page Coder Social logo

liwei-cn / evorobotpy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from snolfi/evorobotpy

0.0 1.0 0.0 86.12 MB

A tool to experiment with adaptive (evolutionary and reinforcement learning) robotics

License: GNU General Public License v3.0

Python 57.67% C++ 40.05% C 2.11% Shell 0.16%

evorobotpy's Introduction

evorobotpy

A tool for training robots in simulation through evolutionary and reinforcement learning methods

It includes a guide that gently introduce the topic and explain how to use this and other available tools to train robots in simulation.

All the software required is available ready to be used through the docker container prepared by Vladislav Kurenkov that can be pulled, built and run through the following commands:

# Download the container (CPU version)
docker pull vkurenkov/cognitive-robotics:cpu

# Run container (CPU version)
docker run -it \
  -p 6080:6080 \
  -p 8888:8888 \
  --mount source=cognitive-robotics-opt-volume,target=/opt \
  vkurenkov/cognitive-robotics:cpu
  
# Download the container (GPU version)
docker pull vkurenkov/cognitive-robotics:gpu

# Run container (GPU version)
docker run --gpus all -it \
-p 6080:6080 \
-p 8888:8888 \
--mount source=cognitive-robotics-opt-volume,target=/opt \
vkurenkov/cognitive-robotics:gpu

# To login in the container use the following command
docker ps -a                    # to see the running containers and identify the ID of the evorobotpy container
docker exec -it <id> /bin/bash  # to login in the container

# To logout from the container use:
exit

# You can visualize the graphic rendering from your browser by using the following address
localhost:6080

# to stop a container use:
docker stop <id>

The graphic rendering is realized by using NoVNC (desktop access via browser at localhost:6080). Code editing using VSCode (you can attach to the container using VSCode and edit the source code conveniently -- allows to use IntelliSense and more). You can use Jupyter Notebook, just run jupyter notebook --ip=0.0.0.0 --port=8888 inside a container and you can access it in your browser at localhost:8888. The changes made to the source code are persistent (e.g. you can restart the container and your changes won't be lost)

As an alternative to the docker container, you should clone evorobotpy and install:

  1. Python 3.5+ and the cython, pyglet and matplotlib packages
  2. AI Gym
  3. GNU Scientific Library
  4. Pybullet
  5. Baselines (optional)
  6. Spinningup (optional) See the detailed instructions included in the guide

evorobotpy's People

Contributors

snolfi avatar

Watchers

 avatar

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.