ethz-asl/hand_eye_calibration

catkin_build error: ‘loadFromYaml’ is not a member of ‘aslam::Camera’

Opened this issue · 3 comments

Hello
There is an error when I catkin_build this package:

/home/wang/imta_project/ethz_hand_eye_ws/src/hand_eye_calibration/hand_eye_calibration_target_extractor/src/target_extractor.cc:236:9: error: ‘loadFromYaml’ is not a member of ‘aslam::Camera’
         aslam::Camera::loadFromYaml(FLAGS_eval_camera_yaml);
         ^

I check the aslam_cv2/src/camera.cc, there is no loadFromYaml function. I don't know how to fix this issue, Could you please provide some advice? Thanks a lot!

pz727 commented

I have also met the same problem.

catkin_ws/src/hand_eye_calibration/hand_eye_calibration_target_extractor/src/target_extractor.cc:236:9: error: ‘loadFromYaml’ is not a member of ‘aslam::Camera’
aslam::Camera::loadFromYaml(FLAGS_eval_camera_yaml);

But I removed the hand_eye_calibration_target_extractor Folder because I don't have to use it.

@pz727 Thanks, but if you did not use the extractor, how do you extractor the pose from images?

Hi, if you check the source code of target_extractor.cc, there is no such function and it has been changed to " camera->deserializeFromFile(FLAGS_eval_camera_yaml);". I don't know why it would be aslam::Camera::loadFromYaml(FLAGS_eval_camera_yaml) when following the installation guide.
I changed it to the source code and it succeeded.

Hope that can help you!