-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e273a30
commit 4976d11
Showing
10 changed files
with
994 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
367 changes: 367 additions & 0 deletions
367
atom_evaluation/scripts/other_calibrations/cv_eye_in_hand.py
Large diffs are not rendered by default.
Oops, something went wrong.
452 changes: 253 additions & 199 deletions
452
atom_evaluation/scripts/other_calibrations/cv_handeye_calib.py
Large diffs are not rendered by default.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
atom_evaluation/scripts/other_calibrations/test_cv_hand_eye.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import cv2 | ||
import numpy as np | ||
|
||
eye_coords = np.array([[0.0, 0.0, 0.0], [0.0, 1.0, 0.0], | ||
[1.0, 1.0, 0.0], [1.0, 0.0, 0.0]]) | ||
hand_coords = np.array([[0.0, 0.0, 0.0], [0.0, 1.0, 0.0], [ | ||
1.0, 1.0, 0.0], [1.0, 0.0, 0.0]]) | ||
# It is the rotation matrix between the hand and eye | ||
R_target2cam = np.array([[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [ | ||
0.0, 0.0, 1.0], [0.0, 0.0, 0.0]]) | ||
# It is the translation between hand and eye | ||
|
||
x_target2cam = np.array([0.0, 0.0, 0.0, 0.0]) | ||
# It is code for 3*4 matrix transformation | ||
X, _ = cv2.calibrateHandEye(hand_coords, eye_coords, | ||
R_target2cam, t_target2cam) | ||
print(X) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-5 Bytes
(100%)
atom_examples/rihbot/rihbot_calibration/calibration/summary.pdf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.