Example #1
0
 def atSite(self):
   '''
   True if the robot is in the area designated as the construction site 
   (on the ground)
   '''
   return helpers.within(CONSTRUCTION['corner'], 
     CONSTRUCTION['size'], self.location)
Example #2
0
 def atSite(self):
     '''
 True if the robot is in the area designated as the construction site 
 (on the ground)
 '''
     return helpers.within(CONSTRUCTION['corner'], CONSTRUCTION['size'],
                           self.location)
Example #3
0
 def __feasable_point(self,p):
   '''
   Checks whether or not a point lies within the defined limits of the 
   structure
   '''
   return helpers.within(self.origin,self.size,p)
Example #4
0
 def __feasable_point(self, p):
     '''
 Checks whether or not a point lies within the defined limits of the 
 structure
 '''
     return helpers.within(self.origin, self.size, p)
Example #5
0
 def at_site(self):
     """
 True if the robot is in the area designated as the construction site 
 (on the ground)
 """
     return helpers.within(CONSTRUCTION["corner"], CONSTRUCTION["size"], self.location)
Example #6
0
 def at_home(self):
     """
 True if the robot is in the area designated as home (on the ground)
 """
     return helpers.within(HOME["corner"], HOME["size"], self.location)
Example #7
0
 def atHome(self):
   '''
   True if the robot is in the area designated as home (on the ground)
   '''
   return helpers.within(HOME['corner'], HOME['size'],
     self.location)
Example #8
0
 def atHome(self):
     '''
 True if the robot is in the area designated as home (on the ground)
 '''
     return helpers.within(HOME['corner'], HOME['size'], self.location)