Пример #1
0
def drive(motor_vals, drive_value_pub):
    drive_vals = DriveVals()
    print motor_vals
    throttle = motor_vals[0]
    turn = motor_vals[1]
       
    speeds = arcade_drive(throttle, turn)
    #print speeds
    drive_vals.speeds = speeds
    drive_value_pub.publish(drive_vals)