unit5_pp/scripts/unit5_exercise.py
def world_to_grid_map(world_pose):
    """ Convert Pose() message in world frame of reference to grid map cell/pixel coordinates """
    grid_cell_x = int((world_pose.position.x - attractive_field.info.origin.position.x) / attractive_field.info.resolution)
    grid_cell_y = int((world_pose.position.y - attractive_field.info.origin.position.y) / attractive_field.info.resolution)
    return [grid_cell_x, grid_cell_y]
 Convert Pose() message in world frame of reference to grid map cell/pixel coordinates 
Convert Pose() message in world frame of reference to grid map cell/pixel coordinates
Convert Pose () message in world frame of reference to grid map cell / pixel coordinates
def world_to_grid_map(world_pose):
    grid_cell_x = int((world_pose.position.x - attractive_field.info.origin.position.x) / attractive_field.info.resolution)
    grid_cell_y = int((world_pose.position.y - attractive_field.info.origin.position.y) / attractive_field.info.resolution)
    return [grid_cell_x, grid_cell_y]
def world_to_grid_map ( world_pose ) : grid_cell_x = int ( ( world_pose . position . x - attractive_field . info . origin . position . x ) / attractive_field . info . resolution ) grid_cell_y = int ( ( world_pose . position . y - attractive_field . info . origin . position . y ) / attractive_field . info . resolution ) return [ grid_cell_x , grid_cell_y ]
Convert Pose() message in world frame of reference to grid map cell/pixel coordinates
Convert Pose () message in world frame of reference to grid map cell / pixel coordinates
""" Convert Pose() message in world frame of reference to grid map cell/pixel coordinates """
world_pose