Go to the documentation of this file.00001
00002 import roslib; roslib.load_manifest('projector_calibration')
00003 from projector_calibration import CalibrationGrid
00004 import PySide
00005 import PySide.QtCore
00006 import sys
00007 import rospy
00008
00009 class GridTest:
00010
00011 def update(self):
00012 self.grid.origin = self.grid.origin[0] + 1, self.grid.origin[1] + 1
00013 self.grid.update()
00014
00015 def __init__(self):
00016 app = PySide.QtGui.QApplication(sys.argv)
00017 self.grid = CalibrationGrid(nCols=7, nRows=5, origin=(50,0), scale= 0.5)
00018
00019 self.grid.show()
00020 qtimer = PySide.QtCore.QTimer(self.grid)
00021 qtimer.timeout.connect(self.update)
00022 qtimer.start(10)
00023 sys.exit(app.exec_())
00024
00025 if __name__ == '__main__':
00026 GridTest()