Coder Social home page Coder Social logo

jderobot_gsoc's Introduction

JDERobot GSoC 2020 Challenges

Disclaimer

All the work in this repository is my original creation. Including the video and image links attached inthis document

File Structure

This is the repository for submitting the GSoC 2020 challenge code for JDERobot Academy.

The file structure of the submission is as follows:-

./JDERobot_GSoC
├── README.md
├── src
│   ├── academy_challenge
│   │   ├── gsoc2020-academy_test.pdf
│   │   └── MyAlgorithm.py
│   ├── cpp_challenge
│   │   ├── gsoc2020-c++_test.pdf
│   │   └── src
│   │       ├── CMakeLists.txt
│   │       ├── cpp_challenge.cpp
│   │       └── input.txt
│   └── python_challenge
│       ├── gsoc2020-python_test.pdf
│       └── scripts
│           ├── game_of_life.py
│           ├── gol_application.py
│           ├── patterns.json
│           └── test.py
└── submission_images
    ├── GOL1.png
    └── GOL2.png



Academy Challenge Solution + Follow Line Exercise Solution

I have solved one of the academy challenges and the follow_line exercise using a PD controller. The video of the same is uploaded to youtube and can be accessed using the following link:-

Video Solution Here


C++ Challenge Solution

The C++ Challenge is present in the folder cpp_challenge/src. The CMakeLists.txt file is used to generate an executable for the program. The following are the instructions to run the code:-

cd src/cpp_challenge/src
cmake CMakeLists.txt
make

Edit the input file appropriately for setting the input. To tun the executable, run the following

./exec

Example of the code is:-

INPUT

##.##.####.#
##.#..###..#
####..###.##
###...###..#
####..#...##

OUTPUT

10
##.##0####.#
##.#21###..#
####34###.##
###985###..#
####76#...##

Python Challenge Solution

The Python Challenge is present in python_challenge/scripts folder. The script is run using python3, and uses numpy as a dependency. Overall the result is displyed in teh terminal, but for easy of visualisation, a matplotlib plot is added.

To test the challenge run the following commands in a terminal:-

cd src/python_challenge/scripts
#TEST SCRIPT
python3 test.py

#APPLICATION SCRIPT
python3 gol_application.py

Sample images of the environment in matplotlib are shown below:-


jderobot_gsoc's People

Contributors

mihirk284 avatar

Stargazers

 avatar

Watchers

James Cloos 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.