1 How to use the Astra camera

Official website link: http://www.orbbec.com.cn/

Developer Community: https://developer.orbbec.com.cn/

Astra Camera: https://github.com/orbbec/ros_astra_camera

Normal camera: https://github.com/bosch-ros-pkg/usb_cam.git

Astra SDK: https://developer.orbbec.com.cn/download.html?id=53

Basic use of Astra SDK for Windows: https://developer.orbbec.com.cn/course_details.html?id=53

Astra SDK environment setup: https://developer.orbbec.com.cn/course_details.html?id=16

In the new environment, you need to execute the [create_udev_rules] file in the [scripts] folder of the [astra_camera] function package, enter the directory where the file is located, and execute the command

launch start command

Launch fileStart the camera model
astra.launchAstra, Astra S, Astra mini, Astra mini S
astraplus.launchmore
astrapro.launchAstra pro
embedded_s.launchDeeyea
dabai_u3.launchNature
gemini.launchGemini

Camera hardware structure diagram:

image-20220225120042278

1.1 SDK usage - Linux

Operating environment: virtual machine or dual system

Developer Community: https://developer.orbbec.com.cn/download.html?id=53

1.1.1 dependent environment

Go to the developer community to download the SDK file, that is(Astra SDK and OpenNI2 SDK, the version and system architecture must match).

9102_en

Note: All searches on the Internet are for the latest version. The versions in our supporting materials include [v2.1.2], [v2.1.3], etc. The following takes [v2.1.2] as an example, other versions are similar.

1.1.2 Camera SDK&Samples

The folder name and file path may not be the same, change them according to your needs.

The output contains the following two lines, pay attention to delete the install in the penultimate path:

After deleting install:

Copy the output to the end of ~/.bashrc

The amples directory is the sample program, which needs to depend on the include and lib directories

The bin folder is as follows:

image-20211030110700979

Note: sudo ./ or ./ can be used to start the bin folder, and the files with the suffix -SFML will be displayed on the screen; the methods are similar, and other effects can be tested. If the virtual machine fails to start, please try several times, it is easier to start under the dual system.

9104

1.1.3 OpenNI camera test tool

Install OpenNI

the device to initialize the OpenNI environment

compile and run

9103

1.2 AstraSDK-win

https://developer.orbbec.com.cn/download.html?id=32

1.2.1 Install the driver

image-20211101203302861

After the download is complete, double-click to install it. The signs of success are as follows

image-20211101203417860

1.2.2 Download SDK

image-20211030174512652

After the download is complete, unzip the folder,

image-20211030174610362

Enter the bin folder and double-click any file with the suffix exe to test it.

image-20211030174643376

1.3 OrbbecViewer-win

https://developer.orbbec.com.cn/download.html?id=77

image-20211030173934641

Unzip, enter the OrbbecViewer_v1.1.1 folder, double-click image-20211030174024144That's it.

image-20211030174229917

1.4 Web monitoring

Environment construction

Start the camera

<PI5 needs to open another terminal and enter the same docker container

image-20240408144126098

start web_video_server

Check