Grenadingue / 2-wheels-1-arm

A genetic algorithm searching for solutions to move a simple robot straightforward in a virtual environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2-wheels-1-arm

A genetic algorithm searching for solutions to move a simple robot straightforward in a virtual environment

Dependencies

  • v-rep pro edu (virtual robot experimentation platform)
  • node.js + npm + node-gyp
  • g++ / clang++
  • cmake + make
  • boost libraries

Documentation

How to

/!\ Important note: npm commands should be executed from repository root directory

Setup virtual environment

  • Download and install v-rep
  • Open v-rep then load 2w1a.ttt

Build and use sample code?

Available sample projects:

  • v-rep remote api test with 2w1a in python and c++
  • String finder genetic algorithm in c++

See sample code README

Use project?

Install

  • npm install

Launch

  • v-rep virtual environment need to be setup
  • npm start

Development notes

How to launch server in dev mode?

  • v-rep virtual environment need to be setup
  • npm run dev

Note: Server will automaticaly restart after file change Note2: Works for node.js files, does not work for c++ files

How to build/rebuild C++ side?

Node.js algorithm module
  • npm run build_algo
  • npm run rebuild_algo
Executable development algorithm
  • npm run build_algo_dev
  • npm run rebuild_algo_dev

How to launch development executable algorithm?

  • v-rep virtual environment need to be setup
  • Execute algorithm/build_dev/2w1a_dev

Config file

  • You have to do your own config file using the config/base.example.json
  • cp config/base.example.json config/base.json

About

A genetic algorithm searching for solutions to move a simple robot straightforward in a virtual environment

License:GNU General Public License v3.0


Languages

Language:C 72.4%Language:Python 18.2%Language:C++ 6.4%Language:JavaScript 0.9%Language:Objective-C 0.6%Language:Makefile 0.6%Language:HTML 0.4%Language:CSS 0.2%Language:CMake 0.2%Language:QMake 0.0%