ethz-asl / hand_eye_calibration

Python tools to perform time-synchronization and hand-eye calibration.
BSD 3-Clause "New" or "Revised" License
429 stars 115 forks source link

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

Open TouchDeeper opened 3 years ago

TouchDeeper commented 3 years ago

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 3 years ago

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.

TouchDeeper commented 3 years ago

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

oym1994 commented 3 years ago

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!