Commit 21421366 authored by Mian Asbat ahmad's avatar Mian Asbat ahmad

function return values changed to x_values and residual error

parent ca993272
Pipeline #2152 failed with stages
in 30 minutes and 32 seconds
...@@ -77,7 +77,7 @@ def pivot_calibration(matrices4x4): ...@@ -77,7 +77,7 @@ def pivot_calibration(matrices4x4):
if item != 0: if item != 0:
rank += 1 rank += 1
if rank < 6: # pylint: disable=literal-comparison if rank < 6: # pylint: disable=literal-comparison
raise ValueError("PivotCalibration: Failed. Rank < 6") raise ValueError("PivotCalibration: Failed. Rank < 6")
# Residual Matrix # Residual Matrix
...@@ -95,15 +95,16 @@ def pivot_calibration(matrices4x4): ...@@ -95,15 +95,16 @@ def pivot_calibration(matrices4x4):
# Output # Output
# MakeIdentity matrix # MakeIdentity matrix
output_matrix = np.identity(4) # output_matrix = np.identity(4)
#
# output_matrix[0, 3] = x_values[0, 0]
# output_matrix[1, 3] = x_values[1, 0]
# output_matrix[2, 3] = x_values[2, 0]
output_matrix[0, 3] = x_values[0, 0] # print("pivotCalibration=(", x_values[3, 0], ","
output_matrix[1, 3] = x_values[1, 0] # , x_values[4, 0], ",", x_values[5, 0],
output_matrix[2, 3] = x_values[2, 0] # "),residual=", residual_error)
print("pivotCalibration=(", x_values[3, 0], "," # print(x_values)
, x_values[4, 0], ",", x_values[5, 0],
"),residual=", residual_error)
return residual_error, x_values[0, 0], x_values[1, 0], x_values[2, 0], \ return np.matrix(x_values), residual_error
x_values[0, 0], x_values[1, 0], x_values[2, 0]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment