introlab / rtabmap_ros

RTAB-Map's ROS package.
http://wiki.ros.org/rtabmap_ros
BSD 3-Clause "New" or "Revised" License
1.01k stars 559 forks source link

Conflicting setup.bash files #164

Open Eirtrand opened 7 years ago

Eirtrand commented 7 years ago

Hi, I have rtabmap_ros installed with apt, and rtabmap installed from source with make -j4. The problem Im having is that the source /opt/ros/kinetic/setup.bash file and the ~/catkin_ws/devel/setup.bash file conflicts. As soon as I source catkin I get this error message when trying to run rtabmap:

ERROR: cannot launch node of type [rtabmap_ros/rgbd_odometry]: can't locate node [rgbd_odometry] in package [rtabmap_ros]
ERROR: cannot launch node of type [rtabmap_ros/rtabmap]: can't locate node [rtabmap] in package [rtabmap_ros]

Running source /opt/ros/kinetic/setup.bash fixes rtabmap but then I can use any of the catkin packages. running sourcing ~/catkin_ws/devel/setup.bash again will naturally fix that, but then we are back to the error message above. Im really sorry of this is not an rtabmap problem, but its the only package this happens with

matlabbe commented 7 years ago

First, if you are building rtabmap from source, you should build rtabmap_ros from source too. Uninstall ros-kinetic-rtabmap and ros-kinetic-rtabmap-ros:

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

then clone rtabmap_ros in your ~/catkin_ws/src, then catkin_make -j1. rtabmap_ros should link on libraries installed from rtabmap source. The whole installation instructions are here.

cheers, Mathieu