Exemplo n.º 1
0
def __knowrob_page__(template, container_name, category=None, exp=None):
    error = ""
    # determine hostname/IP we are currently using
    # (needed for accessing container)
    host_url = urlparse(request.host_url).hostname
    if category is not None: session['exp-category'] = category
    if exp is not None: session['exp-name'] = exp
    if 'exp-category' in session: category = session['exp-category']
    if 'exp-name' in session: exp = session['exp-name']

    exp_url = get_experiment_download_url()
    return render_template(template, **locals())
Exemplo n.º 2
0
def __knowrob_page__(template, container_name, category=None, exp=None):
    error=""
    # determine hostname/IP we are currently using
    # (needed for accessing container)
    host_url = urlparse(request.host_url).hostname
    if category is not None: session['exp-category'] = category
    if exp is not None:      session['exp-name'] = exp
    if 'exp-category' in session: category = session['exp-category']
    if 'exp-name' in session: exp = session['exp-name']

    exp_url = get_experiment_download_url()
    return render_template(template, **locals())
Exemplo n.º 3
0
def __knowrob_page__(template, docker_ros=True, category=None, exp=None):
    if not ensure_application_started('knowrob/hydro-knowrob-daemon'):
        return redirect(url_for('user.logout'))
    error=""
    # determine hostname/IP we are currently using
    # (needed for accessing container)
    host_url = urlparse(request.host_url).hostname
    container_name = session['user_container_name']
    if category is not None: session['exp-category'] = category
    if exp is not None:      session['exp-name'] = exp
    if 'exp-category' in session: category = session['exp-category']
    if 'exp-name' in session: exp = session['exp-name']
    
    exp_url = get_experiment_download_url()
    return render_template(template, **locals())
Exemplo n.º 4
0
def __knowrob_page__(template, docker_ros=True, category=None, exp=None):
    if not ensure_application_started('knowrob/hydro-knowrob-daemon'):
        return redirect(url_for('user.logout'))
    error = ""
    # determine hostname/IP we are currently using
    # (needed for accessing container)
    host_url = urlparse(request.host_url).hostname
    container_name = session['user_container_name']
    if category is not None: session['exp-category'] = category
    if exp is not None: session['exp-name'] = exp
    if 'exp-category' in session: category = session['exp-category']
    if 'exp-name' in session: exp = session['exp-name']

    exp_url = get_experiment_download_url()
    return render_template(template, **locals())