catkin make problem

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

catkin make problem

manilasmoker
At the installation step 3 "Install RTAB-Map ros-pkg in your src folder of your Catkin workspace" when i do "catkin make" i have the following error:

"[ 68%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/OdometryROS.cpp.o
/home/alberto/catkin_ws/src/rtabmap_ros/src/OdometryROS.cpp: In member function ‘void rtabmap_ros::OdometryROS::processData(const rtabmap::SensorData&, const ros::Time&)’:
/home/alberto/catkin_ws/src/rtabmap_ros/src/OdometryROS.cpp:429:54: error: ‘class rtabmap::Odometry’ has no member named ‘getType’
   if(odomLocalMap_.getNumSubscribers() && odometry_->getType() == Odometry::kTypeF2M)
                                                      ^
/home/alberto/catkin_ws/src/rtabmap_ros/src/OdometryROS.cpp:429:67: error: ‘kTypeF2M’ is not a member of ‘rtabmap::Odometry’
   if(odomLocalMap_.getNumSubscribers() && odometry_->getType() == Odometry::kTypeF2M)
                                                                   ^
/home/alberto/catkin_ws/src/rtabmap_ros/src/OdometryROS.cpp:447:18: error: ‘class rtabmap::Odometry’ has no member named ‘getType’
    if(odometry_->getType() == Odometry::kTypeF2M) // If it's Frame to Map Odometry
                  ^
/home/alberto/catkin_ws/src/rtabmap_ros/src/OdometryROS.cpp:447:31: error: ‘kTypeF2M’ is not a member of ‘rtabmap::Odometry’
    if(odometry_->getType() == Odometry::kTypeF2M) // If it's Frame to Map Odometry
                               ^
/home/alberto/catkin_ws/src/rtabmap_ros/src/OdometryROS.cpp:467:23: error: ‘class rtabmap::Odometry’ has no member named ‘getType’
    else if(odometry_->getType() == Odometry::kTypeF2F) // if Using Frame to Frame Odometry
                       ^
rtabmap_ros/CMakeFiles/rtabmap_ros.dir/build.make:342: set di istruzioni per l'obiettivo "rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/OdometryROS.cpp.o" non riuscito
make[2]: *** [rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/OdometryROS.cpp.o] Errore 1
CMakeFiles/Makefile2:760: set di istruzioni per l'obiettivo "rtabmap_ros/CMakeFiles/rtabmap_ros.dir/all" non riuscito
make[1]: *** [rtabmap_ros/CMakeFiles/rtabmap_ros.dir/all] Errore 2
Makefile:138: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2
Invoking "make -j8 -l8" failed"

thanks for helping me,
Alberto


Reply | Threaded
Open this post in threaded view
|

Re: catkin make problem

Jimmy Notron
I got same error
way to go! ;)
Reply | Threaded
Open this post in threaded view
|

Re: catkin make problem

Jimmy Notron
I can fix it

you should go back to your opencv installation

Get opencv from the opencv.org

extract it

run " cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_OPENCL=OFF -D CMAKE_INSTALL_PREFIX=/usr/local . " command in main DIR

after that run" make -j4"

sudo make install

and every thing work out properly
way to go! ;)
Reply | Threaded
Open this post in threaded view
|

Re: catkin make problem

manilasmoker
thx for your reply but doing as you said didn't fix my problem..

other suggestions?
Reply | Threaded
Open this post in threaded view
|

Re: catkin make problem

Jimmy Notron
after do this instruction
you should repeat Step2 again

and for step 3

use

sudo -s
catkin_make

it should be done
way to go! ;)
Reply | Threaded
Open this post in threaded view
|

Re: catkin make problem

matlabbe
Administrator
Make sure you have the latest version of the rtabmap library: https://github.com/introlab/rtabmap

Odometry::getType() method was added recently by this commit.

See Update to new version section in the installation instructions of rtabmap_ros.

cheers
Reply | Threaded
Open this post in threaded view
|

Re: catkin make problem

Masoumeh
Hi,

but updating to the new version is not possible and it makes an error.
34.png

Would you please check this issue?

Thanks a lot
Reply | Threaded
Open this post in threaded view
|

Re: catkin make problem

matlabbe
Administrator
This post was updated on .
Make sure to update to latest version (both rtabmap and rtabmap_ros). laserScanFromPointcloud returns a LaserScan now, not a cv::Mat anymore.

crossref: http://official-rtab-map-forum.206.s1.nabble.com/catkin-make-error-while-having-rtabmap-pkg-td7580.html#a7590
Reply | Threaded
Open this post in threaded view
|

Re: catkin make problem

Masoumeh
hi,
when I add rtabmap-ros pakge to my workspace and run catkin_make, it shows the following error:
catkin_make1.png

why? what is the problem?
Reply | Threaded
Open this post in threaded view
|

Re: catkin make problem

Masoumeh
In reply to this post by matlabbe
Dear Mattieu,

would you please support me to solve this problem? I have tried a lot but it is not working and makes error
Reply | Threaded
Open this post in threaded view
|

Re: catkin make problem

matlabbe
Administrator
canProcessIMU has been changed to canProcessAyncIMU. It means you rtabmap_ros package is building against an older rtabmap library.