engcang / oakd-ros-simple

OAK-D (OpenCV AI Kit camera) ROS simple codes with C++
BSD 3-Clause "New" or "Revised" License
38 stars 10 forks source link
opencv ros

OAK-D ROS Simple


Check the result video

Video1: OAKD, OAKD-Lite, D435i

Video2: OAKD-PRO, OAKD-Lite, D435i

Video3: OAK-D Pro depth after filter parameters got tuned



Dependencies


How to install

$ cd ~/<your_workspace>/src
$ git clone --recursive git@github.com:engcang/oakd-ros-simple

$ rm -r ~/.hunter

$ cd oakd-ros-simple/depthai-core
$ mkdir build && cd build
$ cmake .. -DBUILD_SHARED_LIBS=ON

$ make install

$ echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03e7", MODE="0666"' | sudo tee /etc/udev/rules.d/80-movidius.rules \n
$ sudo udevadm control --reload-rules && sudo udevadm trigger
$ cd ~/your_workspace (check directory)

$ catkin build -Ddepthai_DIR=<your_workspace>/src/oakd-ros-simple/depthai-core/build/install/lib/cmake/depthai

or

$ catkin config -Ddepthai_DIR=<your_workspace>/src/oakd-ros-simple/depthai-core/build/install/lib/cmake/depthai
$ catkin build


How to run