Skip to content

Commit

Permalink
Calibrate honey and update calibration instructions for 20.04. (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoltin authored Nov 8, 2023
1 parent 589d392 commit 803beb1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 44 deletions.
6 changes: 3 additions & 3 deletions astrobee/config/robots/honey.config
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ robot_geometry = {

robot_camera_calibrations = {
nav_cam = {
distortion_coeff = 0.99872,
distortion_coeff = 0.998757,
intrinsic_matrix = {
607.64218, 0.0, 624.85552,
0.0, 606.53899, 514.57737,
610.12594, 0.0, 628.35064,
0.0, 610.12594, 514.89592,
0.0, 0.0, 1.0
},
gain=100,
Expand Down
2 changes: 1 addition & 1 deletion scripts/calibrate/intrinsics_calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def calibrate_camera(
return None

return (
bag_dir + "/camchain-" + bag_name + ".yaml"
bag_dir + "/" + bag_name + "-camchain.yaml"
) # The file where kalibr writes its output


Expand Down
45 changes: 5 additions & 40 deletions scripts/calibrate/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,52 +7,17 @@ This folder contains various scripts for calibration.
- Build and install the Astrobee code on the robot.
- Install Kalibr on your computer.

## Installation instructions for Kalibr for Ubuntu 18.04
## Installation instructions for Kalibr for Ubuntu 20.04

sudo apt install python-rosinstall ipython python-software-properties \
python-git ipython python-catkin-tools
sudo apt install libopencv-dev ros-melodic-vision-opencv
Install Kalibr following the instructions at:

# Install pip and use it to install python packages
https://github.com/ethz-asl/kalibr

We assume that Python 2 is used.

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py
sudo -H pip install testresources
sudo -H pip install python-igraph==0.8 --upgrade
sudo -H pip install numpy==1.15.0 opencv-python==4.2.0.32

If necessary, pip and the other packages can be installed in user
space. The PYTHONPATH may need to be set for such packages.
The pip flags --user, --force, and --verbose may be useful.

Kalibr uses Python 2, and many packages are transitioning to Python 3,
so some effort may be needed to install the Python 2 dependencies.

# Build using catkin
export KALIBR_WS=$HOME/source/kalibr_workspace
mkdir -p $KALIBR_WS/src
cd $KALIBR_WS
source /opt/ros/melodic/setup.bash
catkin init
catkin config --extend /opt/ros/melodic
catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release
cd $KALIBR_WS/src
git clone [email protected]:oleg-alexandrov/Kalibr.git

If the above cloning operation fails, it is likely due to some ssh settings on your machine not being as GitHub expects. Then try:
However, check out our fork which supports the assymetric aprilgrid
installed on Astrobee's dock:

git clone https://github.com/oleg-alexandrov/Kalibr.git

In either case, continue as follows:

# This line takes care of catkin not finding numpy.
ln -s /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy \
$KALIBR_WS/src/Kalibr/Schweizer-Messer/numpy_eigen/include

catkin build -DCMAKE_BUILD_TYPE=Release -j4

# Prepare the environment. This is expected for all the steps below.

Run, for example:
Expand Down

0 comments on commit 803beb1

Please sign in to comment.