original_docstring: 
          Will handle the get_current_map_area service call. This function will get the XY coordinates of a point in parameter and determine in which room this point is located.
          Returns a response containing the room name.
  
          :param req: input parameters of the service
          :type action: CurrentArea
      
          
docstring: Will handle the get_current_map_area service call. This function will get the XY coordinates of a point in parameter and determine in which room this point is located.
  Returns a response containing the room name.
docstring_tokens: Will handle the get_current_map_area service call . This function will get the XY coordinates of a point in parameter and determine in which room this point is located . Returns a response containing the room name .
code: def handle_current_area_service(self,req):
          """
          Will handle the get_current_map_area service call. This function will get the XY coordinates of a point in parameter and determine in which room this point is located.
          Returns a response containing the room name.
  
          :param req: input parameters of the service
          :type action: CurrentArea
      
          """
          x_robot = req.coord_x
          y_robot = req.coord_y
          point_to_check = Point(x_robot, y_robot)
  
          for room in self.coord_IMs.keys():
              list_points = []
              for i in range(0,len(self.coord_IMs[room].keys())):
                  list_points.append((self.coord_IMs[room][str(i)]['x'],self.coord_IMs[room][str(i)]['y']))
              
              self.polygon_room = Polygon(list_points)
              validation = self.polygon_room.contains(point_to_check)
              if validation == True:
                  return CurrentAreaResponse(room)
          
          return CurrentAreaResponse('')
code_tokens: def handle_current_area_service ( self , req ) : x_robot = req . coord_x y_robot = req . coord_y point_to_check = Point ( x_robot , y_robot ) for room in self . coord_IMs . keys ( ) : list_points = [ ] for i in range ( 0 , len ( self . coord_IMs [ room ] . keys ( ) ) ) : list_points . append ( ( self . coord_IMs [ room ] [ str ( i ) ] [ 'x' ] , self . coord_IMs [ room ] [ str ( i ) ] [ 'y' ] ) ) self . polygon_room = Polygon ( list_points ) validation = self . polygon_room . contains ( point_to_check ) if validation == True : return CurrentAreaResponse ( room ) return CurrentAreaResponse ( '' )
short_docstring: Will handle the get_current_map_area service call.
short_docstring_tokens: Will handle the get_current_map_area service call .
comment: """
          Will handle the get_current_map_area service call. This function will get the XY coordinates of a point in parameter and determine in which room this point is located.
          Returns a response containing the room name.
  
          :param req: input parameters of the service
          :type action: CurrentArea
      
          """