Hi I have been attempting to use the browser streaming robot example. I used the GITHUB download on an existing image and ran the install. After reboot I discovered I needed to change the port and now have a nice visual through my camera. Also I am not using the GoPiGo actually, but an adafruit I2C to PWM hat, so I replaced all instances of GoPiGo in the robot_controller.py file with my adafruit call. Now I don’t seem to get anything from the on-screen joystick. I looked through the robot_controller.py and see a number of print statements that should be calling the GoPiGo script when the joystick is activated, but I never see those prints statements in the terminal, which would explain why the robot doesn’t move. So is there something wrong with the joystick code? Or perhaps my setup?
I’ve done some more testing and it seems that the onmessage definition never runs. actually nothing but the update function appears to be running. I set the debug variable and added more print statements and nothing appears to be running except the camera feed and the update method… so how is this supposed to work again?
I am using the software but not the hardware. I replaced the gopigo.py with my own for an adafruit hat I already had. I used git instead of the image, I’m curious why there would be a difference, the install.sh seemed to run ok… but I’ll try that next I guess.
Thanks Karan. Yeah I just wasn’t getting anything from either of the set motor pos functions. Last night I finally found time to try the image. I noticed that everything is owned by root, so maybe it was permissions related? In whatever case, it’s working now though I did still have to edit the directory path in robot_web_server.py to include underscores instead of spaces for the Browser_Streaming_Robot folder.