Giter VIP home page Giter VIP logo

Comments (8)

lukasvst avatar lukasvst commented on July 28, 2024 1

Update: Don't use the patch files, but just use the new branch feature/updated_gtsam (see below).

Thanks for the information on the problem, could you try out the following and let me now if it works?

There is a workaround to make DM-VIO work with the GTSAM version v4.0.3 (which is not the newest one but not as old as the current default).

You need to apply the following patch files to DM-VIO and GTSAM respectively: https://gist.github.com/lukasvst/d2da820f324bac99b4ba0c9dc0bc2a71

In the GTSAM directory run
git checkout 4.0.3 git apply patch_gtsam_v4_0_3.patch
and recompile GTSAM with the following cmake command!

cmake -DGTSAM_POSE3_EXPMAP=ON -DGTSAM_ROT3_EXPMAP=ON -DGTSAM_USE_SYSTEM_EIGEN=ON -DGTSAM_BUILD_WITH_MARCH_NATIVE=OFF ..
make -j4
sudo make install

In the DM-VIO directory run
git apply PathDM-VIOForGTSAMv4_0_3.patch
and recompile.

When running DM-VIO, you might get the error:
dmvio_dataset: error while loading shared libraries: libmetis-gtsam.so: cannot open shared object file: No such file or directory
In this case you need to run (and probably recompile)
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH as explained in this issue borglab/gtsam#380

If this helps I will make upgrading GTSAM in the master branch a priority. Otherwise please let me know, then I'll investigate further.

from dm-vio.

lukasvst avatar lukasvst commented on July 28, 2024 1

Thanks for the update, I'm glad it works now.
I have now merged it into master.

from dm-vio.

lukasvst avatar lukasvst commented on July 28, 2024

It looks like an issue with TBB and GTSAM.
Which operating system are you using and have you installed TBB with sudo apt install libtbb-dev?
It might make sense to delete the build folder of DM-VIO and GTSAM and rebuild afterwards.
Also, do the tests and examples from GTSAM work?

from dm-vio.

JaafarMahmoud avatar JaafarMahmoud commented on July 28, 2024

Thank you for your fast reply!
I am building on Ubuntu 20 and yes; I tried installing TBB as you suggested.
Thanks for the suggestion. I will try that.

from dm-vio.

shreyask3107 avatar shreyask3107 commented on July 28, 2024

@lukasvst
Hi, even I face exactly the same issue.
I am building it on Ubuntu 20.04 and I did install tbb before building it.

There isn't any build folder in dm-vio and gtsam (we create it during building). Could you elaborate on that?

In addition to this, I was curious whether this repo has been tested with more recent gtsam versions? I am guessing they might have resolved this issue in the latest versions.

Thanks!

from dm-vio.

JaafarMahmoud avatar JaafarMahmoud commented on July 28, 2024

@shreyk25 Hello, i tried building on different computer, it was successfully built without any problems...
I tried so many things on my notebook... But so far couldn't solve it... So reinstalling Ubuntu is an option.
About building with newer gtsam... I tried that... You will have some issues of using old and different functions from the specified commit...

from dm-vio.

lukasvst avatar lukasvst commented on July 28, 2024

I created a new branch feature/updated_gtsam which supports the newest GTSAM version.
To try it out just git checkout feature/updated_gtsam and follow the installation instructions for GTSAM again.

If it works I will merge it into master later.

from dm-vio.

JaafarMahmoud avatar JaafarMahmoud commented on July 28, 2024

Hello!
The branch feature/updated_gtsam worked with latest gtsam with no problems...
Thanks for your great work.

from dm-vio.

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.