Error in GuiWrapper.cpp while buildng rtabmap_ros

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Error in GuiWrapper.cpp while buildng rtabmap_ros

namjoshiniks
Hi Mathieu,

First of all I would like to Thank you for your Awesome work!!
I am a newbie in a computer vision and I am working on Indoor Robot Navigation based on Visual slam.
I am following  this link to install Rtabmap on Jetson TX2.
I am able to install Standalone Rtabmap successfully. but while compiling rtambmap_ros I am getting below error:

 

Kindly help me with this issue. Really appreciate your help.
Awaiting response

Regards,
Nikhil
Reply | Threaded
Open this post in threaded view
|

Re: Error in GuiWrapper.cpp while buildng rtabmap_ros

matlabbe
Administrator
Hi,

It looks like the wrong librtabmap_gui.so is taken. Do you have the a mix of rtabmap built from source and binaries?

Can you go in catkin_ws/build directory and do "make VERBOSE=1" to see to which libraries it tries to link with?

Cheers,
Mathieu
Reply | Threaded
Open this post in threaded view
|

Re: Error in GuiWrapper.cpp while buildng rtabmap_ros

namjoshiniks
Hi Mathieu,

Thank you for a quick reply. I had mix of rtabmap binaries and  rtabmap built from source . I removed those binaries. I removed these binaries by below command:

$ sudo apt-get remove ros-kinetic-rtabmap ros-kinetic-rtabmap-ros

I removed RTABMAP using below steps:

Remove the RTAB-Map's source directory.
Remove RTAB-Map's working directory in "~/Documents/RTAB-Map".
Remove RTAB-Map's configuration file in "~/.rtabmap/rtabmap.ini".

Now, I am trying to reinstall rtbmap but I am getting the same error. I saw your  this post related to librtabmap_gui.so. I can see this lib file with updated the timestamp in /usr/local/lib/ folder.

I was not able to rectify this issue by make logs.
This is the file for make logs for make VERBOSE=1 at ~/catkin_ws/build location:

make_verbose.log

Please let me know.

Thanks,
Nikhil
Reply | Threaded
Open this post in threaded view
|

Re: Error in GuiWrapper.cpp while buildng rtabmap_ros

matlabbe
Administrator
Hi,

It is strange, the automated build is fine and the method is here, unless there is a problem with the default arguments on your system. The code creating the MainWindow is here. You may try modify the code and set explicitly the arguments:
mainWindow_ = new MainWindow(new PreferencesDialogROS(configFile), 0, true);

cheers,
Mathieu
Reply | Threaded
Open this post in threaded view
|

Re: Error in GuiWrapper.cpp while buildng rtabmap_ros

namjoshiniks
Hi Mathieu,

After changing the code, I got the error that it was referring to rtabmap-0.14 libraries and there was a mismatch of the arguments. I deleted those libraries and now, rtabmap_ros is built successfully.  
Thank you for your help.

Thanks,
Nikhil