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)
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)
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)
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)
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)
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)