This is shell script for setup Azure Kinect SDK (Azure Kinect Sensor SDK/Azure Kinect Body Tracking SDK).
You can easily setup Azure Kinect SDK on Ubuntu 18.04 LTS (ARM64, AMD64) using this script.
If you run script and it succeeds, Azure Kinect Viewer will launch.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo apt update | |
## Install Dependencies (Build Tools) | |
sudo apt install -y build-essential | |
sudo apt install -y cmake | |
sudo apt install -y cmake-curses-gui | |
sudo apt install -y ninja-build | |
sudo apt install -y pkg-config | |
## Install Dependencies (GUI) | |
sudo apt install -y libgtk-3-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Shell Scripts for Install RealSense SDK from Package | |
sudo apt-key adv --keyserver keys.gnupg.net --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE || sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key F6E65AC044F831AC80A06380C8B3A55A6F3EFCDE | |
sudo add-apt-repository "deb http://realsense-hw-public.s3.amazonaws.com/Debian/apt-repo bionic main" -u | |
sudo apt install -y librealsense2-utils | |
sudo apt install -y librealsense2-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start Fan [0-255] | |
echo 255 | sudo tee /sys/devices/pwm-fan/target_pwm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required( VERSION 3.6 ) | |
# Language | |
enable_language( CXX ) | |
# Compiler Settings | |
set( CMAKE_CXX_STANDARD 11 ) | |
set( CMAKE_CXX_STANDARD_REQUIRED ON ) | |
set( CMAKE_CXX_EXTENSIONS OFF ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This is C++ wrapper for Record API of Azure Kinect Sensor SDK. | |
Copyright (c) 2019 Tsukasa Sugiura <t.sugiura0204@gmail.com> | |
Licensed under the MIT license. | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required( VERSION 3.6 ) | |
set( CMAKE_CXX_STANDARD 11 ) | |
set( CMAKE_CXX_STANDARD_REQUIRED ON ) | |
set( CMAKE_CXX_EXTENSIONS OFF ) | |
find_package( Git ) | |
execute_process( | |
COMMAND ${GIT_EXECUTABLE} clone "https://github.com/ocornut/imgui.git" -b v1.72b | |
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
k4a_double_exponential_filter.h | |
This file contains holt double exponential smoothing filter for filtering joints. | |
It was ported for Azure Kinect Body Tracking SDK based on following implementation. | |
https://social.msdn.microsoft.com/Forums/en-US/045b058a-ae3a-4d01-beb6-b756631b4b42 | |
std::unordered_map<int32_t, double_exponential_filter> double_exponential_filter; | |
while( true ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required( VERSION 3.6 ) | |
set( CMAKE_CXX_STANDARD 11 ) | |
set( CMAKE_CXX_STANDARD_REQUIRED ON ) | |
set( CMAKE_CXX_EXTENSIONS OFF ) | |
project( K4A ) | |
add_executable( K4A k4abt.hpp util.h main.cpp ) | |
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "K4A" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required( VERSION 3.6 ) | |
project( AzureKinect ) | |
add_executable( AzureKinect util.h main.cpp ) | |
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "AzureKinect" ) | |
set( k4a_DIR "C:/Program Files/K4A/lib/cmake/k4a" CACHE PATH "Path to Azure Kinect SDK (K4A) config directory." ) | |
find_package( k4a REQUIRED ) |