Trouble Installing librealsense1 on Ubuntu 14.04
| Required Info | |
|---|---|
| Camera Model | SR300 |
| Firmware Version | 3.21.0.0 |
| Operating System & Version | Ubuntu14.04.1 |
| Kernel Version (Linux Only) | 4.4.0-119 |
| Platform | PC |
| SDK Version | legacy |
Issue Description
I made a previous post here on the ROS-related repo, but wasn't able to resolve my issues.
Anyway, I am trying to install legacy librealsense. I tried installing via instructions for linux in the 1.9.7 release, but then I get the following error:
terminate called after throwing an instance of 'rs::error'
what(): api version mismatch
I also tried installing via the deb packages ros-indigo-librealsense and ros-indigo-realsense-camera. I was able to launch the SR300 nodelet, but the depth image flashes weirdly and the pointcloud works intermittently.
I did install librealsense2 via deb package (though that was troublesome as well), but found that, as expected, there were a number of breaking changes that would require me to rewrite a lot of code already developed for the SR300.
What procedure should I follow? Any help urlwill be greatly appreciated!
[Realsense Customer Engineering Team Comment] Hi @rkeatin3,
Please use ROS wrapper 1.8.1 and it depends on librealsense 1.12.1. https://github.com/intel-ros/realsense/releases/tag/1.8.1 https://github.com/IntelRealSense/librealsense/tree/v1.12.1
Follow below instructions to build librealsense 1.12.1 for Ubuntu 14.04 + kernel 4.4.0-119: (https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md) $ echo 'deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo xenial main' | sudo tee /etc/apt/sources.list.d/realsense-public.list $ sudo apt-get update $ sudo apt-key adv --keyserver keys.gnupg.net --recv-key 6F3EFCDE $ sudo apt-get install librealsense2-dkms $ ./script/install_glfw3.sh $ sudo apt-get install cmake3 $ cd build $ cmake ../ -DBUILD_EXAMPLES=true -DCMAKE_BUILD_TYPE=Release $ make install Here, you can check if legacy librealsense app can work to stream SR300 depth. Then, Install the pre-built ROS Debian package: $ sudo apt-get install ‘ros-*-realsense-camera’ Check if below works: $ roslaunch realsense_camera sr300_nodelet_rgbd.launch
I followed those steps exactly, but when I try to load the uvcvideo kernel module I get the following error:
modprobe: ERROR: could not insert 'uvcvideo': Exec format error
Was installing llibrealsense2-dkms intended to solve that problem? Or did you intend for me to follow the rest of the directions at https://github.com/IntelRealSense/librealsense/blob/master/doc/distribution_linux.md to install all of the librealsense2 packages though I intend to use the legacy version?
Also note that you linked to a tagged release of the realsense_camera ROS package but then instructed me to install the package via apt-get. Either way, that confusion isn't the main problem at the moment as I can't load the necessary kernel module.
Lastly, in running through those steps a second time to ensure I had followed them properly, I see that the script for installing glfw3 installs cmake and the following step uninstalls cmake in favor of cmake3. Does that script need to depend on the older version of cmake?
[Realsense Customer Engineering Team Comment]
Hi rkeatin3,\n'llibrealsense2-dkms' is a prebuilt package for SR300 camera format support like 'INZI', etc. Per your error 'modprobe: ERROR: could not insert 'uvcvideo': Exec format error', I think this could be the prebuilt kernel module doesn't match the kernel 4.4.0-119. Per my quick test, try kernel 4.4.0-31 with the DKMS installation. Summarize as follows: \n 1. Make sure to uninstall DKMS: sudo apt-get remove librealsense2-dkms \n2. Boot and switch Kernel 4.4.0-31 \n3. Check the UVC driver version, here should be 1.1.1: modinfo uvcvideo | grep ver \n4. Install DKMS: sudo apt-get install librealsense2-dkms \n5. Check the UVC driver version, here should be 1.1.2.realsense-1.2.0 \n6. Check the video info, you will see SR300 'INZI' format: v4l-info /dev/video0 and v4l-info /dev/video1 \n7. Run'cpp-capture' in librealsense1 1.12.1, the SR300 depth and IR streams should work. \n8. You can try to run SR300 ROS node.
[Realsense Customer Engineering Team Comment] Hi @rkeatin3,
Do you resolve the issue?
No, this issue did not get resolved. I ended having to port all of my code over to librealsense2 to get around the apparent compatibility issues.
[Realsense Customer Engineering Team Comment] Hi @rkeatin3,
Since this should be the compatibility issue on your build system, I will close this. If you have any concern, you can re-open it.
Please see if the solution I provided in here helps.