Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
MAIN.PY NOTES:
BELOW ARE POSSIBLE CONFIGURATIONS THAT WORK WELL TOGETHER. COPY AND PASTE
COMBINATIONS THAT CORRESPOND TO GAUSSIAN, STRAIGHT, AND SIGMOID SHAPES.
## AGENT PARAMETERS ------------------------------------------------
### INITIAL HEADING, VELOCITY, GAIN
heading = 0
velocity = 20
gain = 1
### X,Y LOC, SIZE, COLOR
init_x = 1
init_y = 1
size = 2
color = 'r'
## MOTOR PRIMITIVE PARAMETERS -------------------------------------
### TOTAL TIME, TIME-STEP
t_total = 100
t_step = 0.1
### SHAPE, AMPLITUDE
shape = 'sigmoid'
amplitude = 20
# fig => figure object used to get needed events
# func => function called at each frame (first arg will be the next value in frames. additional positional arg supplied in fargs parameter)
# frames => source of data to pass func and each frame of the animation. if an integer, then its the same as range(frames)