Coder Social home page Coder Social logo

mor's Introduction

MOR

Multi-Objective Robotics

Description

Many real-world problems have conflicting objectives, however, it is difficult to design a single reward function that optimally combines all objectives. To address this, we will simultaneously and independently optimize all solutions on the Pareto front. This project will investigate how to implement and improve the existing MO-CMA-ES algorithm to operate a Baxter robot quickly and adaptively in production for a multi-objective problem such as collision avoidance.

Setup Docker

  1. Install Docker and docker login
  2. Source docker.sh file (Documentation at bottom)

Run NES Algorithm

This will run the default NES Algorithm with the parameters in Config.yaml

Local Machine

  1. Clone this directory
  2. cd MOR/
  3. Run python train <CONFIG_FILENAME>.yaml to run the algorithm in the foreground (append an & at the end to run in the background)
    • Use <CONFIG_FILENAME> = "Config" to run the default Maze example
    • Check other config files in cfg/ for other options, or write your own .yaml config file and add it to cfg/.
    • Resolve any dependecy issues that may arise
      • Linux/Mac OSX: sudo -H pip install numpy tensorflow matplotlib pyyaml

Docker Container (Recommended)

  1. Clone this directory
  2. cd MOR/
  3. Run docker_build mor
  4. Run docker_run_link_gazebo mor1 main mor
  5. Run python train <CONFIG_FILENAME>.yaml to run the algorithm in the foreground (append an & at the end to run in the background)
    • Use <CONFIG_FILENAME> = "Config" to run the default Maze example
    • Check other config files in cfg/ for other options, or write your own .yaml config file and add it to cfg/.

Results

  • Check the ext/ directory for your output data
  • The .log file contains the problem state, the reward function, and the results of each individual of each population.
  • The .yaml file contains the parameterws used during training
  • The .png files are graphs of the rewards/success per population.

Bash command usage

  • docker_build <TAG>: Builds a new container with the given tag name
  • docker_run <NAME> <TAG>: Runs the container with the given tag and labels it with the given name
  • docker_run_link <NAME> main <TAG>: Same as run above, but links files between host's working directory and the working directory (main) in the container using a docker volume
  • docker_run_link_gazebo <NAME> main <TAG>: Same as above, but with Gazebo enabled between remote and local hosts.
  • docker_inspect <NAME>: Describes the volume link created by the above command
  • docker_stop <NAME>: Pauses the specified docker container
  • docker_exec <NAME>: SSH's into the container
  • docker_rm <NAME>: Removes a specified container
  • docker_ls: Lists all containers
  • docker_rm_all: Removes all containers

mor's People

Contributors

felixs8696 avatar wuisawesome avatar

Watchers

 avatar  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.