nexus-cli icon indicating copy to clipboard operation
nexus-cli copied to clipboard

Points Reduction Making People Sad

Open Sardar-Wajid-Virk opened this issue 1 year ago • 16 comments

Not expecting a merge, just showing this working demo of how webrtc could be used with connect in the future. I provided the react component frontend code too which has a lot of bloat, but it works.

Sardar-Wajid-Virk avatar Dec 12 '24 09:12 Sardar-Wajid-Virk

https://github.com/user-attachments/assets/07cd6820-caa4-4916-8cc4-57fd132ade25

jakethesnake420 avatar Dec 13 '24 03:12 jakethesnake420

https://github.com/user-attachments/assets/d6285d00-e49e-43df-8417-a11c0fc7b68e

jakethesnake420 avatar Dec 13 '24 04:12 jakethesnake420

This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity.

github-actions[bot] avatar Dec 23 '24 02:12 github-actions[bot]

Cool! How well does this work over cell? Ultimately, I'd like to replace snapshot in connect with a live stream.

adeebshihadeh avatar Dec 23 '24 17:12 adeebshihadeh

Cool! How well does this work over cell? Ultimately, I'd like to replace snapshot in connect with a live stream.

It works reliably well. I created my own TURN server using coturn so it relays through that when using mobile data. You obviously need a decent cell connection for live streaming. Even with a bad connection it will still send some frames. WebRTC is robust to connection interruptions but since its using athena, if the websocket connection times out, it will set the end_event and reset everything.

jakethesnake420 avatar Dec 23 '24 21:12 jakethesnake420

@adeebshihadeh The video I posted was using a turn server over mobile hotspot, not the local network.

jakethesnake420 avatar Dec 24 '24 00:12 jakethesnake420

are we able to implement this for connect? this would a great addition or does it add too much server traffic?

morrislee avatar Jan 02 '25 20:01 morrislee

It could put a strain on the servers bandwidth if there was hundreds of simultanious streams. But this could be easily managed. Konik connect has already added support for it for free if you want it.

jakethesnake420 avatar Jan 02 '25 20:01 jakethesnake420

It could put a strain on the servers bandwidth if there was hundreds of simultanious streams. But this could be easily managed. Konik connect has already added support for it for free if you want it.

I am sorry, whats Konik connect? is that a connect fork? How do I use it? Do I also need a different openpilot branch?

morrislee avatar Jan 02 '25 20:01 morrislee

Yea its a connect fork and requires a fork of openpilot. Setup info in the discord https://discord.com/invite/vXG2eq5KSZ

jakethesnake420 avatar Jan 02 '25 20:01 jakethesnake420

This PR has had no activity for 9 days. It will be automatically closed in 2 days if there is no activity.

github-actions[bot] avatar Jan 12 '25 02:01 github-actions[bot]

Gonna mark this as "ignore stale"

@incognitojam up to you if you wanna review and get something merged or you wanna just keep the draft around until we have time to write it ourselves

adeebshihadeh avatar Jan 12 '25 02:01 adeebshihadeh

this is awesome!

royjr avatar Feb 17 '25 21:02 royjr

Also you can implement OpenXR into the frontend for VR support. You can send the commands from the quest controllers over a datachannel. This is how you can do comma body/humanoid teleop with minimal code.

jakethesnake420 avatar Feb 17 '25 23:02 jakethesnake420

https://github.com/user-attachments/assets/6c70d6ba-bfbb-4801-8659-f5e8878fbdb0

jakethesnake420 avatar Apr 27 '25 15:04 jakethesnake420

Do you have a new discord link. Old link is expired for setup.

5igma avatar May 07 '25 17:05 5igma