Skip to content

Instantly share code, notes, and snippets.

View zzilch's full-sized avatar

Zeyu Huang zzilch

View GitHub Profile
@sh-akira
sh-akira / SteamVRTracker.cs
Last active September 21, 2021 16:18
SteamVR Plugin 2.xでVIVEトラッカーの役割設定からトラッカー位置を取得するサンプル(肘と膝を含む)
// SteamVR 2.x Tracker Role Pose Example
// MIT License
// Copyright (c) 2021 sh_akira
using System;
using System.Runtime.InteropServices;
using UnityEngine;
using Valve.VR;
namespace akr.Avatar.Tracking
@mkocabas
mkocabas / batch_procrustes_pytorch.py
Created October 9, 2019 12:31
Pytorch batch procrustes implementation
import numpy as np
import torch
def compute_similarity_transform(S1, S2):
'''
Computes a similarity transform (sR, t) that takes
a set of 3D points S1 (3 x N) closest to a set of 3D points S2,
where R is an 3x3 rotation matrix, t 3x1 translation, s scale.
i.e. solves the orthogonal Procrutes problem.
'''