mayuanjason / Building-Jetbot-From-Scratch

Building Jetbot from scratch
32 stars 9 forks source link

Camera Image works but unable to move Jetbot #5

Open ARLunan opened 5 years ago

ARLunan commented 5 years ago

Installed mbot successfully on a Jetson Nano, camera image shows in Browser, but pressing web buttons does not move robot. The robot does move running the Basic_Motion Notebook. Do I have to do anything else after booting up the Jetson Jetbot? Here's the Terminal Windows from Remote MAC, jetbot@jetbot:~/mbot/mbot$ CAMERA=jetbot python3 app.py

GST_ARGUS: 3280 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings: Camera index = 0 Camera mode = 0 Output Stream W = 3280 H = 2464 seconds to Run = 0 Frame Rate = 21.000000 GST_ARGUS: PowerService: requested_clock_Hz=37126320 GST_ARGUS: Setup Complete, Starting captures for 0 seconds GST_ARGUS: Starting repeat capture requests. CONSUMER: Producer has connected; continuing. 192.168.2.25 - - [11/Jul/2019 21:44:39] "GET /video_feed HTTP/1.1" 200 - 192.168.2.25 - - [11/Jul/2019 21:44:41] "GET /teleop/left HTTP/1.1" 204 - 192.168.2.25 - - [11/Jul/2019 21:44:48] "GET /teleop/left HTTP/1.1" 204 - 192.168.2.25 - - [11/Jul/2019 21:45:02] "GET /teleop/forward HTTP/1.1" 204 - 192.168.2.25 - - [11/Jul/2019 21:45:06] "GET /teleop/right HTTP/1.1" 204 - 192.168.2.25 - - [11/Jul/2019 21:45:07] "GET /teleop/backward HTTP/1.1" 204 - 192.168.2.25 - - [11/Jul/2019 21:45:09] "GET /teleop/stop HTTP/1.1" 204 - GST_ARGUS: Cleaning up GST_ARGUS: PowerServiceHwVic::cleanupResources CONSUMER: Done Success GST_ARGUS: Done Success Stopping camera thread due to inactivity. ^Cjetbot@jetbot:~/mbot/mbot$

ARLunan commented 5 years ago

After rechecking my battery connections to the motordriver, now Image and Buttons work using a Chrome browser from my Android Tablet (Acer Iconia Nougat 7.0). However I can connect to mbot Server from my MAC Sierra Sahara Browser with camera imaging showing but the buttons don't work. Another issue is that if I stop the mbot server with CTRL-C, I am then unable to connect to the Jetbot Notebook server from a browser without entering the Jetbot workspace name "lab-a511.jupyterlab-workspace". I presume the mbot starts its own Server and when it exits somehow disables the default jetbot Notebook Server. Finally, have you thought about creating a "mbot Controller" .ipynb? Notebook. Also, in the command line CAMERA=jetbot python3 app.py, what in the purpose of "jetbot"? Thank you