Cov txheej txheem:

Browser Streaming Neeg Hlau Nrog GoPiGo3: 5 Cov Kauj Ruam
Browser Streaming Neeg Hlau Nrog GoPiGo3: 5 Cov Kauj Ruam

Video: Browser Streaming Neeg Hlau Nrog GoPiGo3: 5 Cov Kauj Ruam

Video: Browser Streaming Neeg Hlau Nrog GoPiGo3: 5 Cov Kauj Ruam
Video: Xov xwm_muas xeem lis nyob suav teb-xa xov nrhiav niam thiab txiv nyiaj pov lis 24/10/2021 2024, Kaum ib hlis
Anonim
Browser Streaming Neeg Hlau Nrog GoPiGo3
Browser Streaming Neeg Hlau Nrog GoPiGo3

Hauv qhov haujlwm siab no nrog GoPiGo3 Raspberry Pi Robot peb tsim Browser Video streaming neeg hlau uas ntws cov vis dis aus nyob rau browser thiab tuaj yeem tswj tau los ntawm browser.

Hauv qhov haujlwm no peb siv Raspberry Pi Lub Koob Yees Duab nrog GoPiGo3. Koj tuaj yeem tswj tus neeg hlau siv tus tswj hwm ntawm qhov browser raws li cov vis dis aus nyob ncaj qha rau ntawm qhov browser. Cov vis dis aus zoo yog zoo heev thiab latency ntawm cov vis dis aus qis, ua qhov no zoo tshaj plaws rau kev ua yeeb yaj kiab nyob hauv cov neeg hlau.

Kauj Ruam 1: Qhov Yuav Tsum Tau

Kho vajtse xav tau

  • Ib qho ua tiav GoPiGo3
  • Ib Raspberry Pi
  • Raspberry Pi Lub Koob Yees Duab Module

Kauj Ruam 2: Txuas Lub Koob Yees Duab Module

Txuas Lub Koob Yees Duab Module
Txuas Lub Koob Yees Duab Module

Txuas Raspberry Pi lub koob yees duab module mus rau qhov chaw nres nkoj ntawm Raspberry Pi. Yog xav paub ntau ntxiv yuav ua li cas txuas lub koob yees duab, saib peb cov lus qhia ntawm no.

Kauj Ruam 3: Teeb tsa GoPiGo Video Streaming Robot

Teeb tsa GoPiGo Video Streaming Robot
Teeb tsa GoPiGo Video Streaming Robot

Koj yuav tsum tau cloned GoPiGo3 github code rau koj li Raspberry Pi. Nruab Pi lub koob yees duab kev vam khom thiab Flask los ntawm kev ua haujlwm install.sh tsab ntawv:

sudo bash install.sh

Reboot koj Pi.

Kauj Ruam 4: teeb tsa kom khiav ntawm Boot

Teeb kom khiav ntawm Boot
Teeb kom khiav ntawm Boot

Koj tuaj yeem khiav cov server rau khau raj yog li koj tsis tas yuav khiav nws tus kheej. Siv qhov hais kom ua

install_startup.sh

thiab qhov no yuav tsum pib lub tshuab raj flask ntawm khau raj. Koj yuav tsum muaj peev xwm txuas rau tus neeg hlau siv "https://dex.local: 5000" lossis yog siv Cinch teeb tsa, koj tuaj yeem siv "https://10.10.10.10:5000"

Koj tuaj yeem teeb tsa Cinch, uas yuav cia li teeb lub wifi nkag mus, nrog cov lus txib

sudo bash /home/pi/di_update/Raspbian_For_Robots/upd_script/wifi/cinch_setup.sh

Thaum rov pib dua, txuas rau WiFi kev pabcuam "Dex".

Kauj ruam 5: Khiav qhov Project

Pib server los ntawm kev ntaus cov lus txib hauv qab no:

sudo python3 flask_server.py

Nws yuav siv ob peb feeb rau cov neeg rau zaub mov kom tua hluav taws. Qhov chaw nres nkoj thiab chaw nyob yuav tshwm nyob rau ntawd. Los ntawm lub neej ntawd, chaw nres nkoj tau teeb tsa rau 5000.

Yog tias koj muaj Raspbian Rau Robots teeb tsa, tom qab ntawd mus rau https://dex.local: 5000 qhov chaw nyob yuav txaus. Nco ntsoov tias koj muaj koj lub xov tooj ntawm tes / laptop ntawm tib lub network zoo li koj GoPiGo3. Txwv tsis pub, koj yuav tsis tuaj yeem nkag mus rau nws.

Pom zoo: