Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/install #96

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ wstool init
wstool merge hand_eye_calibration/all_dependencies.rosinstall
wstool update -j 8

# Ignore packages depending on brisk
touch aslam_cv2/aslam_cv_tracker/CATKIN_IGNORE
touch aslam_cv2/aslam_cv_detector/CATKIN_IGNORE
touch aslam_cv2/aslam_cv_pipeline/CATKIN_IGNORE

# Build hand_eye_calibration_package
catkin build hand_eye_calibration hand_eye_calibration_target_extractor hand_eye_calibration_batch_estimation
```
Expand Down
6 changes: 3 additions & 3 deletions hand_eye_calibration_target_extractor/src/target_extractor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <limits>

#include <aslam/calibration/target-aprilgrid.h>
#include <aslam/cameras/camera-factory.h>
#include <aslam/cameras/camera.h>
#include <aslam/common/pose-types.h>
#include <aslam/geometric-vision/pnp-pose-estimator.h>
Expand Down Expand Up @@ -232,9 +233,8 @@ int main(int argc, char** argv) {
}
}

aslam::Camera::ConstPtr camera =
aslam::Camera::loadFromYaml(FLAGS_eval_camera_yaml);
CHECK(camera);
YAML::Node yaml_node = YAML::LoadFile(FLAGS_eval_camera_yaml.c_str());
aslam::Camera::ConstPtr camera = aslam::createCamera(yaml_node);

constexpr bool kRunNonlinearRefinement = true;
const double kPixelSigma = 0.5;
Expand Down