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

Googletest setup instructions #2

Open
mitchallain opened this issue Nov 5, 2021 · 4 comments
Open

Googletest setup instructions #2

mitchallain opened this issue Nov 5, 2021 · 4 comments

Comments

@mitchallain
Copy link

Thanks for releasing this work.

Question regarding the build process: can you explain your googletest package setup? The string googletest is not a rosdep key, which leads me to believe that you are using a catkin-ized version of the source code for googletest?

I am able to build with tests disabled, but had a little trouble linking my system install of gtest against this package. For instance,

[build] Found '101' packages in 0.0 seconds.
[build] Updating package table.
Starting  >>> catkin_tools_prebuild
Finished  <<< catkin_tools_prebuild                [ 1.8 seconds ]
Starting  >>> cartographer_ros_msgs
Finished  <<< cartographer_ros_msgs                [ 3.9 seconds ]
Starting  >>> cartographer_ros
_____________________________________________________________________________________________________________________________________________
Errors     << cartographer_ros:cmake /home/mallain/catkin_ws/logs/cartographer_ros/build.cmake.000.log
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "googletest" with
  any of the following names:

    googletestConfig.cmake
    googletest-config.cmake

  Add the installation prefix of "googletest" to CMAKE_PREFIX_PATH or set
  "googletest_DIR" to a directory containing one of the above files.  If
  "googletest" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:140 (find_package)


cd /home/mallain/catkin_ws/build/cartographer_ros; catkin build --get-env cartographer_ros | catkin env -si  /usr/bin/cmake /home/mallain/catkin_ws/src/modular_cartographer/cartographer_ros --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/mallain/catkin_ws/devel/.private/cartographer_ros -DCMAKE_INSTALL_PREFIX=/home/mallain/catkin_ws/install; cd -
.............................................................................................................................................

@mitchallain
Copy link
Author

Looks like the file src/metrics/internal/metrics_test.cc needs to be ommitted from SRC_FILES in CMakeLists.txt, since it needs to be linked against GTest.

src/metrics/internal/metrics_test.cc

@brta-mszarski
Copy link
Contributor

Hi @mitchallain, you are correct about the catkinization.
We are planning to release an updated code drop shortly which will improve documentation and fix the build.
Thanks for your interest, and stay tuned!

@Nobreakfast
Copy link

Hi @mitchallain, you are correct about the catkinization.
We are planning to release an updated code drop shortly which will improve documentation and fix the build.
Thanks for your interest, and stay tuned!

Hi, like your work. Could you specify the instruction of this repo, as there's no launch file. It cannot provide base_link -> odom transform in this example https://google-cartographer-ros.readthedocs.io/en/latest/demos.html .

Could you help me?

@jkl100
Copy link

jkl100 commented Apr 18, 2024

Hi @mitchallain, you are correct about the catkinization. We are planning to release an updated code drop shortly which will improve documentation and fix the build. Thanks for your interest, and stay tuned!

Hello, has the code been updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants