def __init__(self): self.grabbing_hands = {} self.first_hand_closed = MixedFilter([ #NoiseFilter(2, 100, 20), LowpassFilter(0.1) ]) self.second_hand_closed = MixedFilter([ #NoiseFilter(2, 100, 20), LowpassFilter(0.1) ])
def __init__(self): super(ObjectController, self).__init__() self.nb_hands = MixedFilter( [NoiseFilter(10, 0.3, 10), LowpassFilter(0.5)]) self.grab = GrabLogic() self.scale = ScaleLogic()
def __init__(self): self.is_activated = False self.two_hands_grabbing = gestures.TwoHandsGrabbing() self.magnitude = MixedFilter([ #NoiseFilter(1000, 100, 20), LowpassFilter(0.05) ]) self.magnitude_origin = 0
def __init__(self): self.grabbing_hand = gestures.GrabbingHand() self.is_activated = False # hand location self.loc_x_hand = MixedFilter( [NoiseFilter(1000, 100, 20), LowpassFilter(0.05)]) self.loc_y_hand = MixedFilter( [NoiseFilter(1000, 100, 20), LowpassFilter(0.05)]) self.loc_z_hand = MixedFilter( [NoiseFilter(1000, 100, 20), LowpassFilter(0.05)]) self.loc_x_origin = 0 self.loc_y_origin = 0 self.loc_z_origin = 0 # hand rotation self.rot_x_hand = MixedFilter( [NoiseFilter(1000, 100, 20), LowpassFilter(0.05)]) self.rot_y_hand = MixedFilter( [NoiseFilter(1000, 100, 20), LowpassFilter(0.05)]) self.rot_z_hand = MixedFilter( [NoiseFilter(1000, 100, 20), LowpassFilter(0.05)]) self.rot_x_origin = 0 self.rot_y_origin = 0 self.rot_z_origin = 0
def __init__(self): self.nb_fingers = MixedFilter( [NoiseFilter(100, 0.3, 10), LowpassFilter(0.9)])