forked from SensorsINI/CartPoleSimulation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_data_gen.yml
44 lines (44 loc) · 2.7 KB
/
config_data_gen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
controller: mpc
PATH_TO_EXPERIMENT_RECORDINGS_DEFAULT: './Experiment_Recordings/' # Where to save experiment recording per default
seed: 1998 # If not assign random seed based on datetime is used
length_of_experiment: 3600 # Length of each experiment in s:
split: [0.8, 0.1] # Train/Val/(Test) split - only matters if you run it in ML Pipeline mode
random_initial_state:
# Unassigned variables will be randomly initialized (see below)
position:
positionD:
angle:
angleD:
target_position:
init_limits: # The initial state is randomly chosen from below range if above is not assigned
angle: [90.0, 180.0] # degree, 0 is up, 180 down, set the range for right half plane, same will be applied to left
angleD: 40.0
position: 0.5 # Fraction of TrackHalfLength to each side
positionD: 0.01 # Fraction of TrackHalfLength to each side
start_at_target: True # initial target position should be equal to initial state
track_fraction_usable_for_target_position: 0.9 # Set the max for smoothly interpolated random target position to avoid bumping into track ends.
target_position_end: ~ # value OR not assigned - random value is taken
initial_target_equilibrium: 'random' # possible 'up', 'down', 'random' = 50/50
change_target_equilibrium_every_x_second: 16
L: # Pole half-length
L_initial: default
change_L_every_x_second: inf
L_discount_factor: 1.0 #0.9999; Change of L at EACH SIMULATOR TIMESTEP
L_range: [0.01, 0.6] # Range from which to uniformly sample L
informed_controller: true # If false controller assumes always L_initial
L_change_mode: step # 'uniform' to sample uniformly from L_range, 'step' to change by constant step within the L_range
L_step: 0.02 # Only for L_change_mode 'step'
dt:
simulation: 0.002 # simulation timestep, s
control: 0.02 # control rate, s
saving: 0.02 # save datapoints in csv in this interval, s
turning_points:
track_relative_complexity: 1 # Randomly placed target points/s
interpolation_type: '0-derivative-smooth' # How to interpolate between turning points of random trace, Possible options: '0-derivative-smooth', 'linear', 'previous'
turning_points: # List of target positions, can be None to simulate with random targets, Example: turning_points_DataGen = [0.0, 0.1, -0.1, 0.0]
turning_points_period: 'regular' # How turning points should be distributed, Possible options: 'regular', 'random'; never used, leave it as it is
save_mode: 'online' # It was intended to save memory usage, but it doesn't seems to help, setit to "offline" only if you want to show summary plots
# Show popup window in the end with summary of experiment?
show_summary_plots: False
show_controller_report: False
number_of_experiments: 10 # How many experiments will be generated