This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################## | |
#### 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<robot name="parallel_link"> | |
<link name="base_link"> | |
<visual> | |
<origin xyz="0 0.25 0" rpy="1.57 0 0" /> | |
<geometry> | |
<cylinder radius="0.02" length="0.5" /> | |
</geometry> | |
<material name="blue"> | |
<color rgba="0 0 .8 1" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- tar: | |
local-name: actionlib | |
uri: https://github.com/ros-gbp/actionlib-release/archive/release/indigo/actionlib/1.11.2-0.tar.gz | |
version: actionlib-release-release-indigo-actionlib-1.11.2-0 | |
- tar: | |
local-name: angles | |
uri: https://github.com/ros-gbp/geometry_angles_utils-release/archive/release/indigo/angles/1.9.9-0.tar.gz | |
version: geometry_angles_utils-release-release-indigo-angles-1.9.9-0 | |
- git: | |
local-name: bfl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = gcc | |
MRAALIBS = -lmraa | |
.PHONY: all clean pwm | |
all: pwm | |
clean: | |
rm -f ./*.o | |
rm -f pwm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <time.h> | |
int main(int argc, char *argv[]){ | |
FILE *Handle = NULL; | |
char *Slots = "/sys/devices/bone_capemgr.9/slots"; | |
char *AIn1 = "/sys/devices/ocp.2/helper.14/AIN1"; | |
char buf[10] = {0}; | |
struct timespec start, end; | |
int i; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <time.h> | |
#include <sched.h> | |
#include <sys/mman.h> | |
#include <string.h> | |
#include <unistd.h> | |
#define MY_PRIORITY (49) /* we use 49 as the PRREMPT_RT use 50 | |
as the priority of kernel tasklets |