Giter VIP home page Giter VIP logo

pcog's Introduction

Build Overview

There are two main complexities to this build.

  1. We require python-2.7s libraries
  2. We need to build an old version of AI-toolbox because the current version requires C++ 17. We also require three C++ libraries to use AI-toolbox
  3. We need to copy two shared libraries from AI-toolbox to PCog

Prerequisits

This guide requires an ubuntu 16.04 box and python-2.7 installed. It also assumes that you have installed the QCog javacode base and the unity3d test bed.

Dependencies

This command should install all packages required to build and run PCog.

sudo apt-get update
sudo apt-get install libeigen3-dev liblpsolve55-dev python-tk graphviz python-pygraphviz libboost-all-dev build-essential

Building AI-toolbox

In this section we build AI-toolbox so that we can use its shared libraries to run PCog.

First clone AI-toolbox

git clone https://github.com/Ivan1931/AI-Toolbox.git

Now build the libraries:

cd AI-toolbox
git checkout origin/c++14-build
mkdir build
cd build
cmake ..
make

Now you should have the shared libraries located in build directory.

Setting up PCog

First clone PCog

git clone https://github.com/Ivan1931/pcog.git

Copy the build libraries from AI-toolbox to the deps directory in PCog.

cd pcog
cp /path/to/ai-toolbox/build/*.so pcog/deps

If all steps have been setup you can run PCog.

Install the necessary python libraries:

pip install -r .

Finally, run PCog

python -m pcog.__main__

Notes

To run the agent you first have to start the test bed, then start PCog, then start the java agent with the following command:

gradle run -Ppcog

pcog's People

Contributors

ivan1931 avatar

Stargazers

 avatar  avatar  avatar

Watchers

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