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
class SimpleKalman | |
{ | |
double P, K; | |
double X; | |
public: | |
double Q; | |
double R; | |
SimpleKalman() | |
:P(0.0), X(0.0) | |
{}; |
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
#!/bin/bash | |
#http://gazebosim.org/tutorials?tut=ros2_installing&cat=connect_ros | |
#http://gazebosim.org/tutorials?tut=install_ubuntu&cat=install | |
curl -sSL http://get.gazebosim.org | sh | |
sudo apt install ros-crystal-gazebo-ros-pkgs |
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 install -y gcc-6 g++-6 cmake build-essential git pkg-config ccache \ | |
unzip ecm extra-cmake-modules fcitx-libs-dev libfcitx-qt5-1 \ | |
mesa-utils libgtk2.0-dev libgtk-3-dev ffmpeg \ | |
libavcodec-dev libavformat-dev libswscale-dev libtbb2 libtbb-dev \ | |
libjpeg-dev libpng-dev libtiff5-dev x264 libxvidcore-dev yasm \ | |
libxine2-dev libv4l-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev \ | |
libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev \ | |
x264 v4l-utils ffmpeg libdc1394-22 libdc1394-22-dev libtiff5-dev \ | |
qt5-default libeigen3-dev libeigen3-doc tesseract-ocr tesseract-ocr-jpn \ | |
vtk6 tcl-vtk6 python-vtk6 libgflags-dev autoconf automake libtool \ |
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
#!/usr/bin/env python3 | |
import sys | |
import os.path | |
import subprocess | |
import time | |
import argparse | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser(description='Local debug tool for competitive programing.') | |
parser.add_argument('src', help='Sourcecode file') |
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
TEAM1=TEAMHOGEHOGE | |
TEAM2=hufateam | |
TEAM3=HELLOTEAM | |
TEAM4=TEAM4 | |
TEAM5=TEAMFive | |
TEAM6=KEIO6 | |
TEAM1PI=pi@192.168.10.1 | |
TEAM2PI=pi@192.168.10.2 | |
TEAM3PI=pi@193.168.10.3 | |
TEAM4PI=pi@194.168.10.4 |
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
#!/bin/bash | |
IMAGE=$1 | |
start_time=`date +%s%N` | |
OUTPUT=`./runner.out ${IMAGE}` | |
end_time=`date +%s%N` | |
run_time=`echo "scale=3; (${end_time} - ${start_time})/1000000000" | bc` | |
echo "${OUTPUT},${run_time}sec" |
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
import sys | |
import pandas as pd | |
import matplotlib as mpl | |
from mpl_toolkits.mplot3d import Axes3D | |
import numpy as np | |
import matplotlib.pyplot as plt | |
filename = sys.argv[1] | |
data = pd.read_csv(filename) | |
mpl.rcParams['legend.fontsize'] = 10 |
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
import sys | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
filename = sys.argv[1] | |
df = pd.read_csv(filename) | |
dt = 0.5 | |
i = np.arange(0,len(df)*dt,dt) |
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
import sys | |
import pandas as pd | |
import matplotlib as mpl | |
from mpl_toolkits.mplot3d import Axes3D | |
import numpy as np | |
import matplotlib.pyplot as plt | |
filename = sys.argv[1] | |
df = pd.read_csv(filename) | |
dt = 0.05 |
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
#!/bin/bash | |
for node in worker1 worker2; do | |
echo =================== $node ===================== | |
scp /opt/hoge/* $node:/opt/hoge/; | |
done |
OlderNewer