Giter Club home page Giter Club logo

explorer's Introduction

Introduce explorer

Easy to use Object Nav framework built on habitat and ray. explorer harnesses avaliable cpu/gpu resources and provides user-friendly apis for batched Object Navigation simulation. Empowered by ray, user can have good control over their hardware resources without the burden to write their python multiprocessing codes.

Workflow

Habitat simulation backend is logically divided into actor and environment components. Environ provides current observations according to actor's equipped sensor devices, and actor makes its decision of what the next action is in light of the received observations. Environment then updates observations after taking the next action. The loop proceeds until simulation ends.

Use Example

from explorer.register import *
from explorer.agent import Actor
from explorer.environ import Env
from explorer.agent.sensor import RGBCamera, SensorPos
from explorer.simulation.core import run_simulation
camera = RGBCamera(name='camera1', resolution=[512, 512], position=SensorPos.LEFT)

# user config their actors with register apis
@register_moves('turn_left', 'turn_right')
@register_resources(num_cpu=2, num_gpu=1)
@register_sensors(camera)
class MyActor(Actor):
    def __init__(self):
        super().__init__()
    def step(self, observes):
        # your impl goes here
        return action

env_path = '<your_env_path>'
batch_size = 10
actors = [MyActor() for _ in range(batch_size)]
envs = [Env(env_path) for _ in range(batch_size)]
config = <your_configure_dict>
run_simulation(actors, envs, config)

Code Structure

input:
    a list of actors
    a list of environs
[entry_point]
       run_simulation()
     prepare contexts
            |
            |
        Dispatcher
dispatch those contexts to [ray nodes]---collect--<<--
            |                            futures     |
            |                                        |                   
    Context Exec Engine + [Model Executor]        send back
            |                                        | 
            |________________________________________|  

explorer's People

Contributors

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