def simple_robot_dual_joystick(): wheelbase.source = steering_mixer(join_values( joystick_right.values, filter_messages(messages.values, type='JOYSTICK', id=0)) ) pan_tilt.source = pantilt_converter(join_values( joystick_left.values, filter_messages(messages.values, type='JOYSTICK', id=1)))
def dual_triple_input_filter_all_input_scaled_pantilt_conversion(): printer.name = "dual_triple_input_filter_all_input_scaled_pantilt_conversion__ONE" printer.source = pantilt_converter( join_values( scaled_pair(joystick_left.values, -10, 10, -100, 100), scaled_pair(filter_messages(messages.values, type='JOYSTICK', id=0), -50, 50, -100, 100), scaled_pair(filter_messages(messages.values, type='JOYSTICK', id=1), -10, 10, -100, 100), ) ) printer2.name = "dual_triple_input_filter_all_input_scaled_pantilt_conversion__TWO" printer2.source = pantilt_converter( join_values( scaled_pair(joystick_left.values, -10, 10, -100, 100), scaled_pair(filter_messages(messages.values, type='JOYSTICK', id=0), -50, 50, -100, 100), scaled_pair(filter_messages(messages.values, type='JOYSTICK', id=1), -10, 10, -100, 100), ) )
def mock_robot_builtin_pantilt_conversion(): printer.name = "mock_robot_builtin_pantilt_conversion___WHEELS" printer.source = steering_mixer( join_values( filter_messages(messages.values, type='JOYSTICK', id=0), joystick_right.values ) ) printer2.name = "mock_robot_builtin_pantilt_conversion__PANTILT" printer2.source = join_values( filter_messages(messages.values, type='PANTILT', id=0), pantilt_converter( join_values( scaled_pair(joystick_left.values, -10, 10, -100, 100), filter_messages(messages.values, type='JOYSTICK', id=1), ) ) )
def simple_robot_local_joystick(): wheelbase.source = steering_mixer(joystick_right.values) pan_tilt.source = pantilt_converter(joystick_left.values)
def local_joystick_wheelbase_pantilt(): wheelbase.source = steering_mixer(joystick_right.values) pan_tilt.source = pantilt_converter(joystick_left.values)
def remote_joystick_pantilt(): pan_tilt.source = pantilt_converter(filter_messages(messages.values, type='JOYSTICK', id=1))
def local_joystick_pantilt(): pan_tilt.source = pantilt_converter(joystick_left.values)