allenai / allenai/ai2thor

Objects collide when randomly spawned

オープン
#303 コメント 1 件 リアクション 0 件 担当者 2 名 @AlvaroHG が担当を希望しています GitHub で見る
Controller Initialize Needs Help
主要言語
C#
スター
1.8k
フォーク
297
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi,

I have noticed that sometimes when I use `RandomSpawn` to initialize the environment, certain objects collide in a way that you can barely see one of the two objects. For instance, when Cup and Bread collide, you can barely see Cup since most of its shape is covered by Bread. The details of the colliding instance are:
* Floorplan : `FloorPlan28` (Kitchen Scene)
* Random seed for random spawn : 24225
* Objects that collide :
- `Cup`
- name : `Cup_41873c33`
- objectId : `Cup|-03.54|+00.76|-03.63`
- position : `{'x': -3.54186773, 'y': 0.7607916, 'z': -3.62693739}`
- `Bread`
- name : `Bread_4d72833d`
- objectId : `Bread|-03.61|+00.84|-03.49`
- position : `{'x': -3.60929036, 'y': 0.84152, 'z': -3.48792648}`

Below is the code block I used to initialize the environment:
```
import ai2thor.controller

controller = ai2thor.controller.Controller()
controller.start()

# Object position randomization
controller.reset('FloorPlan28')
controller.step(dict(action='Initialize', gridSize=0.10, visibilityDistance=5.0))
event = controller.step(
dict(
action='InitialRandomSpawn',
randomSeed=24225,
forVisible=False,
numPlacementAttempts=5
)
)
```

Is there a way to prevent this kind of collision?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。