GithubHelp home page GithubHelp logo

Gtest error while compilation about sptam HOT 12 CLOSED

lrse avatar lrse commented on August 11, 2024
Gtest error while compilation

from sptam.

Comments (12)

taihup avatar taihup commented on August 11, 2024

Check issue #12. You can find the same problem and the associated solution. However I summarised it here:

Uninstall completely gtest:

cd /usr/src/gtest/
sudo mkdir build
cd build
sudo cmake .. -DBUILD_SHARED_LIBS=ON

Remove devel and build directory inside catkin workspace in order to recompile from the scratch S-PTAM.

from sptam.

HainingLuo avatar HainingLuo commented on August 11, 2024

Thank you soooooo much for your help.

The project is fully compiled now. However, when I was running the KITTI and EuRoC datasets, I encountered another issue:
screenshot from 2018-05-18 09-57-02

I suppose this has nothing to do with the commands I used(since I was following your tutorial). For KITTI, I was using sequence 01 and it had been depressed, and for EuRoC, I chose V1_01_easy and had added sensor information as you suggested in README.

Thanks in advance.

from sptam.

taihup avatar taihup commented on August 11, 2024

The sequence 01 is one of the hardest in KITTI. So you must have a very strong computer to process all the frames. You also can tune some parameters to make it work better. Another posibility, if you don have a strong computer, you can play the dataset with a lower rate (rosbag play --clock --rate 0.5 dataset.bag). However, I suggest to try the system in other kitti sequence like 00. S-PTAM Vision only does not work properly in all the EuRoc sequences (and IMU is required to improve the performance, we have been doing some work to integrate the IMU but we do not have enough time to add all the documentation and support in the sort-term). Again, I suggest to test S-PTAM in the EuRoc MH01.sequence, that should works fine.

from sptam.

HainingLuo avatar HainingLuo commented on August 11, 2024

Thanks a ton for help.

I tried to slow the replay of bagfile but didn't see any changes(possibly due to the poor computability of Jetson TX1 I was using). Then I transplanted the whole project to a much more powerful workstation. The compilation passed, very easily, but by the time I ran the KITTI sequence 00, I got this error:
screenshot from 2018-05-19 15-41-12
And
screenshot from 2018-05-19 15-41-42
I thought maybe the package 'hector_pose_estimation' somehow corrupted, and I reinstalled it with
sudo apt-get install ros-kinetic-hector-pose-estimation
and got
screenshot from 2018-05-19 15-44-51

Do you have any idea what caused this?

Thanks in advance.

from sptam.

taihup avatar taihup commented on August 11, 2024

I think you have some problem linking with g2o library. Check http://gdwarner.blogspot.com.ar/2009/03/c-runtime-symbol-lookup-error.html to understand the error. Tried to remove g2o and installed it again with all the dependencies. Install g2o with checkinstall command (it is musch better than make install) the Similar error was reported in #19.

from sptam.

HainingLuo avatar HainingLuo commented on August 11, 2024

Hi,
I reinstalled the g2o library following your instruction but unfortunately didn't see any difference.
Thanks for help anyway.

from sptam.

taihup avatar taihup commented on August 11, 2024

Oh, just to be sure. Are you using the right g2o commit? remember that you need the to use the commit: 4b9c2f5b68d14ad479457b18c5a2a0bce1541a90

git clone [email protected]:RainerKuemmerle/g2o.git
git checkout 4b9c2f5b68d14ad479457b18c5a2a0bce1541a90

from sptam.

Gfuse avatar Gfuse commented on August 11, 2024

I am installing sptam package on my OS: ubuntu 18.04, ROS Melodic. But I encounter the following error during compiling.

I tried to Uninstall completely gtest, but the error still exits.
cd /usr/src/gtest/ sudo mkdir build cd build sudo cmake .. -DBUILD_SHARED_LIBS=ON
I also did it
sudo apt install libgtest-dev build-essential cmake cd /usr/src/googletest sudo cmake . sudo cmake --build . --target install
I tried also to install opencv-4.0.1 and CUDA nvidia.

Screenshot from 2019-03-11 02-16-23

I will appreciate If you can help me.
Thank you in advance

from sptam.

taihup avatar taihup commented on August 11, 2024

You have to remove the /usr/local/lib/libgtest.a static libraries. Also, remove the build and devel directories inside your catkin workspace. S-PTAM was not tested on 18.04 yet.

from sptam.

Gfuse avatar Gfuse commented on August 11, 2024

Thank you Taihup for your respond.

from sptam.

taihup avatar taihup commented on August 11, 2024

Did you make it work?

from sptam.

Gfuse avatar Gfuse commented on August 11, 2024

No, my supervisor decided to leave it for now. We will come back to it later.

from sptam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.