MotionScoreServer는 C++로 작성된 간단한 HTTP 서버로, 오버레이 제어와 운동 시작/종료 요청을 처리합니다.
빌드된 실행 파일인 MotionScoreServer를 실행하면 서버가 자동으로 포트 8080에서 시작됩니다.
./MotionScoreServer
import xml.etree.ElementTree as ET | |
import csv | |
from datetime import datetime | |
def export_body_mass_to_csv(xml_file, csv_file): | |
context = ET.iterparse(xml_file, events=("end",)) | |
with open(csv_file, 'w', newline='', encoding='utf-8') as f: | |
writer = csv.writer(f) | |
writer.writerow(['Date', 'Weight']) |
Set angle of MEMS mirrors. It returns when MEMS mirror finishes targeting. This method is synchronous.
true
when setting angle successfully, false
when timeout occured or otherwise.x
: Radian angle in x axis.y
: Radian angle in y axis.timeout
: timeout in microseconds.Return current angle of MEMS mirrors. This method synchronous.
true
when getting angle successfully, false
otherwise.import time | |
import numpy as np | |
a = np.zeros((1080 * 4, 1920, 3)) | |
last_time = time.time() * 1000 | |
for i in range(1000) : | |
np.save('{}.npy'.format(i), a) | |
now = time.time() * 1000 |
auto node = ClippingRectangleNode::create(Rect(-100, -100, 200, 200)); | |
auto sprite = Sprite::create("HelloWorld.png"); | |
node->addChild(sprite); |
[ | |
{ | |
"title":"Shawshank Redemption", | |
"category_id":1, | |
"synopsis":"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim venom", | |
"thumbnail_image_url":"http://lge.com/sdk/shawshank_redemption_thumbnail.jpg", | |
"full_image_url":"http://lge.com/sdk/shawshank_redemption_full.jpg", | |
"video_url":"http://lge.com/sdk/shawshank_redemption_video.mp4" | |
}, | |
{ |
August 4, 2014
August 5, 2014