Exemplo n.º 1
0
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)))
Exemplo n.º 2
0
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),
        )
    )
Exemplo n.º 3
0
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),
            )
        )
    )
Exemplo n.º 4
0
def simple_robot_local_joystick():
    wheelbase.source = steering_mixer(joystick_right.values)
    pan_tilt.source  = pantilt_converter(joystick_left.values)
Exemplo n.º 5
0
def local_joystick_wheelbase_pantilt():
    wheelbase.source = steering_mixer(joystick_right.values)
    pan_tilt.source = pantilt_converter(joystick_left.values)
Exemplo n.º 6
0
def remote_joystick_pantilt():
    pan_tilt.source = pantilt_converter(filter_messages(messages.values, type='JOYSTICK', id=1))
Exemplo n.º 7
0
def local_joystick_pantilt():
    pan_tilt.source = pantilt_converter(joystick_left.values)