allenai / allenai/ai2thor

ValueError: when using GetShortestPathToPoint

未关闭
#1,155 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C#
星标
1.8k
派生
296
PR 合并指标
30 天内没有已合并 PR

描述

Is get_shortest_path_to_point still functional? Couldn't find any docs
```
from ai2thor.controller import Controller
from ai2thor.util.metrics import (
get_shortest_path_to_point
)

controller = Controller(
agentMode="default",
visibilityDistance=1.5,
scene="FloorPlan_Train1_3",
gridSize=0.25,
movementGaussianSigma=0.005,
rotateStepDegrees=90,
rotateGaussianSigma=0.5,
renderDepthImage=True,
renderInstanceSegmentation=True,
width=1080,
height=1080,
fieldOfView=60
)

positions = controller.step(
action="GetReachablePositions"
).metadata["actionReturn"]
initial_position = controller.last_event.metadata['agent']['position']
get_shortest_path_to_point(controller, initial_position, positions[1])

```
```
ValueError:
Action: "GetShortestPathToPoint" called with invalid arguments: 'x', 'y', 'z'
Expected arguments: Vector3 position, Vector3 target, Single allowedError = 0.0001
Your arguments: 'position', 'x', 'y', 'z'
Valid ways to call "GetShortestPathToPoint" action:
Void GetShortestPathToPoint(Vector3 position, Vector3 target, Single allowedError = 0.0001)
Void GetShortestPathToPoint(Vector3 target, Single allowedError = 0.0001)
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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