This file contains 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 -D CMAKE_BUILD_TYPE=RELEASE \ | |
-D CMAKE_INSTALL_PREFIX=/usr \ | |
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ | |
-D EIGEN_INCLUDE_PATH=/usr/include/eigen3 \ | |
-D WITH_OPENCL=OFF \ | |
-D WITH_CUDA=ON \ | |
-D CUDA_ARCH_BIN=6.2 \ | |
-D OPENCV_EXTRA_MODULES_PATH=~/external_pkg/OpenCV/opencv_contrib/modules \ | |
-D CUDA_ARCH_PTX=”” \ | |
-D WITH_CUDNN=ON \ |
This file contains 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
function ToQuaternion(yaw, pitch, roll) // yaw (Z), pitch (Y), roll (X) | |
{ | |
// Abbreviations for the various angular functions | |
let cy = Math.cos(yaw * 0.5); | |
let sy = Math.sin(yaw * 0.5); | |
let cp = Math.cos(pitch * 0.5); | |
let sp = Math.sin(pitch * 0.5); | |
let cr = Math.cos(roll * 0.5); | |
let sr = Math.sin(roll * 0.5); |
This file contains 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
sudo apt-get install ntpdate | |
sudo ntpdate time.windows.com | |
sudo hwclock --localtime --systohc |
This file contains 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
[user] | |
name = "Tid" | |
email = "[email protected]" | |
[core] | |
editor = vim | |
excludesfile = /home/tid/.gitignore | |
[alias] | |
tree = log --oneline --decorate --all --graph | |
~ |
This file contains 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
prompt="\n[\[\033[0;1;33m\]\h:\[\033[0;1;32m\]${YROOT}\[\033[0;1;36m\]\w\[\e[0;0m\]]\n\[\033[0;1;32m\]\u\[\033[0;1;31m\][\l]\[\033[0;0m\]\j${VIMENV}\$ " | |
case $TERM in | |
rxvt*|xterm*) | |
export PS1="\[\033]0;\H${YROOT}:\w\007\]$prompt" | |
;; | |
screen*) | |
#export PS1="\[\033k\H:\w\033\134\]$prompt" | |
export PS1=$prompt | |
;; |
This file contains 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
# -*- coding:utf-8 -*- | |
# Filename: viterbi.py | |
# Author:hankcs | |
# Date: 2014-05-13 下午8:51 | |
states = ('Rainy', 'Sunny') | |
observations = ('walk', 'shop', 'clean') | |
start_probability = {'Rainy': 0.6, 'Sunny': 0.4} |