Ejemplo n.º 1
0
        t += dt

    # In[18]:

    p.disconnect()
    print "Simulation completed"

    # In[19]:

    exp_data = DotMap()
    file_name = 'walk_'
    data_path = parentdir + '/data/'
    exp_data.success = success
    exp_data.N_SIMULATION = N_SIMULATION
    exp_data.dt = dt
    exp_data.N_STEPS = N_STEPS
    exp_data.ONBOARD_WINDOW = ONBOARD_WINDOW
    exp_data.STEP_DURATION = STEP_DURATION
    exp_data.NS3 = NS3

    if NS3:
        exp_data.scenario = SCENARIO
        file_name = file_name + SCENARIO + str(trial_id)
        data_path += 'ns3/exp_data/'
    else:
        exp_data.delay = DELAY
        exp_data.delay_start = DELAY_START
        file_name += str(DELAY)
        data_path += 'const/exp_data/'

    exp_data.local = LOCAL