Skip to content

Instantly share code, notes, and snippets.

@yoneken
yoneken / file1.txt
Created November 18, 2014 09:59
【C言語】Intel EdisonでPWM出力 ref: http://qiita.com/yoneken/items/ee0735cb42239750ee8b
CC = gcc
MRAALIBS = -lmraa
.PHONY: all clean pwm
all: pwm
clean:
rm -f ./*.o
rm -f pwm
@yoneken
yoneken / linux-yocto_3.10.bbappend
Last active August 29, 2015 14:10
Yocto linux recipe for Intel Edison
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
COMPATIBLE_MACHINE = "edison"
LINUX_VERSION = "3.10.17"
SRCREV_machine = "c03195ed6e3066494e3fb4be69154a57066e845b"
SRCREV_meta = "6ad20f049abd52b515a8e0a4664861cfd331f684"
SRC_URI += "file://defconfig"
SRC_URI += "file://upstream_to_edison.patch"
SRC_URI += "file://patch-3.10.17-rt12_edison.patch"
SRC_URI += "file://intel_mid_rpmsg.c.patch"
alva@ubilinux:~/ros_catkin_ws$ rosservice call open 20
result: 0
alva@ubilinux:~/ros_catkin_ws$ rosservice call set_dir 20 out
result: 0
alva@ubilinux:~/ros_catkin_ws$ rosservice call write 20 1
result: 0
alva@ubilinux:~/ros_catkin_ws$ rosservice call write 20 0
result: 0
alva@ubilinux:~/ros_catkin_ws$ rosservice call write 20 1
result: 0
@yoneken
yoneken / build.log
Last active August 29, 2015 14:11
Compilation error, when I type "catkin_make_isolated --pkg ros_gpio".
==> Processing catkin package: 'ros_gpio'
==> Creating build directory: 'build_isolated/ros_gpio'
==> Building with env: '/home/alva/ros/catkin/devel_isolated/posedetection_msgs/env.sh'
==> cmake /home/alva/ros/catkin/src/ros_gpio -DCATKIN_DEVEL_PREFIX=/home/alva/ros/catkin/devel_isolated/ros_gpio -DCMAKE_INSTALL_PREFIX=/home/alva/ros/catkin/install_isolated in '/home/alva/ros/catkin/build_isolated/ros_gpio'
Unhandled exception of type 'OSError':
Traceback (most recent call last):
File "/home/alva/ros/catkin/install_isolated/lib/python2.7/dist-packages/catkin/builder.py", line 875, in build_workspace_isolated
number=index + 1, of=len(ordered_packages)
File "/home/alva/ros/catkin/install_isolated/lib/python2.7/dist-packages/catkin/builder.py", line 627, in build_package
destdir=destdir
@yoneken
yoneken / pyqwt.rb
Created January 8, 2015 00:20
homebrew/Library/Formula/pyqwt.rb
require 'formula'
class Pyqwt < Formula
homepage 'http://pyqwt.sourceforge.net'
url 'https://downloads.sourceforge.net/project/pyqwt/pyqwt5/PyQwt-5.2.0/PyQwt-5.2.0.tar.gz'
sha1 '797f37c63dec660272f6a8ccfd16a017df0ad640'
depends_on :python
depends_on 'qt'
depends_on 'qwt'
@yoneken
yoneken / pnLED.py
Last active August 29, 2015 14:15 — forked from rohinip/pnLED.py
##################
#### pnLED.py ####
##################
# This code is ported from Raspberry Pi to Intel Edison.
# LEDs are activated in active-low signal!
from Pubnub import Pubnub
import mraa ## Import libmraa library
@yoneken
yoneken / pepper.rviz
Created June 11, 2015 17:48
ROS Pepper
Panels:
- Class: rviz/Displays
Help Height: 78
Name: Displays
Property Tree Widget:
Expanded:
- /Global Options1
- /Status1
- /DepthCloud1/Auto Size1
Splitter Ratio: 0.5
@yoneken
yoneken / master.log
Last active August 29, 2015 14:24
Error log during launching minimal_ros_control
[rosmaster.main][INFO] 2015-07-14 02:48:14,635: initialization complete, waiting for shutdown
[rosmaster.main][INFO] 2015-07-14 02:48:14,637: Starting ROS Master Node
[xmlrpc][INFO] 2015-07-14 02:48:14,642: XML-RPC server binding to 0.0.0.0:11311
[rosmaster.master][INFO] 2015-07-14 02:48:14,647: Master initialized: port[11311], uri[http://beaglebone:11311/]
[xmlrpc][INFO] 2015-07-14 02:48:14,647: Started XML-RPC server [http://beaglebone:11311/]
[xmlrpc][INFO] 2015-07-14 02:48:14,649: xml rpc node: starting XML-RPC server
[rosmaster.master][INFO] 2015-07-14 02:48:14,737: +PARAM [/run_id] by /roslaunch
[rosmaster.master][INFO] 2015-07-14 02:48:14,753: +PARAM [/roslaunch/uris/host_beaglebone__46997] by /roslaunch
[rosmaster.master][INFO] 2015-07-14 02:48:15,057: +PARAM [/rosdistro] by /roslaunch
[rosmaster.master][INFO] 2015-07-14 02:48:15,063: +PARAM [/robot_description] by /roslaunch
@yoneken
yoneken / bkup_wiki.sh
Created July 26, 2012 04:15
A shell script for backup a mediawiki data.
#!/bin/sh
filename=~/bkup/wiki$(date +%Y%m%d).xml
ssh mediawiki_serv php ./www/wiki/maintenance/dumpBackup.php --full > $filename
md5=`md5sum $filename | cut -c 1-32`
lmd5=`cat ~/bkup/last_md5`
if [ "$lmd5" != "$md5" ]
then
echo "$md5" > ~/bkup/last_md5
#echo "The latest backup file is not same with last one."
@yoneken
yoneken / error_log.txt
Created August 18, 2012 02:42
This is an error message of building OpenRTM-aist on Mac OSX 10.8 (Mountain Lion).
1983 :info:build In file included from ConfigSample.cpp:10:
1984 :info:build In file included from ./ConfigSample.h:14:
1985 :info:build In file included from ../../src/lib/rtm/Manager.h:36:
1986 :info:build In file included from ../../src/lib/rtm/SystemLogger.h:29:
1987 :info:build ../../src/lib/coil/include/coil/stringutil.h:571:12: error: call to function 'operator>>' that is neither visible in the template definition nor found by argument-dependent lookup
1988 :info:build if ((s >> val).fail()) { return false; }
1989 :info:build ^
1990 :info:build ../../src/lib/rtm/RTObject.h:2246:49: note: in instantiation of function template specialization 'coil::stringTo<std::vector<double, std::allocator<double>> >' requested here
1991 :info:build bool (*trans)(VarType&, const char*) = c oil::stringTo)
1992 :info:build ^