openxrlab / xrslam

OpenXRLab Visual-inertial SLAM Toolbox and Benchmark
Apache License 2.0
455 stars 55 forks source link

Linux Run error #56

Open ebigMan opened 1 day ago

ebigMan commented 1 day ago

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 commented 1 day ago

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

ebigMan commented 23 hours ago

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 commented 20 hours ago

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

Idea-in-Dream commented 20 hours ago

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

ebigMan commented 5 hours ago

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!