Giter Site home page Giter Site logo

Comments (5)

luigifreda avatar luigifreda commented on July 16, 2024 1

Hi @nl22-nmsu,
thank you for your feedback.

Unfortunately, you installed pyslam with a wrong procedure.
With ubuntu 20 or ubuntu 22, you need to follow the instructions reported in this section:
https://github.com/luigifreda/pyslam?tab=readme-ov-file#ubuntu-2004-and-ubuntu-2204
In particular, once you run

$ git clone --recursive https://github.com/luigifreda/pyslam.git
$ cd pyslam 
$ git checkout ubuntu20  

you have to follow the instructions on this page
https://github.com/luigifreda/pyslam/blob/master/PYTHON-VIRTUAL-ENVS.md
and then you need to run

$ . install_all_venv.sh 

and NOT

$ . install_all.sh 

as you did. At present time, with ubuntu 20 and 22, python3-venv installation and usage is required to let pyslam correctly run (the script install_all_venv.sh takes care of that).

Hope this helps.

from pyslam.

luigifreda avatar luigifreda commented on July 16, 2024

Hi,
which install procedure did you use?

from pyslam.

nl22-nmsu avatar nl22-nmsu commented on July 16, 2024

I followed the ubuntu 20 install.

The exact commands I ran:

git clone --recursive https://github.com/luigifreda/pyslam.git
cd pyslam 
git checkout ubuntu20
. install_all.sh

There was a slight modification that I made to utils_goem.py in the poseRT() function, instead of ret[:3,3] = t I changed it to ret[:3, 3] = np.array(t).reshape(3,1).squeeze() because there was an odd type error or something like that. Though this wouldn't cause an issue from what I can tell.

from pyslam.

nl22-nmsu avatar nl22-nmsu commented on July 16, 2024

Okay, I figured it out.

There were a few things that were building incorrectly. I made 3 changes:

  1. as previously stated, I modified line 133 in install_thirdparty.sh

  2. I also had the same _Py_ZeroStruct error for pangolin. To solve that I added two cmake tags to two lines. I'm not too sure what the difference is for the installs so I just added these tags to both based on this issue I found.
    line 74: cmake ../ -DAVFORMAT_INCLUDE_DIR="" -DCPP11_NO_BOOST=ON $EXTERNAL_OPTION -DBUILD_PANGOLIN_FFMPEG=OFF -DPYBIND11_PYTHON_VERSION=3.8

    line 101: cmake .. -DBUILD_PANGOLIN_LIBREALSENSE=OFF $EXTERNAL_OPTION -DBUILD_PANGOLIN_FFMPEG=OFF -DPYBIND11_PYTHON_VERSION=3.8 # disable realsense

  3. Once I got past these issues I had an issue building thirdparty/orbslam2_features. I had the TypeError: 'NoneType' object is not callable from feature_manager. To resolve this I changed the cmake command in thirdparty/orbslam2_features/build.sh to cmake .. -DPYTHON_EXECUTABLE=/usr/bin/python3. Then did a clean build on that folder.

Now things seem to be working. Hope this helps anyone else who may have these same issues.

from pyslam.

nl22-nmsu avatar nl22-nmsu commented on July 16, 2024

Oh, I see, my impressions was that the virtual environment was optional. I'll redo it with the virtual environment to make sure everything is running correctly. It seemed to be working on my round about way of installing from what I can tell though.

Thanks for your prompt replies!

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.