srv / viso2

A ROS wrapper for libviso2, a library for visual odometry
http://ros.org/wiki/viso2
239 stars 178 forks source link

Memory performance #47

Open dawnos opened 7 years ago

dawnos commented 7 years ago

Hi guys! I've been using libviso2 for a while. Recently I found that the ROS wrapper is memory consuming. The memory increased continuously when I ran viso2_ros. But to my knowledge, visual odometer should not behave like this. Is it storing something else? Do any body meet this problem?

Problem solved. Do not use opencv3.

seanbai2008 commented 7 years ago

Hi Dawnos,

I'm having exactly same problem. Now I'm using ZED camera to feed video to viso2 and when I run libviso2, my memory keep increasing. I did find that my viso2 was using Opencv3 before and I switched it back to opencv2. however the problem is still there.

dawnos commented 7 years ago

Have you recompiled viso2? Which version of opencv2 do you use(by apt-get or compile by yourself)? As I know, zed SDK requires opencv3. Have you uninstall opencv3 totally?

seanbai2008 commented 7 years ago

Thanks for reply. Yes I did some changes in my CMakelist in viso2 and recompiled it using catkin. I check in the build directory that it is linked to opencv2.4.8. Do I really need to uninstall opencv3? I have virtual environment for opencv3 and local version of opencv is 2.4.8. They are mutually independent.

2017-04-13 19:26 GMT-07:00 dawnos notifications@github.com:

Have you recompiled viso2? Which version of opencv2 do you use(by apt-get or compile by yourself)? As I know, zed SDK requires opencv3. Have you uninstall opencv3 totally?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/srv/viso2/issues/47#issuecomment-294070204, or mute the thread https://github.com/notifications/unsubscribe-auth/ANjNnIazGVreaTNC6e4B2cVNxJYpqtTPks5rvtk7gaJpZM4McEUR .

dawnos commented 7 years ago

You can use ldd executable to see which version of opencv does your viso2 link to actually. If it uses opencv2, it may be some problem else.