This file contains hidden or 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 2.6 FATAL_ERROR) | |
project(MY_GRAND_PROJECT) | |
find_package(PCL 1.8 REQUIRED COMPONENTS common io) | |
set(GUI_TYPE WIN32) | |
set(HDR) | |
set(RES) | |
add_definitions(-DWIN32 -D_WINDOWS -D_UNICODE -DUNICODE) | |
include_directories(${PCL_INCLUDE_DIRS}) | |
link_directories(${PCL_LIBRARY_DIRS}) |
This file contains hidden or 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
for (int y = 0; y < depthHeight; y += 2) | |
{ | |
for (int x = 0; x < depthWidth; x += 2) | |
{ | |
int depthIndex = (y * depthWidth) + x; | |
CameraSpacePoint p = cameraSpacePoints[depthIndex]; | |
ColorSpacePoint colorPoint = colorSpacePoints[depthIndex]; | |
byte r = 0; | |
byte g = 0; |
This file contains hidden or 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
using UnityEngine; | |
using Windows.Kinect; | |
//fileIO | |
using System.IO; | |
public class ColoredParticle2 : MonoBehaviour { | |
public GameObject MultiSourceManager; | |
public Color color = Color.green; |
This file contains hidden or 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
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
if(Serial.available()){ | |
byte var = Serial.read(); | |
int val = var - 0x30; | |
if (val >= 0 && val < 9) { | |
Serial.println(val); |
This file contains hidden or 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
using UnityEngine; | |
using System.Collections; | |
using System.IO.Ports; | |
using System.Threading; | |
public class SerialHandler : MonoBehaviour | |
{ | |
public delegate void SerialDataReceivedEventHandler(string message); | |
public event SerialDataReceivedEventHandler OnDataReceived; |
This file contains hidden or 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
//'a'をn回繰り返した配列を作る | |
char[] str = 'a'.repeat(n).array; |