Skip to content

Instantly share code, notes, and snippets.

@garaemon
garaemon / git.md
Last active August 29, 2015 13:56
git and github introduction and tips

git and github introduction and tips

gitでユーザー名を設定する

git config --global user.name hoge
git config --global user.email hoge@hoge.com

gitで他人のforkを手元に反映させる

@garaemon
garaemon / sample.js
Created March 13, 2014 12:32
rosnodejs sample

How to run

mkdir foo
cd foo
npm install git+https://github.com/baalexander/rosnodejs.git
node sample.js

verify it

@garaemon
garaemon / update_tags.sh
Last active August 29, 2015 13:57
a script to fix tags of jsk repos
#!/bin/bash
TAGS="cturtle diamondback fuerte electric"
for tag in $TAGS
do
if [ `git tag -l $tag` ]; then
hash=$(git log -1 --format="%H" --until="$(git show $tag --pretty=%ci -s | tail -n 1)")
if [ "$hash" != "" ]; then
echo "$tag -> $hash"
@garaemon
garaemon / nil_link_mesh.dae
Created April 24, 2014 11:26
collada marker's material is not used in rviz
<launch>
<node pkg="nodelet" type="nodelet" name="manager"
args="manager" />
<node pkg="topic_tools" type="relay" name="raw_concat_relay"
args="/camera/depth_registered/points /normal_concat/input" />
<node pkg="nodelet" type="nodelet" name="normal_estimate"
args="load pcl/NormalEstimation manager"
clear_params="true">
<remap from="~input" to="/camera/depth_registered/points" />
<remap from="~output" to="/normal_concat/input" />
@garaemon
garaemon / freenect2.md
Last active August 29, 2015 14:01
libfreenect2

14/05/27

freenect2

$ lsusb -t
2-5:1.0: No such file or directory
2-5:1.1: No such file or directory
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
@garaemon
garaemon / rostopic_percol.sh
Created June 18, 2014 04:47
search rostopic by percol
function search-rostopic-by-percol(){
LBUFFER=$LBUFFER$(rostopic list | percol)
zle -R -c
}
zle -N search-rostopic-by-percol
bindkey '^[r' search-rostopic-by-percol
#!/usr/bin/env python
import math
import rospy
from jsk_pcl_ros.msg import ColorHistogram
rospy.init_node("bhatta_test")
prev_hist = None
def cb(msg):
#!/usr/bin/env python
# cylinder test
import math
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib.patches import Circle, PathPatch
import random
#!/usr/bin/env python
# cylinder test
import math
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from matplotlib.patches import Circle, PathPatch
import random