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/agent.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
20 lines (15 sloc)
644 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
import numpy as np | |
import matplotlib.pyplot as plt | |
class Agent: | |
"This is the agent class. An agent is a car object that moves along the track, as represented in the animation." | |
size = 1 | |
color = '' | |
# INITIALIZE X,Y LOC, SIZE, & COLOR ------------------------------------------------ | |
def __init__(self,size,color): | |
self.size = size | |
self.color = color | |
# plt.figure() #display figure in env | |
# plt.axes(xlim=(0,20), ylim=(0,20)) | |
# patch = plt.Circle((self.start_x,self.start_y), self.size, fc = self.color) | |
# plt.gca().add_patch(patch) | |
# plt.show() | |