Connect OAK

This section is created as a guide for first-time users of OAK. This guide will help you connect your OAK device to the RobotHub platform. To learn how to start developing on your OAK visit the Quick Start section.

1

Sign into RobotHub

Firstly we have to make sure that our RobotHub account is ready.

  • Sign in to your RobotHub account using your email and password
2

Install agent

To use the OAK camera with RobotHub it is necessary to install the Agent.

Add robot
  • Click on Add Robot
  • Open your terminal
  • Run the command displayed on the screen inside your terminal
  • After a successful installation text will appear inside your terminal indicating that the installation was completed.
1╭──────────────────────────────────────────────────────────╮
2│                                                          │
3│  RobotHub Agent Installer                                │
4│  Linux / x86_64                                          │
5│                                                          │
6│  Installation complete!                                  │
7│  Use `robothub-ctl help` to manage the agent.            │
8│                                                          │
9╰──────────────────────────────────────────────────────────╯

txt

3

Adopt Robot

Add robot
  • Click on Adopt
  • After some time the newly added robot will be displayed in the Robots section
New robot
4

Connect device

  • In the Robots section click on your Robot then select the Devices tab from the top submenu
Connect-device

Now it's time to proceed with connecting the OAK device itself. There are two ways to do this:

a) USB Camera

  • Plug your camera into the computer where the agent is installed. - Make sure to use the USB cable provided in the package (or another USB 3-rated cable).

b) PoE Camera

  • Connect the camera to your PoE switch or PoE adapter.
  • You should see lights flashing next to the Ethernet port on the camera.
  • Make sure the camera and the computer on which you installed the agent are on the same subnet (automatic camera discovery relies on local broadcast).

The agent will automatically detect the connected device and display it as a "Device" in the Devices table.

Device

This section is created as a guide for first-time users of OAK. This guide will help you connect your OAK device and prepare it for use with DepthAI. To learn how to start developing on your OAK visit the Quick Start section.

1

Install DepthAI

Before we connect our OAK camera we have to install DepthAI.

  • Open your terminal and run the following command
1sudo wget -qO- https://docs.luxonis.com/install_depthai.sh | bash

bash

If you would prefer not to use an installer it is also possible to download the code directly.

2

Connect device

There are two ways to connect the OAK device to your computer:

a) USB Camera

  • Plug your camera into the computer where the agent is installed. - Make sure to use the USB cable provided in the package (or another USB 3-rated cable).

b) PoE Camera

  • Connect the camera to your PoE switch or PoE adapter.
  • You should see lights flashing next to the Ethernet port on the camera.
  • Make sure the camera and the computer on which you installed the agent are on the same subnet (automatic camera discovery relies on local broadcast).
3

Finishing up

After we set up everything it is time to test if it works.

  • Run the DepthAI demo script in your terminal
1python3 depthai_demo.py

bash

Running the demo for the first time, the script will compile and download a default mobilenet-ssd model, configure the OAK camera, and then show a default color preview that will contain a scaled preview from the RGB camera from your device.