Giter Site home page Giter Site logo

wwwshwww / task_on_nav_env Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.04 MB

robo-gym environment of locomotion task using NavStack in randomized indoor simulation space

Jupyter Notebook 96.46% Python 3.46% Dockerfile 0.08%
robotics reinforcement-learning-environments robo-gym navigation-stack openai-gym

task_on_nav_env's Introduction

task_on_nav_env

Installation

Docker

This Environment side can use from docker image below.
moyash/robo-gym-env-jupyter:cuberoom

Usage:

docker run --gpus all --user=root -p 8888:8888 moyash/robo-gym-env-jupyter:cuberoom jupyter lab --allow-root --LabApp.token='' --ip='0.0.0.0'

You can use this environment with jupyter lab by open http://localhost:8888 on your browser.

Manually

git clone https://github.com/jr-robotics/robo-gym.git
git clone https://github.com/wwwshwww/task_on_nav_env.git
pip install -e ./robo-gym
cp -r task_on_nav_env/mir_nav robo-gym/robo_gym/envs/
cat task_on_nav_env/env_registration1 >> robo-gym/robo_gym/__init__.py
cat task_on_nav_env/env_registration2 >> robo-gym/robo_gym/envs/__init__.py

If using a slower machine, run below as well. Have to change path that will be placed to paste to appropriate place of robo_gym_sever_modules installed.

# may be unnecessary
cp task_on_nav_env/server_modules/robot_server/* /usr/local/lib/python3.6/dist-packages/robo_gym_server_modules/robot_server/
cp task_on_nav_env/server_modules/server_manager/* /usr/local/lib/python3.6/dist-packages/robo_gym_server_modules/server_manager/

Details

Write you later.

test code โ†“

import gym
import robo_gym
from robo_gym.wrappers.exception_handling import ExceptionHandling
import numpy as np

env_id = 'CubeRoomSearchLikeContinuously-v0'
# env_id = 'NoObstacleNavigationMir100Sim-v0'
# target_ip = '10.244.2.247'
target_ip = 'robot-server'

# initialize environment
env = gym.make(env_id, ip=target_ip, gui=True)
env = ExceptionHandling(env)

state = env.reset(new_room=True, new_agent_pose=True)

Robot Server Side

https://github.com/wwwshwww/task_on_nav_robot_server

task_on_nav_env's People

Contributors

wwwshwww avatar

Watchers

 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.