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

Optimization step ros::package::getPath("hand_eye_calibration_batch_estimation") throws error #84

Open Kaju-Bubanja opened 5 years ago

Kaju-Bubanja commented 5 years ago

I'm trying to run the optimization step, but when I call it I get following stacktrace:

*** Aborted at 1535531683 (unix time) try "date -d @1535531683" if you are using GNU date ***
PC: @     0x7fc660f627fd boost::filesystem::detail::status()
*** SIGSEGV (@0x0) received by PID 32162 (TID 0x7fc664490740) from PID 0; stack trace: ***
    @     0x7fc6623394b0 (unknown)
    @     0x7fc660f627fd boost::filesystem::detail::status()
    @     0x7fc65fbcef15 _ZN7rospack11Rosstackage12getCachePathB5cxx11Ev
    @     0x7fc65fbcf6e4 rospack::Rosstackage::validateCache()
    @     0x7fc65fbd11ba rospack::Rosstackage::readCache()
    @     0x7fc65fbd387c rospack::Rosstackage::crawl()
    @     0x7fc65fbe4d9b rospack::rospack_run()
    @     0x7fc65fbe1077 rospack::ROSPack::run()
    @     0x7fc65fbe154a rospack::ROSPack::run()
    @     0x7fc662e711e1 ros::package::command()
    @     0x7fc662e71389 ros::package::getPath()
    @           0x40ded9 loadConfigFile()
    @           0x40b87a main
    @     0x7fc662324830 __libc_start_main
    @           0x40c8f9 _start
Segmentation fault (core dumped)

I don't know what the problem could be. I relinked all my boost binaries to the 1.58(and checked) version so that is not an issue. Looked into this but couldn't solve it. But my fix was to simply hardcode the path instead of using ros::package::getPath.