Giter Site home page Giter Site logo

Comments (8)

diametrical avatar diametrical commented on August 14, 2024 1

Got the same issue, as I installed the g2opy by myself with the wrong branch.

Issued solved by running rsync and make a python3 setup.py install

G2OPY_REVISION=5587024
git checkout $G2OPY_REVISION
rsync ./g2opy_changes/types_six_dof_expmap.h ./g2opy/python/types/sba/types_six_dof_expmap.h
rsync ./g2opy_changes/sparse_optimizer.h ./g2opy/python/core/sparse_optimizer.h   
rsync ./g2opy_changes/python_CMakeLists.txt ./g2opy/python/CMakeLists.txt   
cd build
cmake .. $EXTERNAL_OPTION
make -j8
cd ..
python3 setup.py install

from pyslam.

luigifreda avatar luigifreda commented on August 14, 2024

Hi,
some questions:

  • which is your OS?
  • which install script did you use?

That message means pyslam is not using the custom g2o that needs to be compiled via the install scripts.

from pyslam.

JeffreyYH avatar JeffreyYH commented on August 14, 2024

Thanks for your reply Luigi,
I am using Ubuntu 18.04 and I used install_thirdparty.sh to install g2o.

from pyslam.

luigifreda avatar luigifreda commented on August 14, 2024

I cleaned with
$ ./clean.sh
and launched again a new install with
$ ./install_all.sh
and everything runs correctly.

Can you please check that you have a file like thirdparty/g2opy/lib/g2o.cpython-36m-x86_64-linux-gnu.so?
If not then we have a problem with the compilation of g2o.

Do you have another installation of g2o for python?
If yes, could you please try to modify its base folder path temporarily and launch main_slam.py again just to check if there is an interference with the lib paths?

I've fixed some small script errors. They should not be critical for your problem.
In any case, you may want to pull and try again.

from pyslam.

JeffreyYH avatar JeffreyYH commented on August 14, 2024

Thanks for the kind explanation, Luigi.

I pulled the new changes and remove my previous g2opy and g2o(cpp) installation and reinstalled third_party by running ./install_thirdparty.sh and ./install_cpp.sh. But the problem remains.

The reason that I did not use the script install_all.sh directly is that I need different versions of some python dependencies (e,g. pytorch). But I don't think that is a issue, right?

from pyslam.

luigifreda avatar luigifreda commented on August 14, 2024

Do you have rsync installed?
Did you run the script install_basic.sh?

Please, make sure that the actual commands are executed
Screenshot from 2021-03-22 23-16-36

from pyslam.

JeffreyYH avatar JeffreyYH commented on August 14, 2024

Yes, I run install_all.sh and the problem remains.

from pyslam.

luigifreda avatar luigifreda commented on August 14, 2024

Could you please answer the following questions?

  1. Do you have another installation of g2o for python?
    If yes, could you please try to modify its base folder path temporarily and launch main_slam.py again just to check if there is an interference with the lib paths?

  2. Could you please make sure that the following commands are executed and tell me what is happening there when you try to manually run them?
    https://user-images.githubusercontent.com/10080262/112065377-d61ac080-8b64-11eb-920b-b1b9ab3c65e4.png

from pyslam.

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.