Skip to content

Commit

Permalink
Check repeatedly (#1066)
Browse files Browse the repository at this point in the history
I made it so that it is checked multiple times instead of just once.

- fix #1052
  • Loading branch information
Tacha-S authored Feb 7, 2025
1 parent 19de7b5 commit 3e1a794
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions camera_calibration/src/camera_calibration/camera_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def __init__(self, queue, function):

def run(self):
while rclpy.ok():
m = self.queue.get()
if self.queue.empty():
break
self.function(m)
continue
m = self.queue.get()
self.function(m)

class CameraCheckerNode(Node):

Expand Down Expand Up @@ -179,9 +179,9 @@ def handle_monocular(self, msg):
reprojection_rms = numpy.sqrt(numpy.sum(numpy.array(reprojection_errors) ** 2) / numpy.product(reprojection_errors.shape))

# Print the results
print("Linearity RMS Error: %.3f Pixels Reprojection RMS Error: %.3f Pixels" % (linearity_rms, reprojection_rms))
self.get_logger().info("Linearity RMS Error: %.3f Pixels Reprojection RMS Error: %.3f Pixels" % (linearity_rms, reprojection_rms))
else:
print('no chessboard')
self.get_logger().info('no chessboard')

def handle_stereo(self, msg):

Expand All @@ -196,6 +196,6 @@ def handle_stereo(self, msg):

dimension = self.sc.chessboard_size(L, R, self.board, msg=(lcmsg, rcmsg))

print("epipolar error: %f pixels dimension: %f m" % (epipolar, dimension))
self.get_logger().info("epipolar error: %f pixels dimension: %f m" % (epipolar, dimension))
else:
print("no chessboard")
self.get_logger().info("no chessboard")

0 comments on commit 3e1a794

Please sign in to comment.