예제 #1
0
파일: sim_actuator.py 프로젝트: zhafree/ros
 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)
예제 #2
0
    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()
예제 #3
0
    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()