Permalink
Cannot retrieve contributors at this time
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?
motor-primitives-in-steering-simulation/MAIN_NOTE.txt
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
28 lines (23 sloc)
888 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |