-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ui): Browser Based UI for Control Robot #601
Open
jackvial
wants to merge
42
commits into
huggingface:main
Choose a base branch
from
jackvial:control-robot-browser-ui
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,036
−106
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…olled from the browser ui
jackvial
changed the title
Browser Based UI
feat(ui): Browser Based UI for Control Robot
Dec 28, 2024
I didn't test, but it's cool. I would help you with it when we finish with Hil-SERL |
That sounds great, thank you 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this does
https://www.youtube.com/watch?v=mSybeh16ma4
Adds a browser based UI for recording datasets, and teleoperation.
How It Works
LeRobot -> Browser UI Commutation
control_robot.py
uses ZeroMQ to publish observations (images and robot state) as JSON to TCP socket on port 5555browser_ui_server.py
uses ZeroMQ to listen for messages on TCP socket port 5555browser_ui_server.py
sends observations to the browser using socketiobrowser_ui.html
listens for the socketio events and renders the observationsBrowser UI -> LeRobot Communication
browser_ui.html
listens for keyboard events or button events and sends those events tobrowser_ui_server.py
browser_ui_server.py
uses ZeroMQ to send the keyboard events to TCP socket port 5556control_robot.py
listens for keyboard events on TCP socket port 5556Why
pynput
inis_headless
will always throwHow To Test
pip install -e ."[koch, test]"
to install the new dependenciesflask-socketio
andpyzmq
python lerobot/scripts/browser_ui_server.py
http://localhost:8000
in your browserhttp://localhost:8000
on that machine. If your remote machine is on your local network don't need to forward the port and can got to the UI athttp://{remote-machine-private-ip}:8000
For VSCode Users
Add this to your
.vscode/launch.json
. You might need to change the change the venv path.My Koch Robot Config
lerobot/configs/robot/koch_jack.yaml