def __init__(self, verbose=False): "Constructor." self.verbose = verbose self.dev = Actuator(verbose) self.plan = Plan() if verbose: print self.dev self.plt = plot_brake.brakeData('sim-actuator') self.plt.set_state(self.dev.t, self.dev.pos, self.dev.pot, self.dev.x, self.dev.pr)
def __init__(self, name=None): "Constructor method." # set default name prefix for plots if name: self.name = name else: self.name = 'brake' self.plt = plot_brake.brakeData()