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

error: ‘MapPub’ was not declared in this scope #10

Open
msruan opened this issue Oct 24, 2023 · 2 comments
Open

error: ‘MapPub’ was not declared in this scope #10

msruan opened this issue Oct 24, 2023 · 2 comments

Comments

@msruan
Copy link

msruan commented Oct 24, 2023

When I try to run the orbslam.sh, happens this error:

/home/user/Documents/Paul/tello-ros2/libs/Pangolin/build/ORB_SLAM2/src/System.cc:259:9: error: ‘MapPub’ was not declared in this scope
259 | MapPub->SetCurrentCameraPose(Tcw);
| ^~~~~~
make[2]: *** [CMakeFiles/ORB_SLAM2.dir/build.make:76: CMakeFiles/ORB_SLAM2.dir/src/System.cc.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:173: CMakeFiles/ORB_SLAM2.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

If I comment the lines where the MapPub is used, works fine, but the compilation stops on
[ 72%] Linking CXX shared library ../lib/libORB_SLAM2.so

It nevers finish. What I need to do?

@tentone
Copy link
Owner

tentone commented Nov 20, 2023

Hello

It should eventually finish, on that step, do you have any error there?

Hows memory usage while compiling?

@HEITORNERY
Copy link

Hi, I have the same issue while I'm building the ORB_SLAM2 package. My error is bellow:
erro
And I tried to comment the lines where the MapPub is used, how it is in the image bellow:
mappub
But when I'm building again the ORB_SLAM2 package it never finishes, how it is in the image bellow:
build
And my memory usage while compiling is bellow:
top
How make it works ?

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

3 participants