Coder Social home page Coder Social logo

nullspace-colombia / unray-bridge Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 2.0 2.74 MB

Rllib framework for using Unreal Engine 5 (UE5) as external environment for Reinforced Learning training process

License: MIT License

Python 89.87% HTML 2.46% CSS 1.30% JavaScript 6.37%
reinforcement-learning rllib unreal-engine-5

unray-bridge's People

Contributors

acmoral avatar gdiaz16 avatar mora200217 avatar vahernandezmo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

varamishitha

unray-bridge's Issues

need little help

Hi,
I want to create RL Based Driving Car System, i used Cartpole BP and set everything but i think something was missed in my Implementation,
how to define minus reward or using trace channel to Observation system??!!
I have RL based car and Goal actor in my scene, i used distance between car and goal actor and connected value to Observation function.
Screenshot 2023-11-18 125304
Screenshot 2023-11-18 125333
Screenshot 2023-11-18 125344
Screenshot 2023-11-18 125351
Thank You for your help
Best Regards.

Documentation clarification

Hey Team,

I'm running into issues trying out both examples you have provided.

Issue

When running in command prompt python parallel_multiagentArena.py
I receive this error:
OverflowError: int too big to convert
And when running in command prompt python main_cartpole.py
I receive this error
[ CONNECTION ] connecting to localhost port 10010
Trying to connect...
Trying to connect...
Trying to connect...
Trying to connect...
Connection Timeout!

What's interesting is when running in command prompt netstat -a | findstr :10011 I do get a response from UE5.3
TCP 0.0.0.0:10011 www:0 LISTENING

Steps to reproduce

Create a new VirtualEnv with Anaconda 3.

  1. Use Python 3.10.x (have tried 3.8.x as well)
  2. git clone https://github.com/Nullspace-Colombia/unray-bridge.git
    cd unray-bridge
    pip install -r requirements.txt
    pip install tensorflow
  3. In Anaconda 3 select your new Virtual Environment and click the green play button and select Open Terminal
  4. Enable the UE 5.3 plugin Remote Control API
  5. Restart UE 5.3
  6. Inside Project Settings, select Plugins - Remote Control
  7. Under Remote Control WebSocket Server Port, enter in 10011
  8. Select map MultiAgentArena
  9. Press the Green Play button in the UE 5.3 Editor
  10. In your Terminal (command prompt)
  11. Run in command prompt python main_multiagentArena.py
  12. Wait for error

Hardware

  • Intel Core i9 12900KF
  • ASUS TUF GAMING Z690-PLUS WIFI D4
  • Corsair 32 GB DDR4 @3200mhz
  • Samsung SSD 980 PRO 2TB
  • NVIDIA GeForce RTX 3090

README Suggestion. Provide instruction to update blueprints port variables to match the ports in their respective Python examples

Suggestions for clearer instruction for users exploring Unray examples

Cartpole Example:

  1. Change the port in Connector_SA from 9443 to 10010 to match main_cartpole.py requirements

Before:
image
After:
image

Multiagent Example

  1. Change the port in Connector_MA from 9443 to 10010
  2. Change the port in MultiAgent_Env from 9443 to 10010
  3. Change the port in MultiAgentArena from 9443|0 to 10011 to match main_multiagentArena.py requirements. Ensure the second Base Port under Class Defaults is 10010 which is pulled from MultiAgent_Env

Before:
image
After:
image

Before:
image
After:
image

Before:
image
After:
image

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.