Example #1
0
    def __init__(self, robot_id, top_speed, angular_top_speed, x_offset, y_offset, theta_offset):
        Robot.__init__(self, robot_id, top_speed, angular_top_speed, x_offset, y_offset, theta_offset)
        self.counter = 0

        boundaries = locations.get_wall_boundaries()
        self.min_x = int(boundaries["min_x"])
        self.max_x = int(boundaries["max_x"])
        self.min_y = int(boundaries["min_y"])
        self.max_y = int(boundaries["max_y"])
Example #2
0
    def __init__(self, robot_id, top_speed, angular_top_speed, x_offset,
                 y_offset, theta_offset):
        Robot.__init__(self, robot_id, top_speed, angular_top_speed, x_offset,
                       y_offset, theta_offset)
        self.counter = 0

        boundaries = locations.get_wall_boundaries()
        self.min_x = int(boundaries["min_x"])
        self.max_x = int(boundaries["max_x"])
        self.min_y = int(boundaries["min_y"])
        self.max_y = int(boundaries["max_y"])
Example #3
0
 def test_orchard_get_coordinates(self):
     """Test the boundary values obtained from file are floats
     NOTE: This is based on default world file. If configured world is run last this will fail"""
     boundaries = locations.get_wall_boundaries()
     self.tractor.min_x = boundaries["min_x"]
     self.tractor.max_x = boundaries["max_x"]
     self.tractor.min_y = boundaries["min_y"]
     self.tractor.max_y = boundaries["max_y"]
     self.assertEqual(self.tractor.min_x, -35)
     self.assertEqual(self.tractor.min_y, -60)
     self.assertEqual(self.tractor.max_x, 35)
     self.assertEqual(self.tractor.max_y, 60)
Example #4
0
 def test_orchard_get_coordinates(self):
     """Test the boundary values obtained from file are floats
     NOTE: This is based on default world file. If configured world is run last this will fail"""
     boundaries = locations.get_wall_boundaries()
     self.tractor.min_x = boundaries["min_x"]
     self.tractor.max_x = boundaries["max_x"]
     self.tractor.min_y = boundaries["min_y"]
     self.tractor.max_y = boundaries["max_y"]
     self.assertEqual(self.tractor.min_x, -35)
     self.assertEqual(self.tractor.min_y, -60)
     self.assertEqual(self.tractor.max_x, 35)
     self.assertEqual(self.tractor.max_y, 60)
Example #5
0
    def __init__(self, robot_id, top_speed, angular_top_speed, x_offset, y_offset, theta_offset):
        Robot.__init__(self, robot_id, top_speed, angular_top_speed, x_offset, y_offset, theta_offset)

        # Set boundaries
        boundaries = locations.get_wall_boundaries()
        self.min_x = boundaries["min_x"]
        self.max_x = boundaries["max_x"]
        self.min_y = boundaries["min_y"]
        self.max_y = boundaries["max_y"]

        # Instance variables
        self.was_blocked = False
        self.old_queue = []

        self.d = 7
Example #6
0
    def __init__(self, robot_id, top_speed, angular_top_speed, x_offset,
                 y_offset, theta_offset):
        Robot.__init__(self, robot_id, top_speed, angular_top_speed, x_offset,
                       y_offset, theta_offset)

        # Set boundaries
        boundaries = locations.get_wall_boundaries()
        self.min_x = boundaries["min_x"]
        self.max_x = boundaries["max_x"]
        self.min_y = boundaries["min_y"]
        self.max_y = boundaries["max_y"]

        # Instance variables
        self.was_blocked = False
        self.old_queue = []

        self.d = 7