tier4 / YabLoc

Open source visual localization for self-driving vehicles
Apache License 2.0
186 stars 30 forks source link

package sophus not found error #43

Closed ajay1606 closed 1 year ago

ajay1606 commented 1 year ago

Hello, Awesome and must needed in Autoware. Much awaited module, thank you so much for sharing very useful repository.

We are very interested in testing this module, but unfortunately there is build error stating Sophus missing.

** WARNING ** io features related to pcap will be disabled
CMake Error at CMakeLists.txt:29 (find_package):
  By not providing "FindSophus.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Sophus", but
  CMake did not find one.

  Could not find a package configuration file provided by "Sophus" with any
  of the following names:

    SophusConfig.cmake
    sophus-config.cmake

  Add the installation prefix of "Sophus" to CMAKE_PREFIX_PATH or set
  "Sophus_DIR" to a directory containing one of the above files.  If "Sophus"
  provides a separate development package or SDK, be sure it has been
  installed.

After looking for Sophus library, i realized that currently Sophus library not supported for ROS2-Humble. https://robostack.github.io/humble.html

image

Would you please let us know how to install above library to test this localization module in ROS2-Humble ?

rsasaki0109 commented 1 year ago

I was able to build this package in ROS 2 Humble. Can't you install Sophus with "sudo apt install ros-humble-sophus"? Instead, it might be better to run "rosdep install --from-paths src --ignore-src -r -y" in the workspace.

If you can't install it, you may need to do an "apt upgrade".

KYabuuchi commented 1 year ago

As rsasaki0109 has pointed out, Sophus should be installed with one of those commands.

I'm not familiar with RoboStack, but isn't that page a list of packages offered by RoboStack via the Conda package manager? We can check https://github.com/ros/rosdistro to see if the package can be installed with apt or rosdep.

ajay1606 commented 1 year ago

@rsasaki0109 @KYabuuchi Thank you so much for your feedback and its installed successfully after running rosdep.

And confirmed all dependency installed rosdep install --from-paths src --ignore-src -r -y #All required rosdeps installed successfully

But again following error raised for library glog

CMake Error at CMakeLists.txt:25 (find_package):
  By not providing "Findglog.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "glog", but
  CMake did not find one.

  Could not find a package configuration file provided by "glog" with any of
  the following names:

    glogConfig.cmake
    glog-config.cmake

  Add the installation prefix of "glog" to CMAKE_PREFIX_PATH or set
  "glog_DIR" to a directory containing one of the above files.  If "glog"
  provides a separate development package or SDK, be sure it has been
  installed.

well, sudo apt-get install libgoogle-glog-dev fixed above error. Aswel. !

Thank you so much

KYabuuchi commented 1 year ago

@ajay1606 Sorry. It is my fault. I will update the README later. Thanks for your interest in yabloc. :+1: