Skip to content

Instantly share code, notes, and snippets.

View UnaNancyOwen's full-sized avatar

Tsukasa Sugiura UnaNancyOwen

View GitHub Profile
cmake_minimum_required( VERSION 3.6 )
set( CMAKE_CXX_STANDARD 11 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
# Create Project
project( K4A )
add_executable( K4A main.cpp )
@UnaNancyOwen
UnaNancyOwen / CMakeLists.txt
Last active July 27, 2023 05:03
CMake Find Module for Azure Kinect Sensor SDK and Azure Kinect Body Tracking SDK
cmake_minimum_required( VERSION 3.6 )
set( CMAKE_CXX_STANDARD 11 )
set( CMAKE_CXX_STANDARD_REQUIRED ON )
set( CMAKE_CXX_EXTENSIONS OFF )
project( K4ABT )
add_executable( K4ABT main.cpp )
set_property( DIRECTORY PROPERTY VS_STARTUP_PROJECT "K4ABT" )
/*
DESCRIPTION:
query_motion_devices() is returns a list of all devices that have motion sensors.
HOWTOUSE:
std::vector<rs2::device> motion_devices;
query_motion_devices( motion_devices );
if( motion_devices.empty ){
throw std::runtime_error( "could not find devices that have motion sensors." );
return -1;
@UnaNancyOwen
UnaNancyOwen / main.cpp
Last active September 16, 2023 22:21
OpenCV 4.0 Kinect Fusion
#include <iostream>
#include <cmath>
#include <limits>
#include <opencv2/opencv.hpp>
#include <opencv2/rgbd.hpp>
#include <opencv2/viz.hpp>
void initialize_parameters( cv::kinfu::Params& params, const uint32_t width, const uint32_t height, const float focal_x, const float focal_y = 0.0f ){
float fx = focal_x;
float fy = focal_y;
C:/Program Files/PCL/include/pcl-1.9/pcl/pcl_config.h
C:/Program Files/PCL/cmake/Modules/FindDSSDK.cmake
C:/Program Files/PCL/cmake/Modules/FindEigen.cmake
C:/Program Files/PCL/cmake/Modules/FindEnsenso.cmake
C:/Program Files/PCL/cmake/Modules/FindFLANN.cmake
C:/Program Files/PCL/cmake/Modules/FindFZAPI.cmake
C:/Program Files/PCL/cmake/Modules/FindG2O.cmake
C:/Program Files/PCL/cmake/Modules/FindGLEW.cmake
C:/Program Files/PCL/cmake/Modules/FindGTSAM.cmake
C:/Program Files/PCL/cmake/Modules/FindGtest.cmake
PS C:\pcl\build> ctest -C Release -V
UpdateCTestConfiguration from :C:/pcl/build/DartConfiguration.tcl
UpdateCTestConfiguration from :C:/pcl/build/DartConfiguration.tcl
Test project C:/pcl/build
Constructing a list of tests
Done constructing a list of tests
Updating test list for fixtures
Added 0 tests to meet fixture requirements
Checking test dependency graph...
Checking test dependency graph end
@UnaNancyOwen
UnaNancyOwen / json.md
Last active October 26, 2018 16:40
NuiTrack SDK Instances JSON Specification

NuiTrack SDK Instances JSON Specification

Pattern

  1. Not Found Human
    {
        "Timestamp": "0000000000000000",
        "Instances":
#include <librealsense2/rs.hpp>
int main( int argc, char* argv[] )
{
// Set Device Config
rs2::config config;
config.enable_stream( rs2_stream::RS2_STREAM_INFRARED, 1, width, height, rs2_format::RS2_FORMAT_Y8, fps ); // Left
config.enable_stream( rs2_stream::RS2_STREAM_INFRARED, 2, width, height, rs2_format::RS2_FORMAT_Y8, fps ); // Right
// Start Pipeline
@UnaNancyOwen
UnaNancyOwen / main.cpp
Last active March 15, 2018 14:28
How to workaround for high CPU usage when enable BUILD_WITH_OPENMP
// Set Color Stream format to YUYV insted of BGR8
rs2::config config;
config.enable_stream( rs2_stream::RS2_STREAM_COLOR, width, height, rs2_format::RS2_FORMAT_YUYV, fps );
// Start Pipline
const rs2::pipeline_profile pipeline_profile = pipeline.start( config );
// Retrieve Frameset
const rs2::frameset frameset = pipeline.wait_for_frames();
@UnaNancyOwen
UnaNancyOwen / librealsense2.10.1.md
Last active October 17, 2022 04:38
Building RealSense SDK 2 (librealsense2) with Visual Studio