duckietown / docs-AIDO

Other
1 stars 5 forks source link

13.2 Run a local submission on the Duckiebot crash #78

Closed plafer closed 3 years ago

plafer commented 5 years ago

I ran dts duckiebot evaluate --duckiebot_name DUCKIEBOT_NAME (with bot udem05) and got the following error. I used challenge-prediction/predictor_last as the working directory. I can confirm that I successfully connected to the bot (could ping it and ssh in), etc.

:    File "/home/plafer/anaconda3/envs/spinningup/lib/python3.6/cmd.py", line 217, in onecmd
:      return func(arg)
:    File "/home/plafer/.local/lib/python3.6/site-packages/dt_shell/cli.py", line 410, in <lambda>
:      do_command_lam = lambda s, w: do_command(klass, s, w)
:    File "/home/plafer/.local/lib/python3.6/site-packages/dt_shell/dt_command_abs.py", line 42, in do_command
:      cls.commands[word].do_command(cls.commands[word], shell, ' '.join(parts[1:]))
:    File "/home/plafer/.local/lib/python3.6/site-packages/dt_shell/dt_command_abs.py", line 47, in do_command
:      cls.command(shell, args)
:    File "/home/plafer/.dt-shell/commands/duckiebot/evaluate/command.py", line 116, in command
:      glue_container = client.containers.run(**params)
:    File "/home/plafer/.local/lib/python3.6/site-packages/docker/models/containers.py", line 805, in run
:      self.client.images.pull(image, platform=platform)
:    File "/home/plafer/.local/lib/python3.6/site-packages/docker/models/images.py", line 453, in pull
:      repository, tag, '@' if tag.startswith('sha256:') else ':'
:    File "/home/plafer/.local/lib/python3.6/site-packages/docker/models/images.py", line 316, in get
:      return self.prepare_model(self.client.api.inspect_image(name))
:    File "/home/plafer/.local/lib/python3.6/site-packages/docker/utils/decorators.py", line 19, in wrapped
:      return f(self, resource_id, *args, **kwargs)
:    File "/home/plafer/.local/lib/python3.6/site-packages/docker/api/image.py", line 245, in inspect_image
:      self._get(self._url("/images/{0}/json", image)), True
:    File "/home/plafer/.local/lib/python3.6/site-packages/docker/api/client.py", line 267, in _result
:      self._raise_for_status(response)
:    File "/home/plafer/.local/lib/python3.6/site-packages/docker/api/client.py", line 263, in _raise_for_status
:      raise create_api_error_from_http_exception(e)
:    File "/home/plafer/.local/lib/python3.6/site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
:      raise cls(e, response=response, explanation=explanation)
:  docker.errors.ImageNotFound: 404 Client Error: Not Found ("no such image: duckietown/challenge-aido_lf-duckiebot:aido2: No such image: duckietown/challenge-aido_lf-duckiebot:aido2")

dts : If you think this is a bug, please report that you are using: :
: duckietown-challenges: 4.0.30 : duckietown-shell-commands: 4.0.22 : python: "3.6.8 |Anaconda, Inc.| (default, Dec 30 2018, 01:22:34) \n[GCC 7.3.0]" : duckietown-shell: 4.0.22 : encodings: : stdout: UTF-8 : stderr: UTF-8 : locale: UTF-8

plafer commented 5 years ago

Potentially related, the previous step dts start_gui_tools DUCKIEBOT_NAME just hanged at

INFO:dts:Running interactive_gui_tools_udem05 on localhost with environment vars: {'HOSTNAME': 'udem05', 'ROS_MASTER': 'udem05', 'DUCKIEBOT_NAME': 'udem05', 'ROS_MASTER_URI': 'http://172.19.0.252:11311', 'QT_X11_NO_MITSHM': 1, 'DISPLAY': ':0'}

liampaull commented 5 years ago

I don't think these two things are related.

  1. The predictor challenge doesn't have an "embodied" version so you can't run it on the document. So maybe try one of the baseline options for the embodied challenges duckiebot evaluate
  2. are you sure it hanged or was it just pulling the image onto your laptop? To test do docker pull duckietown/rpi-duckiebot-base:master19 and see the status. (we should output the status of the pull so that it's more clear...)
plafer commented 5 years ago

You're right, it was pulling the image. I updated the documentation to warn against it, but yes we should definitely show some progress (I didn't even know it was pulling some docker image).

As for the duckiebot evaluate, I tried with baseline-duckietown, and eventually hit this error:

Traceback (most recent call last): File "duckiebot_bridge.py", line 49, in main() File "duckiebot_bridge.py", line 46, in main node.run() File "duckiebot_bridge.py", line 37, in run commands = self.ci.write_topic_and_expect(u'get_commands', expect=u'commands') File "/project/src/zuper-nodes-python2/src/zuper_nodes_python2/outside.py", line 78, in write_topic_and_expect ob = self.read_one(expect_topic=expect, timeout=timeout) File "/project/src/zuper-nodes-python2/src/zuper_nodes_python2/outside.py", line 170, in read_one raise TimeoutError(msg) socket.timeout: Timeout detected on /fifos/agent-out after 1 messages. Expected topic "commands".

That one is not reproducible; all the other ones, I got (no clue why it just exits):

[default/lane_controller_node-6] killing on exit [default/lane_filter_node-5] killing on exit [INFO] [1561669049.197651]: [LaneFilterNode] Shutdown. [default/inverse_kinematics_node-4] killing on exit [default/ground_projection-3] killing on exit [default/line_detector_node-2] killing on exit [INFO] [1561669049.203184]: [/default/lane_controller_node] Shutting down... [INFO] [1561669049.204890]: [GroundProjectionNode] Shutdown. [INFO] [1561669049.205514]: [LineDetectorNode] Shutdown. [WARN] [1561669049.456461]: Inbound TCP/IP connection failed: connection from sender terminated before handshake header received. 0 bytes were received. Please check sender for additional details. [INFO] [1561669049.751166]: [/default/lane_controller_node] Shutdown [rosout-1] killing on exit [master] killing on exit

As for the RL baseline, my computer is too slow to properly train it (it would take forever), so I'll try that when I get my new one.

liampaull commented 5 years ago

can you give us steps to reproduce?