Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
"""
Created on Thu Nov 24 21:49:10 2016
@author: ryuhei
このスクリプトは「カメラで世界を撮影する」ということが幾何学的にはどう定式化されるのかを説明するためのものです。
ピンホールカメラモデルにおいて、世界のある座標の1点から出た光線が、撮像素子のどの画素にヒットするのか、
ということを計算しています。点、ピンホール、撮像素子の物理的な位置関係を考えながら外部パラメタや内部パラメタを
色々変えてレンダリングしてみて、撮影される画像と照らし合わせてみてください。
@ronekko
ronekko / subscribe_hokuyo_node_via_rosbridge.py
Created October 28, 2016 15:36
A script for Windows to communicate with ROS hokuyo_node over rosbridge.
# -*- coding: utf-8 -*-
"""
Created on Sat Oct 28 22:14:57 2016
@author: sakurai
---------------------------------------
This script is for Windows to communicate with ROS hokuyo_node over rosbridge.
Install rosbridge on the remote machine.
@ronekko
ronekko / ros_on_docker_for_windows.md
Last active October 26, 2016 11:16
Docker for WindowsでROSを動かす最小のデモ
@ronekko
ronekko / rosbridge_turtlesim_tcp_client.py
Last active October 17, 2016 12:01
rosbridge_turtlesim_tcp_client
# -*- coding: utf-8 -*-
"""
Created on Fri Oct 14 20:46:03 2016
@author: sakurai
------------------------------------------------------
This script is an example of TCP client for rosbridge.
Install rosbridge on the remote machine.
# -*- coding: utf-8 -*-
"""
Created on Thu Sep 15 14:00:48 2016
@author: sakurai
"""
import os
import contexttimer
@ronekko
ronekko / alc_-_auto-clear_textbox.user.js
Last active May 18, 2017 05:53
スペースアルクで検索後にテキストボックスを空にする
// ==UserScript==
// @name ALC - Auto-clear Textbox
// @namespace http://profile.livedoor.com/ronekko/
// @description スペースアルクで検索後にテキストボックスを空にする
// @include http://eow.alc.co.jp/*
// @include https://eow.alc.co.jp/*
// @version 20170518
// ==/UserScript==
var textbox = document.getElementById('q');
@ronekko
ronekko / Weight initialization by normal distribution with various scales.ipynb
Created June 21, 2016 04:56
Weight initialization by normal distribution with various scales.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ronekko
ronekko / Numerical differentiation.ipynb
Created June 21, 2016 04:55
Numerical differentiation of neural network with 1 hidden layer
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// ==UserScript==
// @name LDR - More about Recently Added Feeds
// @namespace http://profile.livedoor.com/ronekko/
// @description Livedoor Readerで「○○の新着フィード」のフィードにより詳しい情報を追加する
// @include http://reader.livedoor.com/reader/
// @include http://reader.livedoor.com/subscribe/*
// @include http://reader.livedwango.com/reader/
// @include http://reader.livedwango.com/subscribe/*
// @version 20160215
// ==/UserScript==