Skip to content

Commit

Permalink
Change inputs for building map
Browse files Browse the repository at this point in the history
  • Loading branch information
HervierLucas committed Nov 23, 2020
1 parent cc10748 commit e96f043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/continuous_sokolvl.jl
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function write_map2!(continuoussokolvl::ContinuousSokoLvl)
else
phi = atan(y,x)
end
input = [x,y,r,phi,x_pos,y_pos,(x_pos+(y_pos-1)*width)/(width*height),(x_pos+(y_pos-1)*width)/(width*height)-1,(x_pos+(y_pos-1)*width)/(width*height)+1,(x_pos+(y_pos-1)*width)/(width*height)+width,(x_pos+(y_pos-1)*width)/(width*height)-width]
input = [x,y,r,phi,x_pos,y_pos]
# our model got 5 output: box,wall,holes,agent and floor
object_at_x_y = ""
output = continuoussokolvl.model(input)
Expand Down

0 comments on commit e96f043

Please sign in to comment.