ValueError: when using GetShortestPathToPoint
- 主要语言
- 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 还没有评估数据。