[openrtm-commit:01457] r165 - branches/newCMakeForVC2010/ImageProcessing/opencv/components/TkCalibGUI
openrtm @ openrtm.org
openrtm @ openrtm.org
2014年 6月 10日 (火) 12:56:54 JST
Author: kawauchi
Date: 2014-06-10 12:56:53 +0900 (Tue, 10 Jun 2014)
New Revision: 165
Modified:
branches/newCMakeForVC2010/ImageProcessing/opencv/components/TkCalibGUI/TkCalibGUIComp.py
branches/newCMakeForVC2010/ImageProcessing/opencv/components/TkCalibGUI/tkcalibgui.py
Log:
Corrected the variable name.
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/TkCalibGUI/TkCalibGUIComp.py
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/TkCalibGUI/TkCalibGUIComp.py 2014-05-30 07:23:19 UTC (rev 164)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/TkCalibGUI/TkCalibGUIComp.py 2014-06-10 03:56:53 UTC (rev 165)
@@ -245,7 +245,7 @@
# #
def onActivated(self, ec_id):
- self.gui.setConsumerPointer(self._CalibrationService._ptr())
+ self.gui.setProviderPointer(self._CalibrationService._ptr())
return RTC.RTC_OK
Modified: branches/newCMakeForVC2010/ImageProcessing/opencv/components/TkCalibGUI/tkcalibgui.py
===================================================================
--- branches/newCMakeForVC2010/ImageProcessing/opencv/components/TkCalibGUI/tkcalibgui.py 2014-05-30 07:23:19 UTC (rev 164)
+++ branches/newCMakeForVC2010/ImageProcessing/opencv/components/TkCalibGUI/tkcalibgui.py 2014-06-10 03:56:53 UTC (rev 165)
@@ -554,7 +554,7 @@
self.buttons[num]['save'].config(state = DISABLED)
self.buttons[num]['check'].config(state = NORMAL)
self.buttons[num]['cancel'].config(state = NORMAL)
- self.consumer.captureCalibImage(num)
+ self.provider.captureCalibImage(num)
self.save_btn_state[num] = 1
if not 0 in self.save_btn_state:
self.result_btn.config(state = NORMAL)
@@ -564,7 +564,7 @@
return lambda : self.check_img(n)
def check_img(self, num):
- cameraImage = self.consumer.getCalibImage(num)
+ cameraImage = self.provider.getCalibImage(num)
width = cameraImage.width
height = cameraImage.height
image = cameraImage.pixels
@@ -578,7 +578,7 @@
return lambda : self.cancel_img(n)
def cancel_img(self, num):
- cameraImage = self.consumer.removeCalibImage(num)
+ cameraImage = self.provider.removeCalibImage(num)
self.buttons[num]['save'].config(state = NORMAL)
self.buttons[num]['check'].config(state = DISABLED)
self.buttons[num]['cancel'].config(state = DISABLED)
@@ -589,7 +589,7 @@
# [callback] get result button
def get_result(self):
- self.cameraInfo = self.consumer.getCalibParameter()
+ self.cameraInfo = self.provider.getCalibParameter()
if self.cameraInfo.focalLength.x == 0.0:
self.result_mes.set(self.err_msg1)
return
@@ -633,8 +633,8 @@
#------------------------------------------------------------
# public function
- def setConsumerPointer(self, consumer):
- self.consumer = consumer
+ def setProviderPointer(self, provider):
+ self.provider = provider
def set_image(self, image, width, height):
if self.view_flg:
@@ -670,7 +670,7 @@
def redraw_gui(self, num):
if self.pic_num != num:
# Remove all saved images
- self.consumer.removeCalibImage(-1)
+ self.provider.removeCalibImage(-1)
self.pic_num = num
print "tkcalibgui.py : redraw_gui : pic_num changed = %d" % self.pic_num
self.check_lang()
More information about the openrtm-commit
mailing list