Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add picture to describe the principle
  • Loading branch information
hzcyf committed Sep 18, 2023
commit eb0623a31bfcb0307277ab8d76bfaa9397766756
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Also user can use this library to replace native K4A library in your application

The [k4a.h](./include/k4a/k4a.h) is the header file of K4A API, and the source code in [k4a.c](./src/sdk/k4a.c) is the implementation of K4A API. We have reimplemented the K4A API in [ob_k4a_impl.c](./src/orbbec/ob_k4a_impl.c) with OrbbecSDK, and keep the same effect as the original K4A API. Therefore, all functions called on user's side will be redirected to the OrbbecSDK, and user can access the Orbbec camera like the K4A device.

![OrbbecSDK-K4A-Wrapper](src\orbbec\docs\resource\OrbbecSDK-K4A-Wrapper.png)

## Supported camera and platform

Orbbec Femto Mega: Windows10+, Ubuntu20.04+; x64
Expand Down Expand Up @@ -62,3 +64,4 @@ Connect the Orbbec camera to your PC, and run the k4aviewer.
## Attention

1. The library of this branch is not support the K4A device, please use the [Native K4A](https://github.com/microsoft/Azure-Kinect-Sensor-SDK) library to access the K4A device.
2. The OrbbecSDK K4A Wrapper is aim to provide the same API as the K4A, but it's not full API for OrbbecSDK and feature for Orbbec camera. If you want to use the full feature of Orbbec camera, please use the [OrbbecSDK](https://github.com/orbbec/OrbbecSDK) directly.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/orbbec/ob_k4a_impl.c
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ k4a_result_t k4a_device_start_imu(k4a_device_t device_handle)
}

ob_sensor_start(accel_sensor, profile, ob_accel_frame, device_handle, &ob_err);
// CHECK_OB_ERROR(ob_err);
CHECK_OB_ERROR(ob_err);
ob_delete_stream_profile(profile, &ob_err);
if (ob_err != NULL)
{
Expand Down