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

Linux Run error #56

Open
LOUYWEI opened this issue Nov 13, 2024 · 5 comments
Open

Linux Run error #56

LOUYWEI opened this issue Nov 13, 2024 · 5 comments

Comments

@LOUYWEI
Copy link

LOUYWEI commented Nov 13, 2024

There were no problems during the installation and compilation process. I also switched to the xrslam-opencv3.4.7 branch. The file structure is as follows.
.
├── data
├── xrprimer
└── xrslam

When executing the ./build/xrslam-pc/player/xrslam-pc-player -sc configs/euroc_slam.yaml -dc configs/euroc_sensor.yaml --tum trajectory.tum euroc://../data/EuRoC/MH_01_easy/mav0 command,

the prompt is:

terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(3.4.7) /home/user/xrprimer/_ext/opencv/modules/imgproc/src/undistort.dispatch.cpp:177: error: (-215:Assertion failed) dst.data != src.data in function 'undistort'

How to solve it?

@Idea-in-Dream
Copy link

Version rollback
commit 74d7fa6 (tag: v0.6.0)
this available

@LOUYWEI
Copy link
Author

LOUYWEI commented Nov 14, 2024

Thanks @Idea-in-Dream, it can run, if possible, I would also like to ask how the real-time performance of this algorithm is. When I run it through ROS, I find that there is a large delay in trajectory generation. Thank you very much for your help!

@Idea-in-Dream
Copy link

You can try to turn on multithreaded mode, it will get faster, otherwise single threaded, it takes 150ms per frame (android)

@Idea-in-Dream
Copy link

The cpu usage is very high. Do you have this problem?

@LOUYWEI
Copy link
Author

LOUYWEI commented Nov 15, 2024

I'm sorry, no, my CPU utilization is only a few percent. My PC has many cores, but the utilization is not high, so the bag has finished playing but the trajectory has not been drawn. Is there any relevant setting in the multi-threaded code you mentioned? I'm just starting to use this code and I'm not familiar with it yet. Thank you!

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

2 participants