Acces browser streaming robot


#1

I have problems with acces "cd Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot/"
I saw in an earlier post with two spaces, you have to use browse/ servo.
But how can I acces with three spaces like the “Browser Streaming Robot.”

Thanks


#2

Hey Input,
We have updated the paths so that there are no spaces and replaced that with underscore so it should be easier to go to the folder: https://github.com/DexterInd/GoPiGo/tree/master/Software/Python/Examples/Browser_Streaming_Robot. Just update your local repository and it should work for you.

If you still want to access it you’ll have to use Browser\ Streaming\ Robot/.

-Karan


#3

Hi Karan,
I have a problem that the webbrowser do’nt give streaming video.
The errors are below: Do you have a solution for this problem ?
Thanks

sockjs.tornado will use json module
/home/pi/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot/home/pi/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot/www
Starting web server…
Uncaught exception GET / (192.168.178.11)
HTTPServerRequest(protocol=‘http’, host=‘raspberrypi.local’, method=‘GET’, uri=’/’, version=‘HTTP/1.1’, remote_ip=‘192.168.178.11’, headers={‘Accept-Language’: ‘nl-NL’, ‘Accept-Encoding’: ‘gzip, deflate’, ‘Host’: ‘raspberrypi.local’, ‘Accept’: ‘text/html, application/xhtml+xml, /’, ‘User-Agent’: ‘Mozilla/5.0 (Windows NT 6.3; Win64; x64; Trident/7.0; rv:11.0) like Gecko’, ‘Dnt’: ‘1’, ‘Connection’: ‘Keep-Alive’, ‘Ua-Cpu’: ‘AMD64’})
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/tornado/web.py”, line 1332, in _execute
result = method(*self.path_args, **self.path_kwargs)
File “./robot_web_server.py”, line 180, in get
self.render( webPath + “/index.html” )
File “/usr/local/lib/python2.7/dist-packages/tornado/web.py”, line 665, in render
html = self.render_string(template_name, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/tornado/web.py”, line 769, in render_string
t = loader.load(template_name)
File “/usr/local/lib/python2.7/dist-packages/tornado/template.py”, line 343, in load
self.templates[name] = self._create_template(name)
File “/usr/local/lib/python2.7/dist-packages/tornado/template.py”, line 370, in _create_template
with open(path, “rb”) as f:
IOError: [Errno 2] No such file or directory: '/home/pi/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot/home/pi/Desktop/GoPiGo/Software/Python/Examples/Browser Streaming Robot/www/index.html’
500 GET / (192.168.178.11) 45.31ms


#4

Hi,
This is the problem with the path. With the spaces changed to underscores in the path, you have to update that in a file too, here: https://github.com/DexterInd/GoPiGo/blob/master/Software/Python/Examples/Browser_Streaming_Robot/robot_web_server.py#L63. We have updated the examples in the github repository so you can pull the changes to make it work or just edit the files on your Pi.

-Karan