WhatIThinkAbout/BabyRobotGym

error level = GridLevel(). AttributeError: 'GridLevel' object has no attribute 'draw_grid'

Opened this issue · 0 comments

AttributeError: 'GridLevel' object has no attribute 'draw_grid'

ell In[3], line 13
10 level = GridLevel()
12 # add Baby Robot
---> 13 robot = RobotDraw(level)
14 robot.set_cell_position([1,1])
15 robot.draw()

File ~/Dropbox/newGit/Deep-Reinforcement-Learning/Deep-Reinforcement-Learning SudRash/01. Fundamentals of Reinforcement Learning/BabyRobotGym-main/notebooks/../babyrobot/envs/lib/robot_draw.py:23, in RobotDraw.init(self, level, **kwargs)
22 def init( self, level, **kwargs ):
---> 23 super().init( level, **kwargs )
25 # the number of draw steps since the last reset
26 self.move_step = 0

File ~/Dropbox/newGit/Deep-Reinforcement-Learning/Deep-Reinforcement-Learning SudRash/01. Fundamentals of Reinforcement Learning/BabyRobotGym-main/notebooks/../babyrobot/envs/lib/robot_position.py:13, in RobotPosition.init(self, level, **kwargs)
12 def init( self, level, **kwargs ):
---> 13 self.grid = level.draw_grid
14 super().init( level, **kwargs )
16 # the position in pixels

AttributeError: 'GridLevel' object has no attribute 'draw_grid'