1. install ros
2. Install dependences
首先添加ros的官方源,最好添加ros的安装界面上的那个
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
然后:
sudo apt-get install ros-$ROS_DISTRO-rgbd-launch
sudo apt-get install ros-$ROS_DISTRO-libuvc
sudo apt-get install ros-$ROS_DISTRO-libuvc-camera
sudo apt-get install ros-$ROS_DISTRO-libuvc-ros
3. 下载源码
```sh
cd ~/catkin_ws/src
git clone https://github.com/orbbec/ros_astra_camera
```
4. 在系统中添加udev rule文件
roscd astra_camera
./scripts/create_udev_rules(打开create_udev_rules,执行语句即可)
6. 编译代码
Prepare Linux Backend and the Dev. Environment:
首先拔下所有的realsnese连接
Run CMake:
cmake ../
- The default build is set to produce the core shared object and unit-tests binaries in Debug mode. Use
-DCMAKE_BUILD_TYPE=Release
to build with optimizations.
cmake ../ -DBUILD_EXAMPLES=true
- Builds
librealsense
along with the demos and tutorials
cmake ../ -DBUILD_EXAMPLES=true -DBUILD_GRAPHICAL_EXAMPLES=false
- For systems without OpenGL or X11 build only textual examples
编译并安装
sudo make uninstall && make clean && make && sudo make install