Giter Site home page Giter Site logo

pixelate-22-sample-arena's Introduction

Pixelate '22 Sample Arena

Installation Guidelines

Before installing this arena, you need to download certain modules on which it is dependent. We strongly recommend using a distribution of Linux as your operating system for this event. Windows installations tend to be a hassle and require, in some instances, quite a bit of time and effort to complete.

  1. Although not compulsory, we strongly recommend creating a virtual environment specific to this project. This will help in package management and for decluttering your workspace. A simple way to create a virtual environment is as follows:

    python3 -m venv <Env_Name>

    Activation and deactivation of your virtual environment, will be done as specified here. Scroll down to the table where the activation method for various operating systems is provided. Deactivation, in most cases, can be done by simply typing deactivate while being in in the virtual environment.

  2. Once you activate your virtual environment, you will have to install the various dependencies of this project. We have simplified this process for you. Just follow the following steps:

    • Download/Clone this repository on to your local machine.

    • Navigate to the root folder of this repository through your terminal.

    • Execute the following command in your terminal.

      pip install -e pixelate_arena
    • To check whether the installation has been successful, you can refer to our guide/cheatsheet to know how to build the gym in your own python script as well as use the utility functions.

In case there are problems with the PyBullet installation, you can refer to this guide.

Using the Arena

  1. You will have to import the package pix_arena, which will be available only if you've completed step 1 in the Installation Guidelines. The arena can be initialized by using:
env = gym.make("pixelate_arena-v0")
  1. Then, you will have to create the working loop, as is normally done in pybullet (using stepSimulation()).

  2. The functions of the environment, available to you for various purposes, are as follows. Please go through the examples of the functions in the examples folder, if you wish to know their arguments and/or return values.

    • env.camera_feed()
      This will return an RGB image of the arena as if a camera was placed on top of the arena.
    • env.remove_car()
      This will be used to remove the car from the arena, in case you want to have a good look at it.
    • env.respawn_car()
      This will be used to respawn the car into the arena, only after removing it.
    • env.move_husky()
      This will be used to give the motor velocity to each wheel individually of the car.
    • env.unlock_antidotes()
      This will be used to reveal the locations of antidotes as specified in the PS.
    • env.reset() This will reset the whole arena. This function cannot be used for your final submission.
  3. You can refer the file function_info.py to see the documentation of the different functions and aruco_test.py to see the detection of aruco marker.

pixelate-22-sample-arena's People

Contributors

dhruxy avatar terabyte17 avatar astitva22 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.