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

Reconstruct and texture mesh failed! #31

Closed
Leonard-Yao opened this issue Jan 7, 2022 · 11 comments
Closed

Reconstruct and texture mesh failed! #31

Leonard-Yao opened this issue Jan 7, 2022 · 11 comments
Labels

Comments

@Leonard-Yao
Copy link

Hi, Lin. It's really a great job, especially the reconstruct module.
However, I occurred some weird problems.

=============================================================
App name : R3LIVE: A Robust, Real-time, RGB-colored, LiDAR-Inertial-Visual tightly-coupled state Estimation and mapping package
Build date : Jan 7 2022 14:23:18
CPU infos : 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
RAM infos : 31.21GB Physical Memory 24.81GB Virtual Memory
OS infos : Linux 5.4.0-92-generic (x86_64)
=============================================================
+++++++++++++++++++++++++++++++++++++++++++++++
Here is the your software environments:
GCC version : 8.4.0
Boost version : 1.65.1
Eigen version : 3.3.4
OpenCV version : 3.4.16
+++++++++++++++++++++++++++++++++++++++++++++++

I can't reconstruct and texture mesh when I use hkust_campus_seq_01.bag .And sometimes with the error
catkin_r3live_ws/src/r3live/r3live/src/loam/IMU_Processing.cpp, 132, check_state fail !!!! -8.28157 -10.0624 -6.91589

It seems that there is only RGB_map_0 point cloud.
2022-01-07 14-37-03 的屏幕截图

After save the map , the point cloud is very sparse.

2022-01-07 14-38-17 的屏幕截图

so the final illustration as follows(include rgb_pt.pcd):
2022-01-07 15-35-25 的屏幕截图

@ziv-lin
Copy link
Member

ziv-lin commented Jan 7, 2022

When appear the print of

catkin_r3live_ws/src/r3live/r3live/src/loam/IMU_Processing.cpp, 132, check_state fail !!!! -8.28157 -10.0624 -6.91589

This means your shouldn't setup up your environment well, I suggest you see these two issues here:
#20
#11
Hope you can find your solutions soon.

@Leonard-Yao
Copy link
Author

When appear the print of

catkin_r3live_ws/src/r3live/r3live/src/loam/IMU_Processing.cpp, 132, check_state fail !!!! -8.28157 -10.0624 -6.91589

This means your shouldn't setup up your environment well, I suggest you see these two issues here:

#20

#11

Hope you can find your solutions soon.

Thanks for your reply. I have tried several strategy, and I'm not sure it's blamed to opencv.

2022-01-11 11-48-23 的屏幕截图

when I built it, I got warning :

warning: enumeral mismatch in conditional expression: ‘Eigen::StorageOptions’ vs ‘Eigen::Default_t’ [-Wenum-compare]

Then play hkust_campus_seq_01.bag. Before moving device, the system was not stable with the error:

catkin_r3live_ws/src/r3live/r3live/src/loam/IMU_Processing.cpp, 132, check_state fail !!!!

After moving, it seems that there was the first frame of the RGB map :
2022-01-11 10-47-27 的屏幕截图

but registered point cloud map can be built very well.
2022-01-11 10-47-03 的屏幕截图

Whether Eigen also lead to such error:

catkin_r3live_ws/src/r3live/r3live/src/loam/IMU_Processing.cpp, 132, check_state fail !!!!

@ziv-lin
Copy link
Member

ziv-lin commented Jan 11, 2022

Is other bags exist the same error?

@Leonard-Yao
Copy link
Author

@ziv-lin
2022-01-11 14-48-54 的屏幕截图

Is other bags exist the same error?

hkust_campus bags can run, others run with the error :

catkin_r3live_ws/src/r3live/r3live/src/loam/IMU_Processing.cpp, 132, check_state fail !!!!

2022-01-11 14-46-59 的屏幕截图

@ziv-lin
Copy link
Member

ziv-lin commented Jan 11, 2022

Your mapping is so wired...
What is the output of your terminal after you type:

pkg-config --modversion opencv

@Leonard-Yao
Copy link
Author

@ziv-lin version: 3.4.16 . I have uninstall all the other opencv version(include ros) . The eigen is also unique . opencv with cuda .

@ziv-lin
Copy link
Member

ziv-lin commented Jan 11, 2022

Hmm, I have no clue why your result is so weird...
Since there are a large number of users had successfully reproduced our result (see the following links), I guess (I have no evidence) that there might be some strange configurations in your environment that cause the problem so weird.

Lastly, if possible, can you try it in a totally new environment or machine?


Reference:
https://blog.csdn.net/handily_1/article/details/122271243
https://zhuanlan.zhihu.com/p/453038352
https://www.bilibili.com/video/BV1eb4y1e7Ui?from=search&seid=12262955863144862401&spm_id_from=333.337.0.0

@Leonard-Yao
Copy link
Author

@ziv-lin Thank U, I change the operation version to ubuntu 20.04 and rebuilt the project. It seems that it works very well and can reconstruct successfully. And it's no need to consider the problem of opencv version . By the way, I notice that you use boost library in this work, whether you will consider to develop multi-atlas function like orb-slam3, which is very useful in AR/VR?

@ziv-lin
Copy link
Member

ziv-lin commented Jan 12, 2022

Nice, happy to hear that you have solved your problem. Even though I have no idea why your result was so weird on your previous computer.

I have run orb-slam3 previously in this early year, which is actually, really great work in this field of research. However, I haven't had a careful look at its implementation yet. And, if possible, I will consider adding the multi-atlas functions by referring to orb-slam3.

@Leonard-Yao
Copy link
Author

@ziv-lin Hi, I can reconstructed mesh textured_mesh.ply, but I have no idea how to import *.ply file into UE4 . It seems that UE4 dosen't support to import this kind of file directly on ubuntu. Can you tell me your method to achieve it. Thanks advance.

@stale
Copy link

stale bot commented Feb 7, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Feb 7, 2022
@stale stale bot closed this as completed Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants