Is it a problem of version?

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

Is it a problem of version?

yincanben
Hello,
     When I tried to install rtabmap in my another pc,Through git the latest source,I followed the guidance of this:
Have install ubuntu 12.04 and hydro.

$ git clone https://github.com/introlab/rtabmap.git rtabmap
$ cd rtabmap/build
$ cmake -DCMAKE_INSTALL_PREFIX=~/catkin_ws/devel ..  [<---double dots included]
$ make -j4
$ make install


$ cd ~/catkin_ws
$ git clone https://github.com/introlab/rtabmap_ros.git src/rtabmap_ros
$ catkin_make
The error is:

/home/ycb/catkin_ws/devel/lib/librtabmap_ros.so: undefined reference to `rtabmap::Odometry::process(rtabmap::SensorData const&, rtabmap::OdometryInfo*)'
......
make[2]: *** [/home/ycb/catkin_ws/devel/lib/rtabmap_ros/data_recorder] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/data_recorder.dir/all] Error 2

Can you check it to comfirm which problem occur during compilation.Thank you very much.
Reply | Threaded
Open this post in threaded view
|

Re: Is it a problem of version?

matlabbe
Administrator
Can you show the terminal output after "make install" of the library?
Reply | Threaded
Open this post in threaded view
|

Re: Is it a problem of version?

yincanben
ycb@Tsinghua:~/rtabmap/build$ make install
[  8%] Built target rtabmap_utilite
[  9%] Built target uresourcegenerator
[ 30%] Built target rtabmap_core
[ 87%] Built target rtabmap_gui
[ 89%] Built target rtabmap
[ 90%] Built target consoleApp
[ 91%] Built target imagesJoiner
[ 92%] Built target extractObject
[ 92%] Built target rgbd_camera
[ 93%] Built target vocabularyComparison
[ 93%] Built target databaseViewer
[ 94%] Built target epipolar_geometry
[ 95%] Built target odometryViewer
[ 96%] Built target dataRecorder
[ 97%] Built target calibration
[ 97%] Built target bow_mapping
[100%] Built target rgbd_mapping
Install the project...
-- Install configuration: "Release"
-- Installing: /home/ycb/catkin_ws/devel/lib/rtabmap-0.8/RTABMapConfig.cmake
-- Installing: /home/ycb/catkin_ws/devel/lib/rtabmap-0.8/RTABMapConfigVersion.cmake
-- Up-to-date: /home/ycb/catkin_ws/devel/share/rtabmap/package.xml
-- Installing: /home/ycb/catkin_ws/devel/lib/librtabmap_utilite.so.0.8.0
-- Up-to-date: /home/ycb/catkin_ws/devel/lib/librtabmap_utilite.so.0.8
-- Up-to-date: /home/ycb/catkin_ws/devel/lib/librtabmap_utilite.so
-- Installing: /home/ycb/catkin_ws/devel/include/rtabmap-0.8
-- Installing: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap
-- Installing: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UMutex.h
-- Installing: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/Win32
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/Win32/UWin32.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/Win32/UThreadC.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UtiLite.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UMath.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UThreadNode.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UDirectory.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UObjDeletionThread.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UDestroyer.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UThread.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UEvent.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UEventsManager.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UThreadC.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UProcessInfo.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UStl.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UEventsHandler.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/USemaphore.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UConversion.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UFile.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UVariant.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UtiLiteExp.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UEventsSender.h
-- Installing: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/Posix
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/Posix/UThreadC.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/ULogger.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/utilite/UTimer.h
-- Installing: /home/ycb/catkin_ws/devel/lib/librtabmap_core.so.0.8.0
-- Up-to-date: /home/ycb/catkin_ws/devel/lib/librtabmap_core.so.0.8
-- Up-to-date: /home/ycb/catkin_ws/devel/lib/librtabmap_core.so
-- Removed runtime path from "/home/ycb/catkin_ws/devel/lib/librtabmap_core.so.0.8.0"
-- Installing: /home/ycb/catkin_ws/devel/include/rtabmap-0.8
-- Installing: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap
-- Installing: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/Odometry.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/Version.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/CameraEvent.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/VWDictionary.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/OdometryInfo.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/DBReader.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/Features2d.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/OdometryEvent.h
-- Installing: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/impl
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/impl/util3d.hpp
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/ParamEvent.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/SensorData.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/RtabmapThread.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/Link.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/Rtabmap.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/Parameters.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/RtabmapEvent.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/Image.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/util3d.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/Signature.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/DBDriver.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/Statistics.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/Camera.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/CameraRGBD.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/RtabmapExp.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/EpipolarGeometry.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/Memory.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/Transform.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/core/CameraThread.h
-- Installing: /home/ycb/catkin_ws/devel/lib/librtabmap_gui.so.0.8.0
-- Up-to-date: /home/ycb/catkin_ws/devel/lib/librtabmap_gui.so.0.8
-- Up-to-date: /home/ycb/catkin_ws/devel/lib/librtabmap_gui.so
-- Removed runtime path from "/home/ycb/catkin_ws/devel/lib/librtabmap_gui.so.0.8.0"
-- Installing: /home/ycb/catkin_ws/devel/include/rtabmap-0.8
-- Installing: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap
-- Installing: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui/DatabaseViewer.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui/DataRecorder.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui/RtabmapGuiExp.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui/CloudViewer.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui/UCv2Qt.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui/MainWindow.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui/KeypointItem.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui/ImageView.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui/LoopClosureViewer.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui/OdometryViewer.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui/CalibrationDialog.h
-- Up-to-date: /home/ycb/catkin_ws/devel/include/rtabmap-0.8/rtabmap/gui/PreferencesDialog.h
-- Installing: /home/ycb/catkin_ws/devel/bin/rtabmap
-- Removed runtime path from "/home/ycb/catkin_ws/devel/bin/rtabmap"
-- Installing: /home/ycb/catkin_ws/devel/bin/rtabmap-console
-- Removed runtime path from "/home/ycb/catkin_ws/devel/bin/rtabmap-console"
-- Installing: /home/ycb/catkin_ws/devel/bin/rtabmap-extractObject
-- Removed runtime path from "/home/ycb/catkin_ws/devel/bin/rtabmap-extractObject"
-- Installing: /home/ycb/catkin_ws/devel/bin/rtabmap-rgbd_camera
-- Removed runtime path from "/home/ycb/catkin_ws/devel/bin/rtabmap-rgbd_camera"
-- Installing: /home/ycb/catkin_ws/devel/bin/rtabmap-databaseViewer
-- Removed runtime path from "/home/ycb/catkin_ws/devel/bin/rtabmap-databaseViewer"
-- Installing: /home/ycb/catkin_ws/devel/bin/rtabmap-odometryViewer
-- Removed runtime path from "/home/ycb/catkin_ws/devel/bin/rtabmap-odometryViewer"
-- Installing: /home/ycb/catkin_ws/devel/bin/rtabmap-dataRecorder
-- Removed runtime path from "/home/ycb/catkin_ws/devel/bin/rtabmap-dataRecorder"
-- Installing: /home/ycb/catkin_ws/devel/bin/rtabmap-calibration
-- Removed runtime path from "/home/ycb/catkin_ws/devel/bin/rtabmap-calibration"
Reply | Threaded
Open this post in threaded view
|

Re: Is it a problem of version?

yincanben
In reply to this post by matlabbe
When run catkin command,the error present:
Built target geotiff_node
Linking CXX executable /home/ycb/catkin_ws/devel/lib/rtabmap_ros/data_player
Linking CXX executable /home/ycb/catkin_ws/devel/lib/rtabmap_ros/odom_msg_to_tf
Linking CXX executable /home/ycb/catkin_ws/devel/lib/rtabmap_ros/map_optimizer
Linking CXX executable /home/ycb/catkin_ws/devel/lib/rtabmap_ros/rgbd_odometry
Linking CXX executable /home/ycb/catkin_ws/devel/lib/rtabmap_ros/map_assembler
Linking CXX executable /home/ycb/catkin_ws/devel/lib/rtabmap_ros/grid_map_assembler
Linking CXX executable /home/ycb/catkin_ws/devel/lib/rtabmap_ros/data_recorder
[ 91%] Built target rgbdslam
Linking CXX executable /home/ycb/catkin_ws/devel/lib/rtabmap_ros/rtabmap
/home/ycb/catkin_ws/devel/lib/librtabmap_ros.so: undefined reference to `rtabmap::Odometry::process(rtabmap::SensorData const&, rtabmap::OdometryInfo*)'
collect2: ld returned 1 exit status
make[2]: *** [/home/ycb/catkin_ws/devel/lib/rtabmap_ros/odom_msg_to_tf] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/odom_msg_to_tf.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMakeFiles/map_optimizer.dir/src/MapOptimizerNode.cpp.o: In function `MapOptimizer::mapDataReceivedCallback(boost::shared_ptr<rtabmap_ros::MapData_<std::allocator<void> > const> const&)':
MapOptimizerNode.cpp:(.text._ZN12MapOptimizer23mapDataReceivedCallbackERKN5boost10shared_ptrIKN11rtabmap_ros8MapData_ISaIvEEEEE[MapOptimizer::mapDataReceivedCallback(boost::shared_ptr<rtabmap_ros::MapData_<std::allocator<void> > const> const&)]+0xcd4): undefined reference to `rtabmap::util3d::optimizeTOROGraph(std::map<int, int, std::less<int>, std::allocator<std::pair<int const, int> > > const&, std::map<int, rtabmap::Transform, std::less<int>, std::allocator<std::pair<int const, rtabmap::Transform> > > const&, std::multimap<int, rtabmap::Link, std::less<int>, std::allocator<std::pair<int const, rtabmap::Link> > > const&, std::map<int, rtabmap::Transform, std::less<int>, std::allocator<std::pair<int const, rtabmap::Transform> > >&, int, bool, bool, std::list<std::map<int, rtabmap::Transform, std::less<int>, std::allocator<std::pair<int const, rtabmap::Transform> > >, std::allocator<std::map<int, rtabmap::Transform, std::less<int>, std::allocator<std::pair<int const, rtabmap::Transform> > > > >*)'
MapOptimizerNode.cpp:(.text._ZN12MapOptimizer23mapDataReceivedCallbackERKN5boost10shared_ptrIKN11rtabmap_ros8MapData_ISaIvEEEEE[MapOptimizer::mapDataReceivedCallback(boost::shared_ptr<rtabmap_ros::MapData_<std::allocator<void> > const> const&)]+0xd2e): undefined reference to `rtabmap::util3d::optimizeTOROGraph(std::map<int, rtabmap::Transform, std::less<int>, std::allocator<std::pair<int const, rtabmap::Transform> > > const&, std::multimap<int, rtabmap::Link, std::less<int>, std::allocator<std::pair<int const, rtabmap::Link> > > const&, std::map<int, rtabmap::Transform, std::less<int>, std::allocator<std::pair<int const, rtabmap::Transform> > >&, int, bool, bool, std::list<std::map<int, rtabmap::Transform, std::less<int>, std::allocator<std::pair<int const, rtabmap::Transform> > >, std::allocator<std::map<int, rtabmap::Transform, std::less<int>, std::allocator<std::pair<int const, rtabmap::Transform> > > > >*)'
/home/ycb/catkin_ws/devel/lib/librtabmap_ros.so: undefined reference to `rtabmap::Odometry::process(rtabmap::SensorData const&, rtabmap::OdometryInfo*)'
collect2: ld returned 1 exit status
make[2]: *** [/home/ycb/catkin_ws/devel/lib/rtabmap_ros/map_optimizer] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/map_optimizer.dir/all] Error 2
CMakeFiles/grid_map_assembler.dir/src/GridMapAssemblerNode.cpp.o: In function `GridMapAssembler::mapDataReceivedCallback(boost::shared_ptr<rtabmap_ros::MapData_<std::allocator<void> > const> const&)':
GridMapAssemblerNode.cpp:(.text._ZN16GridMapAssembler23mapDataReceivedCallbackERKN5boost10shared_ptrIKN11rtabmap_ros8MapData_ISaIvEEEEE[GridMapAssembler::mapDataReceivedCallback(boost::shared_ptr<rtabmap_ros::MapData_<std::allocator<void> > const> const&)]+0xdf): undefined reference to `rtabmap::util3d::laserScanToPointCloud(cv::Mat const&)'
/home/ycb/catkin_ws/devel/lib/librtabmap_ros.so: undefined reference to `rtabmap::Odometry::process(rtabmap::SensorData const&, rtabmap::OdometryInfo*)'
collect2: ld returned 1 exit status
make[2]: *** [/home/ycb/catkin_ws/devel/lib/rtabmap_ros/grid_map_assembler] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/grid_map_assembler.dir/all] Error 2
CMakeFiles/rgbd_odometry.dir/src/RGBDOdometryNode.cpp.o: In function `RGBDOdometry::callback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&)':
RGBDOdometryNode.cpp:(.text._ZN12RGBDOdometry8callbackERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEES9_RKNS1_IKNS2_11CameraInfo_IS4_EEEE[RGBDOdometry::callback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&)]+0x7ac): undefined reference to `rtabmap::SensorData::SensorData(cv::Mat const&, cv::Mat const&, float, float, float, float, rtabmap::Transform const&, rtabmap::Transform const&, float, int)'
/home/ycb/catkin_ws/devel/lib/librtabmap_ros.so: undefined reference to `rtabmap::Odometry::process(rtabmap::SensorData const&, rtabmap::OdometryInfo*)'
collect2: ld returned 1 exit status
make[2]: *** [/home/ycb/catkin_ws/devel/lib/rtabmap_ros/rgbd_odometry] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/rgbd_odometry.dir/all] Error 2
CMakeFiles/data_player.dir/src/DbPlayerNode.cpp.o: In function `main':
DbPlayerNode.cpp:(.text+0x1643): undefined reference to `rtabmap::DBReader::getNextData()'
DbPlayerNode.cpp:(.text+0x3380): undefined reference to `rtabmap::DBReader::getNextData()'
/home/ycb/catkin_ws/devel/lib/librtabmap_ros.so: undefined reference to `rtabmap::Odometry::process(rtabmap::SensorData const&, rtabmap::OdometryInfo*)'
collect2: ld returned 1 exit status
make[2]: *** [/home/ycb/catkin_ws/devel/lib/rtabmap_ros/data_player] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/data_player.dir/all] Error 2
/usr/bin/ld: warning: libpcl_common.so.1.8, needed by /home/ycb/catkin_ws/devel/lib/rtabmap-0.7/librtabmap_core.so, may conflict with libpcl_common.so.1.7
/usr/bin/ld: warning: libpcl_search.so.1.8, needed by /home/ycb/catkin_ws/devel/lib/rtabmap-0.7/librtabmap_core.so, may conflict with libpcl_search.so.1.7
/usr/bin/ld: warning: libpcl_filters.so.1.8, needed by /home/ycb/catkin_ws/devel/lib/rtabmap-0.7/librtabmap_core.so, may conflict with libpcl_filters.so.1.7
CMakeFiles/map_assembler.dir/src/MapAssemblerNode.cpp.o: In function `MapAssembler::mapDataReceivedCallback(boost::shared_ptr<rtabmap_ros::MapData_<std::allocator<void> > const> const&)':
MapAssemblerNode.cpp:(.text._ZN12MapAssembler23mapDataReceivedCallbackERKN5boost10shared_ptrIKN11rtabmap_ros8MapData_ISaIvEEEEE[MapAssembler::mapDataReceivedCallback(boost::shared_ptr<rtabmap_ros::MapData_<std::allocator<void> > const> const&)]+0xcf9): undefined reference to `rtabmap::util3d::laserScanToPointCloud(cv::Mat const&)'
/home/ycb/catkin_ws/devel/lib/librtabmap_ros.so: undefined reference to `rtabmap::Odometry::process(rtabmap::SensorData const&, rtabmap::OdometryInfo*)'
collect2: ld returned 1 exit status
make[2]: *** [/home/ycb/catkin_ws/devel/lib/rtabmap_ros/map_assembler] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/map_assembler.dir/all] Error 2
/usr/bin/ld: warning: libpcl_common.so.1.8, needed by /home/ycb/catkin_ws/devel/lib/rtabmap-0.7/librtabmap_core.so, may conflict with libpcl_common.so.1.7
CMakeFiles/rtabmap.dir/src/CoreWrapper.cpp.o: In function `CoreWrapper::depthScanCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<nav_msgs::Odometry_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::LaserScan_<std::allocator<void> > const> const&)':
CoreWrapper.cpp:(.text+0x736f): undefined reference to `rtabmap::util3d::laserScanFromPointCloud(pcl::PointCloud<pcl::PointXYZ> const&)'
CMakeFiles/rtabmap.dir/src/CoreWrapper.cpp.o: In function `CoreWrapper::stereoScanCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::LaserScan_<std::allocator<void> > const> const&, boost::shared_ptr<nav_msgs::Odometry_<std::allocator<void> > const> const&)':
CoreWrapper.cpp:(.text+0x8f42): undefined reference to `rtabmap::util3d::laserScanFromPointCloud(pcl::PointCloud<pcl::PointXYZ> const&)'
CMakeFiles/rtabmap.dir/src/CoreWrapper.cpp.o: In function `CoreWrapper::process(int, cv::Mat const&, rtabmap::Transform const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float, cv::Mat const&, float, float, float, float, rtabmap::Transform const&, cv::Mat const&)':
CoreWrapper.cpp:(.text+0x9b3f): undefined reference to `rtabmap::SensorData::SensorData(cv::Mat const&, cv::Mat const&, cv::Mat const&, float, float, float, float, rtabmap::Transform const&, rtabmap::Transform const&, float, int)'
/home/ycb/catkin_ws/devel/lib/librtabmap_ros.so: undefined reference to `rtabmap::Odometry::process(rtabmap::SensorData const&, rtabmap::OdometryInfo*)'
collect2: ld returned 1 exit status
make[2]: *** [/home/ycb/catkin_ws/devel/lib/rtabmap_ros/rtabmap] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap.dir/all] Error 2
/usr/bin/ld: warning: libpcl_common.so.1.8, needed by /home/ycb/catkin_ws/devel/lib/rtabmap-0.7/librtabmap_core.so, may conflict with libpcl_common.so.1.7
CMakeFiles/data_recorder.dir/src/DataRecorderNode.cpp.o: In function `DataRecorderWrapper::depthImageCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&)':
DataRecorderNode.cpp:(.text._ZN19DataRecorderWrapper18depthImageCallbackERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEES9_RKNS1_IKNS2_11CameraInfo_IS4_EEEE[DataRecorderWrapper::depthImageCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&)]+0x72e): undefined reference to `rtabmap::SensorData::SensorData(cv::Mat const&, cv::Mat const&, float, float, float, float, rtabmap::Transform const&, rtabmap::Transform const&, float, int)'
CMakeFiles/data_recorder.dir/src/DataRecorderNode.cpp.o: In function `DataRecorderWrapper::depthCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<nav_msgs::Odometry_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&)':
DataRecorderNode.cpp:(.text._ZN19DataRecorderWrapper13depthCallbackERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEERKNS1_IKN8nav_msgs9Odometry_IS4_EEEES9_RKNS1_IKNS2_11CameraInfo_IS4_EEEE[DataRecorderWrapper::depthCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<nav_msgs::Odometry_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&)]+0x7a3): undefined reference to `rtabmap::SensorData::SensorData(cv::Mat const&, cv::Mat const&, float, float, float, float, rtabmap::Transform const&, rtabmap::Transform const&, float, int)'
CMakeFiles/data_recorder.dir/src/DataRecorderNode.cpp.o: In function `DataRecorderWrapper::depthScanCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<nav_msgs::Odometry_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::LaserScan_<std::allocator<void> > const> const&)':
DataRecorderNode.cpp:(.text._ZN19DataRecorderWrapper17depthScanCallbackERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEERKNS1_IKN8nav_msgs9Odometry_IS4_EEEES9_RKNS1_IKNS2_11CameraInfo_IS4_EEEERKNS1_IKNS2_10LaserScan_IS4_EEEE[DataRecorderWrapper::depthScanCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<nav_msgs::Odometry_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::LaserScan_<std::allocator<void> > const> const&)]+0x622): undefined reference to `rtabmap::util3d::laserScanFromPointCloud(pcl::PointCloud<pcl::PointXYZ> const&)'
DataRecorderNode.cpp:(.text._ZN19DataRecorderWrapper17depthScanCallbackERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEERKNS1_IKN8nav_msgs9Odometry_IS4_EEEES9_RKNS1_IKNS2_11CameraInfo_IS4_EEEERKNS1_IKNS2_10LaserScan_IS4_EEEE[DataRecorderWrapper::depthScanCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<nav_msgs::Odometry_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::LaserScan_<std::allocator<void> > const> const&)]+0xb67): undefined reference to `rtabmap::SensorData::SensorData(cv::Mat const&, cv::Mat const&, cv::Mat const&, float, float, float, float, rtabmap::Transform const&, rtabmap::Transform const&, float, int)'
CMakeFiles/data_recorder.dir/src/DataRecorderNode.cpp.o: In function `DataRecorderWrapper::stereoOdomCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&, boost::shared_ptr<nav_msgs::Odometry_<std::allocator<void> > const> const&)':
DataRecorderNode.cpp:(.text._ZN19DataRecorderWrapper18stereoOdomCallbackERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEES9_RKNS1_IKNS2_11CameraInfo_IS4_EEEESF_RKNS1_IKN8nav_msgs9Odometry_IS4_EEEE[DataRecorderWrapper::stereoOdomCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&, boost::shared_ptr<nav_msgs::Odometry_<std::allocator<void> > const> const&)]+0x4fb): undefined reference to `rtabmap::SensorData::SensorData(cv::Mat const&, cv::Mat const&, float, float, float, float, rtabmap::Transform const&, rtabmap::Transform const&, float, int)'
CMakeFiles/data_recorder.dir/src/DataRecorderNode.cpp.o: In function `DataRecorderWrapper::stereoCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&)':
DataRecorderNode.cpp:(.text._ZN19DataRecorderWrapper14stereoCallbackERKN5boost10shared_ptrIKN11sensor_msgs6Image_ISaIvEEEEES9_RKNS1_IKNS2_11CameraInfo_IS4_EEEESF_[DataRecorderWrapper::stereoCallback(boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::Image_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&, boost::shared_ptr<sensor_msgs::CameraInfo_<std::allocator<void> > const> const&)]+0x486): undefined reference to `rtabmap::SensorData::SensorData(cv::Mat const&, cv::Mat const&, float, float, float, float, rtabmap::Transform const&, rtabmap::Transform const&, float, int)'
/home/ycb/catkin_ws/devel/lib/librtabmap_ros.so: undefined reference to `rtabmap::Odometry::process(rtabmap::SensorData const&, rtabmap::OdometryInfo*)'
collect2: ld returned 1 exit status
make[2]: *** [/home/ycb/catkin_ws/devel/lib/rtabmap_ros/data_recorder] Error 1
make[1]: *** [rtabmap_ros/CMakeFiles/data_recorder.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed
Reply | Threaded
Open this post in threaded view
|

Re: Is it a problem of version?

matlabbe
Administrator
This post was updated on .
It is like the ROS package is built against the wrong RTAB-Map library (a
previous version of 0.8.0). Make sure that folder
"/home/ycb/catkin_ws/devel/lib/rtabmap-0.7.x"
from the previous version is not here.

Try "catkin_make clean" and remove the CMakeCache.txt from the
"/home/ycb/catkin_ws/build"
directory before doing a clean "catkin_make".
Reply | Threaded
Open this post in threaded view
|

Re: Is it a problem of version?

yincanben
Removed the "/home/ycb/catkin_ws/devel/lib/rtabmap-0.7.x" and the CMakeCache.txt from the "/home/ycb/catkin_ws/build" directory . but another error occured:
[ 82%] Built target rgbdslam
[ 82%] Building CXX object hector_slam/hector_geotiff_plugins/CMakeFiles/hector_geotiff_plugins.dir/src/trajectory_geotiff_plugin.cpp.o
make[2]: *** No rule to make target `/home/ycb/catkin_ws/devel/lib/rtabmap-0.7/librtabmap_core.so', needed by `/home/ycb/catkin_ws/devel/lib/rtabmap_ros/camera'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 82%] Building CXX object rtabmap_ros/CMakeFiles/camera.dir/src/CameraNode.cpp.o
Scanning dependencies of target rtabmap_ros
Linking CXX executable /home/ycb/catkin_ws/devel/lib/hector_geotiff/geotiff_saver
[ 82%] Built target geotiff_saver
Linking CXX shared library /home/ycb/catkin_ws/devel/lib/libhector_geotiff_plugins.so
[ 82%] Built target hector_geotiff_plugins
[ 82%] [ 83%] [ 83%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/nodelets/data_throttle.cpp.o
Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/nodelets/stereo_throttle.cpp.o
Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/nodelets/data_odom_sync.cpp.o
[ 84%] [ 85%] [ 85%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/nodelets/disparity_to_depth.cpp.o
Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/nodelets/point_cloud_xyz.cpp.o
Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/nodelets/point_cloud_xyzrgb.cpp.o
Linking CXX executable /home/ycb/catkin_ws/devel/lib/hector_geotiff/geotiff_node
make[1]: *** [rtabmap_ros/CMakeFiles/camera.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 86%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/nodelets/obstacles_detection.cpp.o
[ 86%] Built target geotiff_node
[ 86%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/MsgConversion.cpp.o
[ 87%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/OdometryROS.cpp.o
[ 87%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/rviz/MapCloudDisplay.cpp.o
[ 88%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/rviz/MapGraphDisplay.cpp.o
[ 88%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/rviz/InfoDisplay.cpp.o
[ 89%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/rviz/OrbitOrientedViewController.cpp.o
[ 89%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/rviz/moc_MapCloudDisplay.cxx.o
[ 90%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/rviz/moc_MapGraphDisplay.cxx.o
[ 90%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/rviz/moc_InfoDisplay.cxx.o
make[2]: *** No rule to make target `/home/ycb/catkin_ws/devel/lib/rtabmap-0.7/librtabmap_core.so', needed by `/home/ycb/catkin_ws/devel/lib/librtabmap_ros.so'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 91%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/rviz/moc_OrbitOrientedViewController.cxx.o
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_ros.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" faile


Maybe the  rtabmap-0.8.0  need update completely?
Reply | Threaded
Open this post in threaded view
|

Re: Is it a problem of version?

matlabbe
Administrator
This post was updated on .
Maybe it is not enough to remove only the CMakeCache.txt, remove the
"/home/ycb/catkin_ws/build"
directory and remake the whole catkin workspace. It seems that cmake for
the rtabmap_ros package kept in cache somewhere the link to old 0.7.x
rtabmap library, and not updating for 0.8.0.
Reply | Threaded
Open this post in threaded view
|

Re: Is it a problem of version?

yincanben
Remove the "/home/ycb/catkin_ws/build" directory and rerun catkin,I have built rtabmap_ros successfully.