Ejemplo n.º 1
0
 def __init__(self):
     # TODO: Implement this class with your instructor.
     self.touch_sensor = rosebot_touch_sensor.TouchSensor(1)
     self.color_sensor = rosebot_color_sensor.ColorSensor(3)
     self.drive_system = rosebot_drive_system.DriveSystem('A', 'B')
     self.arm_and_claw = rosebot_arm_and_claw.ArmAndClaw(
         'C', self.touch_sensor)
Ejemplo n.º 2
0
 def __init__(self):
     # TODO: Implement this class with your instructor.
     self.touch_sensor = rosebot_touch_sensor.TouchSensor(1)
     self.color_sensor = rosebot_color_sensor.ColorSensor(3)
     self.drive_system = rosebot_drive_system.DriveSystem('B', 'C')
     self.arm_and_claw = rosebot_arm_and_claw.ArmAndClaw(
         'A', self.touch_sensor)
     self.camera = rosebot_low_level.Camera()
     self.infrared_proximity_sensor = rosebot_low_level.InfraredProximitySensor(
         4)
Ejemplo n.º 3
0
    def __init__(self):
        # Lab 1
        # ---------------------------------------------------------------------
        # TODO 1: With your instructor, add subsystems needed for Lab 1.
        # ---------------------------------------------------------------------
        self.drive_system = rosebot_drive_system.DriveSystem('B', 'C')

        # Lab 2
        # ---------------------------------------------------------------------
        # TODO 2: With your instructor, add subsystems needed for Lab 2.
        # ---------------------------------------------------------------------
        self.touch_sensor = rosebot_touch_sensor.TouchSensor(1)
        self.arm_and_claw = rosebot_arm_and_claw.ArmAndClaw(
            'A', self.touch_sensor)

        # Lab 3
        # ---------------------------------------------------------------------
        # TODO 3: With your instructor, add subsystems needed for Lab 3.
        # ---------------------------------------------------------------------
        self.leds = rosebot_leds.Leds()
        self.brick_buttons = rosebot_brick_buttons.BrickButtons()
        self.remote_control = rosebot_remote_control.RemoteControl()

        # Lab 4
        # ---------------------------------------------------------------------
        # TODO 4: With your instructor, add subsystems needed for Lab 4.
        # ---------------------------------------------------------------------
        self.sound = rosebot_sound.Sound()
        self.infrared_proximity_sensor = rosebot_infrared_proximity_sensor.InfraredProximitySensor(
            4)
        self.beacon_sensor = rosebot_beacon_sensor.BeaconSensor(4, 1)
        self.beacon_seeker = rosebot_beacon_seeker.BeaconSeeker(
            self.beacon_sensor, self.drive_system)

        # Lab 5
        # ---------------------------------------------------------------------
        # TODO 5: With your instructor, add subsystems needed for Lab 5.
        # ---------------------------------------------------------------------
        self.color_sensor = rosebot_color_sensor.ColorSensor(3)
        self.line_follower = rosebot_line_follower.LineFollower(
            self.color_sensor, self.drive_system)

        # Lab 6
        # ---------------------------------------------------------------------
        # TODO 6: With your instructor, add subsystems needed for Lab 5.
        # ---------------------------------------------------------------------
        self.camera = rosebot_camera_sensor.CameraSensor(2)
        self.camera_tracker = rosebot_camera_tracker.CameraTracker(
            self.camera, self.drive_system)

        # Lab 7
        self.should_shutdown = False
Ejemplo n.º 4
0
    def __init__(self):
        # Lab 1
        self.drive_system = rosebot_drive_system.DriveSystem('B', 'C')

        # Lab 2
        self.touch_sensor = rosebot_touch_sensor.TouchSensor(1)
        self.arm_and_claw = rosebot_arm_and_claw.ArmAndClaw(
            'A', self.touch_sensor)

        # Lab 3
        self.leds = rosebot_leds.Leds()
        self.brick_buttons = rosebot_brick_buttons.BrickButtons()
        self.remote_control = rosebot_remote_control.RemoteControl()