コード例 #1
0
ファイル: peers_lines.py プロジェクト: alex-berman/tforms
 def __init__(self, args):
     Visualizer.__init__(self, args)
     self.inner_margin_width = int(self.width * INNER_MARGIN)
     self.safe_width = self.width - self.inner_margin_width * 2
     self.files = {}
     self._smoothed_min_filenum = Smoother()
     self._smoothed_max_filenum = Smoother()
コード例 #2
0
ファイル: puzzle.py プロジェクト: alex-berman/tforms
 def __init__(self, args):
     Visualizer.__init__(self, args)
     self.safe_width = int(self.width * (1 - APPEND_MARGIN - PREPEND_MARGIN))
     self.prepend_margin_width = int(self.width * PREPEND_MARGIN)
     self.files = {}
     self._smoothed_min_filenum = Smoother()
     self._smoothed_max_filenum = Smoother()
コード例 #3
0
 def __init__(self, inq):
     Visualizer.__init__(self, inq)
     self.ledmode_pub = rospy.Publisher(
         "/roboy/control/matrix/leds/mode/simple", Int32, queue_size=1)
     self.led_point = rospy.ServiceProxy(
         '/roboy/control/matrix/leds/point/service', SetPoint)
     self.idle_timeout = time.time()
     self.idle_even = True
     self.idle = True
コード例 #4
0
 def __init__(self, inq):
     Visualizer.__init__(self, inq)
     self.leds = MatrixLeds()
     self.idle_timeout = time.time()
     self.idle_even = True
     self.idle = False
     self.heartbeat = False
     self.rec_loc_pub = rospy.Publisher(
         '/roboy/cognition/audio/record/location',
         AudioLocation,
         queue_size=1)
コード例 #5
0
ファイル: steering.py プロジェクト: alex-berman/tforms
 def __init__(self, args):
     Visualizer.__init__(self, args)
     self.boids = []
     boid = Boid(PVector(10, 10), 3.0, 3.0)
     boid.arrive(PVector(400, 200))
     self.boids.append(boid)
コード例 #6
0
 def __init__(self, args):
     Visualizer.__init__(self, args, Chunk)
     self.files = {}
     self.peers = {}
コード例 #7
0
ファイル: circles.py プロジェクト: alex-berman/tforms
 def __init__(self, args):
     Visualizer.__init__(self, args)
     self.files = {}