Giter Club home page Giter Club logo

pyrfuniverse's Introduction

pyrfuniverse

Pypi

pyrfuniverse is a python package used to interact with RFUniverse simulation environment. It is developed with reference to ML-Agents and produce new features.

Documentation

Homepage

Installation

1. Create a new conda virtual environment and activate it.

conda create -n rfuniverse python=3.10 -y
conda activate rfuniverse

2. Clone this repository and move here in command line.

git clone https://github.com/mvig-robotflow/pyrfuniverse.git
cd pyrfuniverse

3. Install the python requirements.

pip install -r requirements.txt

For users in China, please remember to change mirror by the following command. This can significantly accelerate downloading speed.

pip install -i https://mirrors.aliyun.com/pypi/simple -r requirements.txt

4. Install

If you want to use pyrfuniverse without modifying source code, run the following commands to copy source code to your conda directory.

python setup.py install

Otherwise, you may want to modify source code, then run the following command to construct the link in your conda directory.

pip install -e .

Headless mode

If you want to run RFUniverse on ubuntu server, you will need headless mode so that no GUI window will be generated. To fix this, we use virtual display to render on virtual devices, inspired by furniture. You will need the following commands to configure your ubuntu server

sudo apt-get install xserver-xorg libglu1-mesa-dev freeglut3-dev mesa-common-dev libxmu-dev libxi-dev

Then, restart your server and connect your server to a screen. The screen won't render anything, but there must be a display device connecting to your server.

# Configure nvidia-x
sudo nvidia-xconfig -a --use-display-device=None --virtual=1280x1024

# Configure environment variable
export DISPLAY=:1

# Launch a virtual display
sudo /usr/bin/X :1 &

Here's a demo. I strongly recommend you run this demo first to test your virtual display configuration.

After this, you can use RFUniverse on ubuntu server freely!

pyrfuniverse's People

Contributors

ghzh26252 avatar panoanx avatar simon-fuhaoyuan avatar yorucathy avatar electronicelephant avatar learner209 avatar davidliyutong 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.