Skip to main content

Luxonis - OAK-1 Lite

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. In this article we will focus on the OAK-1 Lite RGB camera. OAK-1 Lite is a compact and lightweight RGB camera well adapted for small robots.

oak-1-lite

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
cd depthai-docker/demo/oak-1

3. Run compose.yaml

xhost local:root
docker compose up
info

First run of ROS 2 Docker images downloads configuration files and optimize camera. This may take several minutes.

Result

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

oak-1-lite_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