noetic-devel branch also works on melodic(tested). Might also work on kinetic too.
Install the dependencies described here
followed by python3 -m pip install opencv-python
(This should install C++ lib opencv version greater than 4.0.0 which is required here.
The following script will install depthai-core and update usb rules and install depthai devices
sudo wget -qO- https://raw.githubusercontent.com/luxonis/depthai-ros/noetic-devel/install_dependencis.sh | bash
if you don't have rosdep installed and not initialized please execute the following steps:
sudo apt install python-rosdep2
(melodic) orsudo apt install python3-rosdep
sudo rosdep init
rosdep update
install the following vcstool
sudo apt install python3-vcstool
The following setup procedure assumes you have cmake version >= 3.10.2 and OpenCV version >= 4.0.0
mkdir -p <directory_for_workspaces>/src
cd <directory_for_workspaces>
wget https://raw.githubusercontent.com/luxonis/depthai-ros/noetic-devel/underlay.repos
vcs import src < underlay.repos
rosdep install --from-paths src --ignore-src -r -y
source /opt/ros/<ros-distro>/setup.bash
catkin_make
source devel/setup.bash
cd ~/ros_ws
source ~/ros_ws/devel_isolated/setup.bash
roslaunch depthai_examples stereo_node.launch
- example node
- ImageConverter - Tested using
roslaunch depthai_examples stereo_node.launch
&&roslaunch depthai_examples stereo_nodelet.launch
&&roslaunch depthai_examples rgb_publisher.launch
' - ImgDetectionCnverter - tested using
roslaunch depthai_examples mobile_publisher.launch
- SpatialImgDetectionConverter - Not tested yet. (Will add an example on this soon)
If there a standard Message or usecase for which we have not provided a ros msg or converter feel free to create a issue or reach out to us on our discord community. We would be happy to add more.