18r441m / CSCE274

Robotics Applications and Design
https://cse.sc.edu/~ijsalman/csce274/
10 stars 7 forks source link

We can't get the robot to run/connect #55

Closed Jennak1 closed 2 years ago

Jennak1 commented 2 years ago

We tried to run roslaunch and got an error, so we went to fix our file and when we tried to do rsync again it wouldn't work. And we tried to build it again but get errors and we can't even use the keyboard controls. We can't move forward with trying to test it.

Traceback (most recent call last): : File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn : conn = connection.create_connection( : File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 84, in create_connection : raise err : File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 74, in create_connection : sock.connect(sa) : ConnectionRefusedError: [Errno 111] Connection refused :
: During handling of the above exception, another exception occurred: :
: Traceback (most recent call last): : File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen : httplib_response = self._make_request( : File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request : conn.request(method, url, httplib_request_kw) : File "/usr/lib/python3.8/http/client.py", line 1252, in request : self._send_request(method, url, body, headers, encode_chunked) : File "/usr/lib/python3.8/http/client.py", line 1298, in _send_request : self.endheaders(body, encode_chunked=encode_chunked) : File "/usr/lib/python3.8/http/client.py", line 1247, in endheaders : self._send_output(message_body, encode_chunked=encode_chunked) : File "/usr/lib/python3.8/http/client.py", line 1007, in _send_output : self.send(msg) : File "/usr/lib/python3.8/http/client.py", line 947, in send : self.connect() : File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 187, in connect : conn = self._new_conn() : File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 171, in _new_conn : raise NewConnectionError( : urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f64029eb5e0>: Failed to establish a new connection: [Errno 111] Connection refused :
: During handling of the above exception, another exception occurred: :
: Traceback (most recent call last): : File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send : resp = conn.urlopen( : File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen : retries = retries.increment( : File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment : raise MaxRetryError(_pool, url, error or ResponseError(cause)) : urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='duck44.local', port=2375): Max retries exceeded with url: /v1.35/info (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f64029eb5e0>: Failed to establish a new connection: [Errno 111] Connection refused')) :
: During handling of the above exception, another exception occurred: :
: Traceback (most recent call last): : File "/home/jenna/.local/lib/python3.8/site-packages/dt_shell/main.py", line 38, in cli_main : climain() : File "/home/jenna/.local/lib/python3.8/site-packages/dt_shell/main.py", line 195, in climain : shell.onecmd(cmdline) : File "/usr/lib/python3.8/cmd.py", line 217, in onecmd : return func(arg) : File "/home/jenna/.local/lib/python3.8/site-packages/dt_shell/cli.py", line 278, in : do_command_lam = lambda s, w: do_command(klass, s, w) : File "/home/jenna/.local/lib/python3.8/site-packages/dt_shell/dt_command_abs.py", line 41, in do_command : cls.commands[word].do_command(cls.commands[word], shell, " ".join(parts[1:])) : File "/home/jenna/.local/lib/python3.8/site-packages/dt_shell/dt_command_abs.py", line 48, in do_command : cls.command(shell, args) : File "/home/jenna/.dt-shell/commands-multi/daffy/devel/build/command.py", line 359, in command : epoint = docker.info() : File "/usr/lib/python3/dist-packages/docker/client.py", line 179, in info : return self.api.info(*args, *kwargs) : File "/usr/lib/python3/dist-packages/docker/api/daemon.py", line 95, in info : return self._result(self._get(self._url("/info")), True) : File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 46, in inner : return f(self, args,
kwargs) : File "/usr/lib/python3/dist-packages/docker/api/client.py", line 230, in _get : return self.get(url, self._set_request_timeout(kwargs)) : File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get : return self.request('GET', url, kwargs) : File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request : resp = self.send(prep, send_kwargs) : File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send : r = adapter.send(request, kwargs) : File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send : raise ConnectionError(e, request=request) : requests.exceptions.ConnectionError: HTTPConnectionPool(host='duck44.local', port=2375): Max retries exceeded with url: /v1.35/info (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f64029eb5e0>: Failed to establish a new connection: [Errno 111] Connection refused'))

dts : To report a bug, please also include the contents of /home/jenna/shell-debug-info.txt

18r441m commented 2 years ago

Ok. Firstly, verify that you are connected to the duckiebot using dts fleet discover.

Also, make sure to list the command you ran which produced this error

johnburton0517 commented 2 years ago

Running fleet discover does verify that the duckiebot is connected. The command that this error comes from is dts duckiebot keyboard_control duck44

johnburton0517 commented 2 years ago

the dashboard is down on fleet discover

Jennak1 commented 2 years ago

dts devel build -H .local and dts devel run -H .local -s -M --cmd bash gives the error as well

johnburton0517 commented 2 years ago

The dashboard randomly says its working now. Problem may be fixed but not sure yet