Skip to content

Instantly share code, notes, and snippets.

View furushchev's full-sized avatar
🤖

Yuki Furuta furushchev

🤖
View GitHub Profile
#!/usr/bin/env roseus
;; test.l
;; Author: Yuki Furuta <[email protected]>
(require :pr2 "package://pr2eus/pr2.l")
(defun test-fail ()
(setq *pr2* (pr2))
(setq arm :larm av nil)
(defmacro dolist (vars &rest forms)
(let ((lists (gensym "DOLIST"))
(loop-tag (gensym "DOLIST"))
(maybe-decl (car forms)))
(if (and (consp maybe-decl) (eq (car maybe-decl) 'declare))
(setq forms (cdr forms))
(setq maybe-decl nil))
`(block nil
(let ((,(car vars) nil)
(,lists ,(cadr vars)))
@furushchev
furushchev / stable-sort-test.l
Created July 25, 2018 00:43
stable sort test
(defclass obj
:slots (num))
(defmethod obj
(:init (n) (setq num n))
(:num () num))
(setq l (list
(instance obj :init 1)
(instance obj :init 2)
(instance obj :init 2)
furushchev@fetch15:~ $ roscd fetch_navigation/
furushchev@fetch15:/opt/ros/indigo/share/fetch_navigation $ ag -r "FetchDepth" .
config/fetch/costmap_global.yaml
3: - {name: obstacles, type: "costmap_2d::FetchDepthLayer"}
config/fetch/costmap_local.yaml
6: - {name: obstacles, type: "costmap_2d::FetchDepthLayer"}
furushchev@fetch15:/opt/ros/indigo/share/fetch_navigation $ su - fetch
Password:
fetch@fetch15:~$ roscd fetch_navigation/
@furushchev
furushchev / PR2HeadForRespeaker.md
Last active September 14, 2018 11:54
PR2 Head lid cover for Respeaker Mic Array v2.0
<launch>
<arg name="input_depth_image" default="/kinect_head/depth_registered/image_rect" />
<arg name="input_rgb_image" default="/kinect_head/rgb/image_rect_color" />
<arg name="input_point" default="/kinect_head/depth_registered/points" />
<arg name="input_info" default="/kinect_head/rgb/camera_info" />
<node pkg="jsk_pcl_ros" type="border_estimator" name="border_estimator"
output="screen">
<remap from="~input" to="$(arg input_point)" />
<remap from="~input_camera_info" to="$(arg input_info)" />
- git:
local-name: PR2/app_manager
uri: https://github.com/PR2/app_manager
version: hydro-devel
- git:
local-name: PR2/pr2_controllers
uri: https://github.com/PR2/pr2_controllers
version: indigo-devel
- git:
local-name: PR2/pr2_gripper_sensor
@furushchev
furushchev / count_msg_types.js
Last active May 4, 2018 05:56
以下のコマンドをダウンロードして、実行してみてください。→ mongo fetch15/jsk_robot_lifelog --quiet count_msg_types.js
shellPrint(db.fetch15.aggregate([
// {'$limit': 100}, // limit message if it takes too long time.
{'$project': {'_id': 0, '_meta.stored_type': 1}},
{'$group': {'_id': '$_meta.stored_type', 'count': {'$sum': 1}}}
]));
<launch>
<arg name="camera" default="kinect_head_remote"/>
<arg name="manager" default="$(arg camera)/$(arg camera)_nodelet_manager" />
<include file="$(find openni_launch)/launch/openni.launch">
<arg name="camera" value="$(arg camera)" />
<arg name="rgb_frame_id" value="/head_mount_kinect_rgb_optical_frame" />
<arg name="depth_frame_id" value="/head_mount_kinect_rgb_optical_frame" />
<arg name="publish_tf" value="false" />
digraph {
subgraph cluster_0 {
label="/tilt_shadow_filter";
"in" -> "shadow [laser_filters/ScanShadowFilter]" -> "dark_shadows [laser_filters/LaserScanIntensityFilter]" -> "angular_bounds [laser_filters/LaserScanAngularBoundsFilter]" -> "downscan_filter [laser_tilt_controller_filter/LaserTiltControllerFilter]" -> "footprint_filter [pr2_navigation_perception/PR2PointCloudFootprintFilterNew]" -> "out"
}
subgraph cluster_1 {
label="/base_shadow_filter";
"in " -> "shadow [laser_filters/ScanShadowFilter] " -> "dark_shadows [laser_filters/LaserScanIntensityFilter] " -> "footprint_filter [pr2_navigation_perception/PR2PointCloudFootprintFilterNew] " -> "out "
}
node [shape=box]