allenai / allenai/ai2thor

Bug(s) in hide-n-seek demo?

未关闭
#412 4 条评论 0 个 reaction 已指派 2 人 已被 @mattdeitke 认领 在 GitHub 查看
Demos Needs Help
主要语言
C#
星标
1.8k
派生
297
PR 合并指标
30 天内没有已合并 PR

描述

Hello,

I'm wondering if the hide-n-seek demo is working for anyone, as I ran into a couple of issues trying to make it work.

I forked the master branch and cloned it, installed the appropriate version of unity (2018.4.16f1), and built the template according to the instructions. When I open it (adding the `?object=Tomato&variation=0` GET parameters as described), I hit a couple of problems:

In `script.js`, the `handleEvent` function tries to push a metadata object to `outputData.actions` -- but `actions` is never defined inside `outputData`. Once I fixed that (adding `actions: []` in the `let outputData = ...` line), the WebGL object loads, but does not capture keyboard events. I can click on the Fridge to open and close the door, but no keyboard events appear to reach the WebGL object (and a breakpoint on `handleEvent` only sees the CloseObject and OpenObject actions, but never anything else.

As a side note, the Finish and Reset buttons also don't do anything, which it appears from `script.js` that they should?

Concretely,
- Does the hide-n-seek demo work for anyone else? The [THOR demo](https://ai2thor.allenai.org/ithor/demo/) works just fine in the same browser.
- Any idea why it isn't capturing keyboard inputs?
- Is the template and/or source code for the browser demo available anywhere?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。