Skip to content

Instantly share code, notes, and snippets.

DockerでROSを動かす Tutorials

roscoreを起動する

docker run -h master -it --rm --name master --env ROS_HOSTNAME=master osrf/ros:jade-desktop-full roscore

talkerを起動する

@mia-0032
mia-0032 / 02_graph.py
Created August 23, 2013 17:13
Pythonでヒストグラムと箱ひげ図を描く
# -*- coding:utf-8 -*-
import numpy
import pylab
#データの生成
n = 200
score_x = numpy.random.normal(171.77, 5.54, n)
score_y = numpy.random.normal(62.49, 7.89, n)
#! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Created on 15/01/15
@author: Sammy Pfeiffer
# Software License Agreement (BSD License)
#
# Copyright (c) 2016, PAL Robotics, S.L.
# All rights reserved.
@oddmutou
oddmutou / channels.yml
Last active February 11, 2020 02:13
mirakurunの設定(KTV-FSPCIE,東京都港区)
- name: TOKYO MX
type: GR
channel: '16'
- name: チバテレ
type: GR
channel: '17'
- name: tvk
type: GR
channel: '18'
- name: テレ玉
@rvvincelli
rvvincelli / Dynamic LCB
Last active June 1, 2021 02:23
Dynamic implementation for the emukit LCB acquisition
from emukit.core.interfaces import IModel, IDifferentiable
import numpy as np
from typing import Union
class DynamicNegativeLowerConfidenceBound(NegativeLowerConfidenceBound):
def __init__(self, model: Union[IModel, IDifferentiable],input_space_size: int, delta: float) -> None:
"""
This acquisition computes the negative lower confidence bound for a given input point. This is the same
as optimizing the upper confidence bound if we would maximize instead of minimizing the objective function.
For information as well as some theoretical insights see:
Gaussian Process Optimization in the Bandit Setting: No Regret and Experimental Design
@rezoo
rezoo / caffe.md
Last active November 4, 2021 15:28

Caffe tutorial

この文章ではCNN実装であるCaffeを用いて,特徴ベクトルの抽出やパラメータの学習を行うための方法について説明する.

Caffeでサポートされている機能

以下の作業を行いたいのであれば,Caffeを用いることが望ましい.

  • CNNを利用した画像の多クラス分類
  • CNNによる特徴ベクトルの抽出
  • CNNの転移学習
  • Stacked Auto Encoder
@AminaKeldibek
AminaKeldibek / Multiple camera calibration procedure.md
Last active March 12, 2022 08:31
Multiple camera calibration

The document provides description on calibration of three Kinect for Microsoft sensors connected to one computer with several usb controllers. Three cameras setup is shown below:

![Figure 1] (http://i.imgur.com/sdOWbVl.jpg)

Intrinsic, extrinsic, and Kinect2Kinect calibration is performed to know the position of each sensor in the space. Our setup is ROS Indigo with Ubuntu 14.04. freenect_launch and camera_pose ROS packages are used. Camera_pose package provides the pipeline to calibrate the relative 6D poses between multiple camera's. freenect_launch package contains launch files for using OpenNI-compliant devices in ROS. It creates a nodelet graph to transform raw data from the device driver into point clouds, disparity images, and other products suitable for processing and visualization. It is installed with catkin as follows:

# Prep
@polamjag
polamjag / amazon-calc.js
Last active September 7, 2022 11:23 — forked from arcatdmz/amazon-csv.js
Amazon で使った金額の合計を出す奴 (2014-2016 年バージョン)
// Amazon で使った金額の合計を出す奴
//
// 使い方:
// 1. 全部コピーする (右上の Raw をクリックした先でやるのが楽)
// 2. Amazon の注文履歴ページ ( https://www.amazon.co.jp/gp/css/order-history/ ) を開く
// 3. F12 または 右クリ→要素の検証 とかで出てくる開発者ツールのコンソール (JavaScript REPL) にペースト
// 4. エンターで実行
// (Firefox はなんか allow pasting とタイプしろみたいなことを言われるので従う)
// 5. しばらく待つと alert で合計金額を表示
//
@backpaper0
backpaper0 / gitbucket-windowsservice.md
Created February 19, 2014 13:40
GitBucketをWindowsサービス化する

GitBucketをWindowsサービス化する

winswを利用してサービス化する。 winswはJenkinsやGlassFishも使ってる。

GitBucketをダウンロードする

winswをダウンロードする

@audrow
audrow / ros2_publish_single_pointcloud2.py
Last active January 3, 2023 06:41
ROS2 PointCloud2 Publisher #open-robotics
# A way of reproducing https://github.com/ros2/rviz/issues/322
#
# Code source:
# https://github.com/SebastianGrans/ROS2-Point-Cloud-Demo/blob/79ef97fc92147a0d550543a69541139097cc3b35/pcd_demo/pcd_publisher/pcd_publisher_node.py
import rclpy
from rclpy.node import Node
import sensor_msgs.msg as sensor_msgs
import std_msgs.msg as std_msgs