=初心者です。質問なのですがタイトルのエラーが出ており解決策がわかりません。どなたかご教授お願いいたします。また、Agent_normalを通路にランダムに出現させ赤いゴールを目指すようにしたいのですがアドバイスをいただきたいです。よろしくお願いいたします。
(most recent call laSource niverse.py", line 145, in univ_init
SourceERROR =========================================
Tracebacあああk (most recent call last):
Source "universe.py", line 145, in unir>", line 553, in setim
ValueError: Addition of space variable elements is not allowed."<simulator>", line 553, in setitem
ValueError: Addition of space variable elements is not allo


モデルを拝見したところ、空間変数は三次元のため、
# ★ ここで空間変数へ“要素代入”する(配列ごと代入はしない)
for y in range(H):
for x in range(W):
v = CELL_TYPE[y][x]
m.is_passage[x, y, 0] = 1 if v in (PASS, GOAL) else 0
m.is_obstacle[x, y, 0] = 1 if v == WALL else 0
m.is_stair[x, y, 0] = 1 if v == STAIRS else 0
m.is_ev[x, y, 0] = 1 if v == ELEV else 0
m.is_goal[x, y, 0] = 1 if v == GOAL else 0
m.warp_color[x, y, 0] = WARP_COLOR[y][x] # これも空間変数ならOK と[x, y, layer]を指定する必要があります。
また、hasattrは現状サポートされていないため、エラーとなるようです。
モデルの詳細は分かりませんが、もし格子空間に壁を作って移動するようなモデルを作成する場合は、 https://mas.kke.co.jp/howto/recipe08_artisoccloud/ を参考にするとよいと思います。
academicライセンスを使用しています。