Skip to main content

Luxonis - OAK Series

The OAK cameras by Luxonis are small cameras for robotic vision with an on-device Neural Network inferencing and Computer Vision capabilities. Luxonis is a spatial AI and CV platform that focuses on embedded machine learning and computer vision technology.

  • OAK-1: a compact camera module designed for versatile use in various AI projects. Thanks to the processor, it allows you to detect objects in real time.
  • OAK-D Lite is a more advanced version of OAK-1. It comes with additional features such as an RGB-D depth sensor and stereo cameras.

The advantages of both cameras are their sizes and a good price-to-performance ratio.

oak-series

Getting started

To run the device, you must meet certain requirements listed below:

Software

Hardware

  • Connectivity: USB 3.0

Demo

In this demo, we'll walk you through using the OAK cameras with ROS 2 via a Docker image. You'll also learn how to visualize data, including image previews and point clouds, using RViz. Demo based on depthai-ros repository.

Start guide

1. Plug the device

For the best performance please use USB 3.0 port, depend of the camera model. Then use lsusb command to check if the device is visible. The Intel Movidius MyriadX should appear.

2. Clone repository

git clone https://github.com/husarion/depthai-docker.git

3. Select demo folder according to the camera model

cd depthai-docker/demo/<demo_name>
ProductDemo Name
OAK-1oak-1
OAK-Doak-d

4. Run compose.yaml

xhost local:root
docker compose up

Result

After completing this procedure, RViz should start, containing the RGB image.

oak-series_result

ROS API

The full API of the robot can be found in the official documentation of the device.

Summary

This article serves as an excellent introduction to computer vision and AI with OAK cameras within the ROS 2 framework. The demonstration provided by rosbot-xl-telepresence exemplifies the practical application of ROS 2 in the field of mobile robotics.


Do you need any support with completing this project or have any difficulties with software or hardware? Feel free to describe your thoughts on our community forum: https://community.husarion.com or to contact with our support: support@husarion.com