Solvedrealsense ros Release to Melodic/Ubuntu 18.04?

Now that Melodic is out, is there any plan to release to Melodic/Ubuntu18.04 for for both previous gen Realsense and D400 series?
Any tentative schedule?

36 Answers

✔️Accepted Answer

Got it working by modifying CMakelists.txt:

#Ros realsense_camera
download https://github.com/intel-ros/realsense/archive/indigo-devel.zip
Modify CMakelists.txt as below and build
CMakeLists.txt

I added:
SET(USE_SYSTEM_LIBREALSENSE ON)

Replaced: https://github.com/intel-ros/realsense/blob/ebc06d4be1800da82595a7ccb163f3b5b6e69b23/realsense_camera/CMakeLists.txt#L34
by:

FIND_PATH(realsense_INCLUDE_DIR librealsense HINTS "/usr/local/include")
FIND_LIBRARY(realsense_LIBRARY realsense HINTS "/usr/local/lib")

FIND_PATH(realsense_INCLUDE_DIRS librealsense HINTS "/usr/local/include")
FIND_LIBRARY(realsense_LIBRARIES realsense HINTS "/usr/local/lib")

Commented the following lines (it was causing errors and I don't need it):
https://github.com/intel-ros/realsense/blob/ebc06d4be1800da82595a7ccb163f3b5b6e69b23/realsense_camera/CMakeLists.txt#L114-L118

And modified https://github.com/intel-ros/realsense/blob/ebc06d4be1800da82595a7ccb163f3b5b6e69b23/realsense_camera/CMakeLists.txt#L147
in:
install(TARGETS ${PROJECT_NAME}_nodelet

A bit dirty but it works

Other Answers:

Why was this issue closed? I don't see any melodic release in rosdistro...

I'd like to +1 the request for a melodic release of the realsense2_camera. Thanks a lot for your support!

Hi @doisyg
I followed the instructions from https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md to install the librealsense Debian package.
After installing these packages I was able to compile the ros package from source as described in https://github.com/intel-ros/realsense#step-3-install-intel-realsense-ros-from-sources .

Reporting progress for usage of a R200 camera in ROS with Ubuntu 18.04 and Melodic (and hence librealsense and realsense_camera v1)

#Installation of librealsense: OK
sudo apt-get install libglfw3-dev
download and unzip https://github.com/IntelRealSense/librealsense/archive/v1.12.1.zip
add #include <functional> to librealsense-1.12.1/src/type.h (in order to compile with ubuntu 18.04 builtin gcc 7)
cd librealsense-1.12.1
mkdir build
cd build
cmake ..
make && sudo make install
cd ..
sudo cp config/99-realsense-libusb.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules && udevadm trigger

Update: udev rules

Related Issues:

41
realsense ros missing dependency with ddynamic_reconfigure
Hi A couple of changes happened The folder ddynamic_reconfigure was removed in favor of the newly re...
8
realsense ros Release to Melodic/Ubuntu 18.04?
Got it working by modifying CMakelists.txt: #Ros realsense_camera download https://github.com/intel-...
6
realsense ros Example tf tree with T265 and a mobile robot
Hi @msadowski I created a simple example assembly using the Kobuki robot base and T265 facing forwar...
3
realsense ros Auto-Exposure Not Consistently Working at System Init on D435
I have had the same issue with the d415 I believe it is caused as setting the manual exposure causes...