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
class Agent:
"This is the agent class. An agent is a car object that moves along the track, as represented in the animation."
start_position_x,start_position_y = 0,0
agent_size = 1
color = ''
velocity = 1
phi_gain = 1
derivative_nearPoint_gain = 1
derivative_farPoint_gain = 1
proportional_nearPoint_gain = 1
# INITIALIZE X,Y LOC, SIZE, & COLOR ------------------------------------------------
def __init__(self,start_position_x,start_position_y,agent_size,color,velocity,
phi_gain,derivative_nearPoint_gain,derivative_farPoint_gain,proportional_nearPoint_gain):
self.start_position_x = start_position_x
self.start_position_y = start_position_y
self.agent_size = agent_size
self.color = color
self.velocity = velocity
self.phi_gain = phi_gain
self.derivative_nearPoint_gain = derivative_nearPoint_gain
self.derivative_farPoint_gain = derivative_farPoint_gain
self.proportional_nearPoint_gain = proportional_nearPoint_gain