示例#1
0
    def __init__(self, name, role):
        BaseRobot.__init__(self, name, role)
        self.has_ball_sensor = False

        self.desired_position = None
        self.direction["desired position"] = None
        self.direction["enemy1"] = None
        self.direction["enemy2"] = None

        self.enemy1 = None
        self.enemy2 = None

        self.intercept_line = None
示例#2
0
    def __init__(self, name, role):
        BaseRobot.__init__(self, name, role)
        self.desired_position = None
        self.direction['desired position'] = None
        self.desired_heading = None

        # properties for the subtask
        self.required_bearing = 180
        self.required_heading = 180
        self.required_grabbing = 0
        self.required_kicking = 0

        self.grabbingTimeout = time.time()
        self.kickTries = 0

        self.intercept_line = None
        self.enemy1 = None
        self.enemy2 = None

        self.has_ball_sensor = False