Skip to content

Commit 9323099

Browse files
Add an auto-camera calibration script (#48)
* [WIP] Adding auto camera calib procedure * [WIP] Adding camera calibration script * [WIP] added cartesian motion, need to add charucoboard code * [WIP] almost done, need to test in-person * Mostly working but for error computation * Fixed bug in calculating transformation error * Change default calib to autocalib * [WIP] moved to separate package, yet to test * Finalized TODOs * Changes from final testing * Reject calibrations that are too far from the manual reference * Make teh hardcoded path consistent with lovelace * Fix off-center issue (#49) Co-authored-by: Ethan K. Gordon <[email protected]> * Update forque centering given updated URDF * Small updates to camera calibration scripts --------- Co-authored-by: Amal Nanavati <[email protected]> Co-authored-by: Ethan K. Gordon <[email protected]>
1 parent dbcd012 commit 9323099

File tree

100 files changed

+2949
-2878
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+2949
-2878
lines changed

ada_calibrate_camera/LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Redistribution and use in source and binary forms, with or without
2+
modification, are permitted provided that the following conditions are met:
3+
4+
* Redistributions of source code must retain the above copyright
5+
notice, this list of conditions and the following disclaimer.
6+
7+
* Redistributions in binary form must reproduce the above copyright
8+
notice, this list of conditions and the following disclaimer in the
9+
documentation and/or other materials provided with the distribution.
10+
11+
* Neither the name of the copyright holder nor the names of its
12+
contributors may be used to endorse or promote products derived from
13+
this software without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18+
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
19+
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20+
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21+
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22+
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23+
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25+
POSSIBILITY OF SUCH DAMAGE.

ada_calibrate_camera/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# ada_camera_calibration
2+
3+
This file contains a nodes to do the following:
4+
1. Calibrate ADA's eye-in-hand system's extrinsics (run every time the eye-in-hand system changes);
5+
2. Publish the transform between ADA's end-effector and the camera (run every time the robot is used with perception).
6+
7+
## Calibrating the Camera's Extrinsics
8+
1. Be in the `src` directory of your workspace.
9+
2. `python3 src/ada_ros2/ada_calibrate_camera/calibrate_camera_start.py`
10+
3. `screen -r calibrate`
11+
1. (See here for relevant [`screen`` commands](https://gist.github.com/jctosta/af918e1618682638aa82))
12+
4. Follow the instructions on-screen. (Motions are expected to take ~6 mins and collect up to 30 samples)
13+
5. Once it is done, verify it:
14+
1. Re-build your workspace.
15+
2. Run `ros2 launch ada_moveit demo.launch.py sim:=mock`
16+
3. In RVIZ, add an axis for `camera_color_optical_frame`
17+
4. Verify it looks like the frame is correct.
18+
19+
## Publishing the Transform
20+
1. `ros2 launch ada_calibrate_camera publish_camera_extrinsics_launch.xml` (this is done by default in the `ada_moveit` launchfile).

ada_calibrate_camera/ada_calibrate_camera/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)