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
# after run sh 'build_env_colab.sh', run | |
# import sys | |
# sys.path.append('/usr/local/lib/python3.6/site-packages/') | |
# in the python. | |
# To run the gym in server, pyvirtualdisplay is the best solution | |
# see https://qiita.com/ikeyasu/items/ec3c88ce13a2d5e41f26 | |
# install anaconda | |
wget https://repo.anaconda.com/archive/Anaconda3-5.1.0-Linux-x86_64.sh |
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
% Simulation of Kalman_Filter | |
% In this script, error_ellipse function is used. Please download here: | |
% https://www.mathworks.com/matlabcentral/fileexchange/4705-error-ellipse | |
clear; close all; | |
fig = figure; | |
hold on; | |
% Initial State | |
x0 = [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
% Simulation of Kalman_Filter | |
% In this script, error_ellipse function is used. Please download here: | |
% https://www.mathworks.com/matlabcentral/fileexchange/4705-error-ellipse | |
clear; close all; | |
fig = figure; | |
hold on; | |
% Initial State | |
x0 = [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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
[summary] | |
mm 単位になっているstlファイルを m 単位に変換する | |
[description] | |
python mm_to_m.py sample.stl | |
のように実行すると、sample_m.stlという名前の m 単位に変換したファイルを保存する。 |
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 bash | |
mass=`grep ^質量 "$1" | sed -e "s/[^0-9.]//g"` | |
echo "<mass value=\"$mass\"/>" | |
# extract ixx, ixy, ixz | |
temp=`grep Ixx "$1" | sed -e "s/[a-z = A-Z]//g"` | |
declare xx=() # declare matrix |
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 bash | |
function _func_create_md(){ | |
kyo=`date +%y%m%d` | |
kyo_md="${kyo}.md" | |
if ! [ -e "${kyo_md}" ]; then | |
: > "${kyo_md}" | |
fi | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 gym | |
from gym import wrappers | |
import numpy as np | |
import matplotlib.pyplot as plt | |
""" | |
For practicing reinforcement learning | |
observation: | |
(position,velocity) |
NewerOlder