- C++ openNURBS SDK(opennurbs_20130711.zip)をダウンロードしてファイルを解凍する。(C:\opennurbs_20130711)
ダウンロードにはメールアドレスを入力する必要がある。
http://www.rhino3d.com/opennurbs
Build
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ImportGroup Label="PropertySheets"/> | |
<!-- Debug|Win32 --> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
</PropertyGroup> | |
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
<ClCompile> |
Build
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ImportGroup Label="PropertySheets"/> | |
<!-- Debug|Win32 --> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
</PropertyGroup> | |
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
<ClCompile> |
namespace pcl{ | |
class CustomGrabber : public pcl::Kinect2Grabber | |
{ | |
public: | |
CustomGrabber() | |
: source( nullptr ) | |
, reader( nullptr ) | |
{ | |
result = sensor->get_BodyFrameSource( &source ); | |
if( FAILED( result ) ){ |
# CMake | |
cmake_minimum_required(VERSION 2.8 FATAL_ERROR) | |
# Solution | |
project(solution) | |
# Project | |
set(HEADER kinect2_grabber.h) | |
set(SOURCE main.cpp) | |
add_executable(project ${HEADER} ${SOURCE}) |
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ImportGroup Label="PropertySheets"/> | |
<!-- All Configurations|All Platforms --> | |
<ItemDefinitionGroup> | |
<ClCompile> | |
<OpenMPSupport>true</OpenMPSupport> | |
</ClCompile> |
<?xml version="1.0" encoding="utf-8"?> | |
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<ImportGroup Label="PropertySheets"/> | |
<!-- Debug|Win32 --> | |
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
</PropertyGroup> | |
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | |
<ClCompile> |
set CLASSPATH=%CD% | |
java -jar moonlight-win32.jar -host <Host Name or IP Address> -app "<App Name>" -fs -1080 -60fps |
#include "stdafx.h" | |
// Disable Error C4996 that occur when using Boost.Signals2. | |
#ifdef _DEBUG | |
#define _SCL_SECURE_NO_WARNINGS | |
#endif | |
#include "kinect_grabber.h" | |
#include <pcl/visualization/pcl_visualizer.h> |
cmake_minimum_required( VERSION 2.8 ) | |
# Create Solution(*.sln) and Project(*.vcxproj) | |
project( solution ) | |
add_executable( project main.cpp ) | |
# Set Local Debugger Settings (Command Arguments and Environment Variables) | |
set( COMMAND_ARGUMENTS "<commands>" ) | |
set( ENVIRONMENT_VARIABLES "<variables>" ) | |
configure_file( template.vcxproj.user.in ${CMAKE_BINARY_DIR}/project.vcxproj.user @ONLY ) |