libopencv_core3.so.3.2 runtime error

Posted by Ross_L on
URL: http://official-rtab-map-forum.206.s1.nabble.com/libopencv-core3-so-3-2-runtime-error-tp4152.html

Hello

First off, the program is amazing! I have rtabmap standalone working and am amazed with the output.

I am however having a problem getting the ros side of things to work, and hoping for some help!

1. Originally I had freenect running "OK-ish", after many hours of problems not being able to get any data. Eventually I was able to get just depthclouds, but no pointclouds. No errors came up though there were some warnings.

2. Later I installed standalone rtabmap via git, and ros via
apt-get
.

3. I originally had trouble installing rtabmap_ros with git due to catkin_make failures with the ros build in
catkin_ws/src
, which failed due to a (now familiar sounding) OpenCV 3.2 and cv-bridge library message. I tried the ROS recommended fix for that of updating my kinetic install, but it did not help. So I went for the apt-get version.

4. Now when I run any rtabmap node or even the standard freenect.launch file, I am getting no topics at all and coming up against something of an error wall. Here is a snippet, though the other errors are along the same theme:

Failed to load nodelet [/camera/depth_registered_rectify_depth] of type [image_proc/rectify] even after refreshing the cache: 
Failed to load library /opt/ros/kinetic/lib//libimage_proc.so. Make sure that you are calling the PLUGINLIB_EXPORT_CLASS macro in the library code, 
and that names are consistent between this macro and your XML. 
Error string: Could not load library (Poco exception = libopencv_core3.so.3.2: cannot open shared object file: No such file or directory)

5. Taking advice from your install instructions, I added this line to my bashrc:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/ros/kinetic/lib/x86_64-linux-gnu

Sadly to no avail.

6. I also tried to build the entire opencv3 library as I read this can help fix library errors, but again I was seeing a consistent build failure.

My installed opencv3 ROS version is 3.3.1. My ROS setup is sourced in my bashrc file.

I don't know if the above are all linked, but is there anything obvious I can do to get functioning freenect and rtabmap back again? I am working on a SLAM project and really need to get the data into RVIZ.

Thanks for reading!

EDIT: Sorry I forgot to say, I am using the Kinect 360!