KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
RLExamples
★ 46
Open GitHub ↗
PotoTwin Reinforcement Learning Examples
Download README (.md)
Explore Similar Repositories
Python-Fundamentals
:
Jupyter Notebooks for How to Think Like a Computer Scientist - Learning with Python 3 (RLE) Textbook
RLEP
:
RL with Experience Replay
TSCrunch
:
An optimal, byte-aligned, LZ+RLE hybrid encoder, designed to maximize decoding speed on NMOS 6502 and derived CPUs
RLE-based-Voxel-Raycasting
:
CUDA based Voxel Raycasting - Paper: Efficient, High-Quality, GPU-Based Visualization of Voxelized Surface Data
hypersonic-rle-kit
:
The fastest Run-Length-Encoding on the Planet (for x64)
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
RLExamples
?
Download (.md)
<div align="center"> <img width="3000" height="1000" alt="prototwin" src="https://github.com/user-attachments/assets/0cb6efd9-0685-4ca1-b608-e95aba4f68c5" /> </div> <br> <div align="center"> <a href="https://pypi.org/project/prototwin/"><img src="https://img.shields.io/pypi/v/prototwin.svg" alt="PyPI Version"/></a> <a href="https://pypi.org/project/prototwin-gymnasium/"><img src="https://img.shields.io/pypi/v/prototwin-gymnasium.svg" alt="PyPI Version"/></a> <a href="https://github.com/prototwin/RLExamples/stargazers"><img src="https://img.shields.io/github/stars/prototwin/RLExamples.svg?style=social&label=Stars" alt="GitHub Stars"/></a> <a href="https://twitter.com/prototwin"><img src="https://img.shields.io/twitter/follow/prototwin?style=social" alt="Follow on Twitter"/></a> <a href="https://linkedin.com/company/prototwin"><img src="https://img.shields.io/badge/LinkedIn-0077B5?logo=LinkedIn" alt="Follow on LinkedIn"/></a> <a href="https://youtube.com/@prototwin"><img src="https://img.shields.io/badge/YouTube-red?logo=youtube&logoColor=white" alt="Subscribe on YouTube"/></a> </div> <h4 align="center"> [Website](https://prototwin.com/) | [Documentation](https://prototwin.com/docs) | [Community Forum](https://community.prototwin.com/) | [Sign Up](https://prototwin.com/account/signup) </h4> <div id="user-content-toc"> <ul align="center" style="list-style: none;"> <summary> <h1>ProtoTwin Reinforcement Learning Examples</h1> </summary> </ul> </div> --- ProtoTwin is an online simulation software for robotics and industrial automation. This repository provides a set of examples that you can use with ProtoTwin Connect to train RL agents. To run these example models, you will first need to create a ProtoTwin [account](https://prototwin.com/account/signup) and then download the ProtoTwin Connect desktop application. The following OS are supported: - Windows 10/11 on x64 and Arm - MacOS on Apple Silicon - Linux on x64 ## Clone Repository Clone the repository by running the following command: ``` git clone https://github.com/prototwin/RLExamples.git ``` ## Install Dependencies You need to install the following Python packages: ``` pip install prototwin-gymnasium pip install tensorboard ``` The [prototwin package](https://pypi.org/project/prototwin/) provides a client for starting and connecting to an instance of ProtoTwin Connect. This client may be used to issue commands to load a ProtoTwin model, step the simulation forward in time by one time-step, read signal values and write signal values. The [prototwin gymnasium package](https://pypi.org/project/prototwin-gymnasium/) provides vectorized and non-vectorized base environments for Gymnasium. ## Examples ### CartPole V1 ProtoTwin single inverted pendulum (cartpole) tasked with swinging the pole up and balancing it. <p> <img src="https://github.com/user-attachments/assets/ef6117c0-356e-498d-a78d-5cefa474f02e" alt="CartPoleV1" width="1000" style="margin-bottom: 50px;" /> </p> To train the cartpole-v1 model: ``` cd cartpole-v1 python cartpole-v1.py ``` ### CartPole V2 ProtoTwin cartpole v2 has reduced acceleration in the cart and domain randomization compared to v1 (designed for sim-to-real). <p> <img src="https://github.com/user-attachments/assets/51b73b06-10ff-4ede-9715-a0372c095cc2" alt="CartPoleV2" width="1000" /> </p> To train the cartpole-v2 model: ``` cd cartpole-v2 python cartpole-v2.py ``` ### Bipedal Robot ProtoTwin bipedal robot tasked with walking forward. <p> <img src="https://github.com/user-attachments/assets/7c9b973f-2bd4-4dbb-8947-a962fb8ebf23" alt="Bipedal" width="1000" /> </p> To train the bipedal model: ``` cd bipedal python bipedal.py ``` ### Quadruped Robot Handstand Unitree Go2 quadruped robot tasked with performing a handstand. <p> <img src="https://github.com/user-attachments/assets/6d6cad5f-826c-4385-8694-3a905b325127" alt="Handstand" width="1000" /> </p> To train the handstand model: ``` cd handstand python handstand.py ``` ### Robotic Ping Pong uFactory xArm 6 robot tasked with bouncing a ping pong ball to the target height for as long as possible. <p> <img src="https://github.com/user-attachments/assets/b8773a11-5505-4754-8703-030c6b92b8ef" alt="PingPong" width="1000" /> </p> To train the pingpong model: ``` cd pingpong python pingpong.py ``` ### Quadrotor Drone Quadrotor drone tasked with hovering to a randomly initialized target position marked by a yellow sphere. <p> <img src="https://github.com/user-attachments/assets/a96540f0-d555-4818-af51-0b55756e6d62" alt="Quadrotor" width="1000" /> </p> To train the quadrotor model: ``` cd quadrotor python quadrotor.py ```