Giter VIP home page Giter VIP logo

imaze-practice-arena's Introduction

iMaze-practice-Arena

This is a repository which contains practice arena for the competition iMaze conducted by Robotics Club, IIT BHU.

Installation

As this competition is going to be conducted in webots simulator, you may follow these instructions to install webots and python locally

Windows

Webots Installation

  • Download webots setup file(shown below) from the official website - https://cyberbotics.com/

    win-1

  • Open the file and choose Install for me only option

    win-2

  • And then follow the prompts (Next, Next, ..., Install).

Python installation : (If Python is not already installed)

  • Open the https://www.python.org/downloads/ in your web browser. Navigate to the Downloads tab for Windows. Choose any Python 3.7.x

  • Click on the link to download Windows x86 executable installer if you are using a 32-bit installer. In case your Windows installation is a 64-bit system, then download Windows x86-64 executable installer(shown below).

  • Once the installer is downloaded, run the Python installer.

  • Make sure you select "Add Python3.7 to PATH" option before starting the installation.

  • You can now start the installation of Python by clicking on Install Now.

Linux

Webots Installation

  • Download .deb file (shown below) from the official website - https://cyberbotics.com/

    lin-1

  • Go to the directory where you have downloaded the file and just double click the file. You can see something like below, just click install

    lin-2

Python installation : (Only if python is not installed previously)

  • Update the packages list and install the prerequisites:

    $ sudo apt update
    $ sudo apt install software-properties-common
    
  • Add the deadsnakes PPA to your system’s sources list:

    $ sudo add-apt-repository ppa:deadsnakes/ppa
    
  • you can install Python 3.7 by executing:

    $ sudo apt install python3.7
    
  • Verify that the installation was successful by typing:

    python3 --version
    

Usage

Now that you have downloaded webots in your computer, you may follow these instruction to clone this repository, load the arena, create a custom controller and connect it to robot.

If you don't have git pre installed in your system,then simply download the zip file by clicking the green 'code' button above and then extract it.

Clone this repository

  • Firstly, install git in your computer. You may follow these tutorials - Windows | Linux

  • Then open command prompt (in windows) or terminal (in linux) and clone this repository

    git clone https://github.com/Robotics-Club-IIT-BHU/iMaze-practice-Arena.git

Load the arena

  • Open the webots simulator and you are expected to see a window as shown below

    web-1

  • Click on File then Open World as shown below

    web-2

  • Go to the folder where you have cloned this repository and select PraticeArena.wbt file (inside the folder named worlds) as shown below

    web-3

Making a Custom Controller

  • Once you have opened the World, click on Wizards -> New Robot Controller

    one

  • Click on Next

    two

  • Select Python and then click Next

    three

  • Provide a Name for your Controller

    four

  • Click on Finish

    five

Connecting your Controller to the Robot

  • On the left side of the screen navigate to E-puck -> controller "PS2_controller" and then click on Select

    six

  • From the available options choose your controller and then click OK

    seven

imaze-practice-arena's People

Contributors

blaze116 avatar lok-i avatar niranths avatar shubhdeep22 avatar terabyte17 avatar vstark21 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.