Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brianlesko/car-sim-ps5
Control a vehicle simulation with a ps5 remote
https://github.com/brianlesko/car-sim-ps5
Last synced: about 20 hours ago
JSON representation
Control a vehicle simulation with a ps5 remote
- Host: GitHub
- URL: https://github.com/brianlesko/car-sim-ps5
- Owner: BrianLesko
- License: mit
- Created: 2024-01-23T23:33:50.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-15T02:11:22.000Z (9 months ago)
- Last Synced: 2024-02-15T03:25:01.931Z (9 months ago)
- Language: Python
- Size: 7.99 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Rendering a robot in a web app
This code implements the physics simulation framework pybullet and renders a robot. This project is written in [Pure Python]() in under 100 lines of code. Created by Brian Lesko for Learning Purposes.
## Usage
Run the following commands:
```
pip install --upgrade streamlit libusb hidapi matplotlib pybullet numpy
streamlit run https://github.com/BrianLesko/PS5-rbot-sim/blob/main/app.py
```This will start the local Streamlit server, and you can access the chatbot by opening a web browser and navigating to `http://localhost:8501`.
## Repository Structure
```
repository/
├── app.py # the code and UI integrated together live here
├── customize_gui # class for adding gui elements
├── requirements.txt # the python packages needed to run locally
├── .gitignore # includes the local virtual environment named my_env
├── .streamlit/
│ └── config.toml # theme info for the UI
└── docs/
└── preview.png # preview photo for Github
```
## Topics
I first discovered pybullet, the simulation engine and rendering tools from a google project called Kubric, which could provide semi realistic videos. Thinking this was cool, I decided to get a small scale pybullet sim viewable from my favorite web app development library, Streamlit
```
Simulation | Pybullet | Physics simulation
Python | Streamlit | Git | Low Code UI | control | real-time | real time control
Mechanical engineer | Robotics engineer
```
╭━━╮╭━━━┳━━┳━━━┳━╮╱╭╮ ╭╮╱╱╭━━━┳━━━┳╮╭━┳━━━╮
┃╭╮┃┃╭━╮┣┫┣┫╭━╮┃┃╰╮┃┃ ┃┃╱╱┃╭━━┫╭━╮┃┃┃╭┫╭━╮┃
┃╰╯╰┫╰━╯┃┃┃┃┃╱┃┃╭╮╰╯┃ ┃┃╱╱┃╰━━┫╰━━┫╰╯╯┃┃╱┃┃
┃╭━╮┃╭╮╭╯┃┃┃╰━╯┃┃╰╮┃┃ ┃┃╱╭┫╭━━┻━━╮┃╭╮┃┃┃╱┃┃
┃╰━╯┃┃┃╰┳┫┣┫╭━╮┃┃╱┃┃┃ ┃╰━╯┃╰━━┫╰━╯┃┃┃╰┫╰━╯┃
╰━━━┻╯╰━┻━━┻╯╱╰┻╯╱╰━╯ ╰━━━┻━━━┻━━━┻╯╰━┻━━━╯
follow all of these for a cookie :)