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
Modify CMakelists.txt as below and build

I added:


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):

And modified
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 to install the librealsense Debian package.
After installing these packages I was able to compile the ros package from source as described in .

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
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:

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...
realsense ros Release to Melodic/Ubuntu 18.04?
Got it working by modifying CMakelists.txt: #Ros realsense_camera download
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...
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...