Skip to content

Instantly share code, notes, and snippets.

View YuehChuan's full-sized avatar

YuehChuan YuehChuan

  • Taiwan
  • 09:40 (UTC +08:00)
View GitHub Profile

RTAI installation for ubuntu 14.04

Preparation

download and unzip

cd /usr/src
curl -L https://www.rtai.org/userfiles/downloads/RTAI/rtai-4.1.tar.bz2 | tar xj
curl -L https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.32.tar.xz | tar xJ
curl -L http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.10.32-saucy/linux-image-3.10.32-031032-generic_3.10.32-031032.201402221635_amd64.deb -o linux-image-3.10.32-generic-amd64.deb
@YuehChuan
YuehChuan / gist:35ab67d09415e0b9a9077a3b218b593d
Created March 12, 2017 14:10
[moveit!]catkin_package() include dir 'include/eigen3'
Error at /opt/ros/indigo/share/catkin/cmake/catkin_package.cmake:296 (message): catkin_package() include dir 'include/eigen3' does not exist relative to '/home/<user>/moveIt_ws/src/moveit/moveit_kinematics'
# Python3.5 (Raspbian 8 comes with Python3.4)
cd ~ #or somewhere
sudo apt-get purge python3
wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz
tar -xvf Python-3.5.2.tar.xz
cd Python-3.5.2
./configure
make
sudo make install
@YuehChuan
YuehChuan / zeromq-vs-redis.md
Created July 20, 2017 12:25 — forked from hmartiro/zeromq-vs-redis.md
Comparison of ZeroMQ and Redis for a robot control platform

ZeroMQ vs Redis

This document is research for the selection of a communication platform for robot-net.

Goal

The purpose of this component is to enable rapid, reliable, and elegant communication between the various nodes of the network, including controllers, sensors, and actuators (robot drivers). It will act as the core of robot-net to create a standardized infrastructure for robot control.

Requirements:

@YuehChuan
YuehChuan / pytorch-on-duckiebot.md
Created October 12, 2017 05:04 — forked from fgolemo/pytorch-on-duckiebot.md
Installing/compiling PyTorch on Duckiebot - tutorial v1

How to install PyTorch on the Duckiebot

PyTorch is a Python deep learning library that's currently gaining a lot of traction, because it's a lot easier to debug and prototype (compared to TensorFlow / Theano).

To install PyTorch on the Duckietbot you have to compile it from source, because there is no pro-compiled binary for ARMv7 / ARMhf available. This guid will walk you through the required steps.

Step 1: install dependencies and clone repository

First you need to install some additional packages. You might already have installed. If you do, that's not a problem.

@YuehChuan
YuehChuan / pytorch-on-duckiebot.md
Created October 12, 2017 05:04 — forked from fgolemo/pytorch-on-duckiebot.md
Installing/compiling PyTorch on Duckiebot - tutorial v1

How to install PyTorch on the Duckiebot

PyTorch is a Python deep learning library that's currently gaining a lot of traction, because it's a lot easier to debug and prototype (compared to TensorFlow / Theano).

To install PyTorch on the Duckietbot you have to compile it from source, because there is no pro-compiled binary for ARMv7 / ARMhf available. This guid will walk you through the required steps.

Step 1: install dependencies and clone repository

First you need to install some additional packages. You might already have installed. If you do, that's not a problem.

@YuehChuan
YuehChuan / test_spinner.cpp
Created June 26, 2018 17:41 — forked from bgromov/test_spinner.cpp
Demonstrates the use of AsyncSpinner and custom callback queue in ROS
#include <ros/ros.h>
#include <ros/spinner.h>
#include <ros/callback_queue.h>
#include <std_msgs/Empty.h>
#include <std_msgs/Bool.h>
boost::shared_ptr<ros::AsyncSpinner> g_spinner;
bool g_enable = false;
@YuehChuan
YuehChuan / rise.sh
Last active November 18, 2019 23:14
unset -f curl
# included just in case
curl https://www.google.com/search?q=hk%20police%20massacre%20polyu%27s%20students&aqs=chrome&fbclid=IwAR3q7zfXaUIqJkF0kmCop-UAdp2fUeTDK6WrRl-kDa8yPIz_N7m2cjtR8FQ[0-1118]
# curl loop using URL globbing
#expect output 1-1118
#[1/10]: https://www.hongkongfp.com/2019/11/18/heartbreaking-day-polyu-student-leaders-call-public-hundreds-trapped-campus/0 --> <stdout>
#--_curl_--https://www.hongkongfp.com/2019/11/18/heartbreaking-day-polyu-student-leaders-call-public-hundreds-trapped-campus/0
@YuehChuan
YuehChuan / vsb-fault-detection.md
Created December 11, 2019 22:17 — forked from roblesch/vsb-fault-detection.md
VSB Power Line Fault Detection Notes
@YuehChuan
YuehChuan / gist:47bb09e5f8f31154b7aa7974c1924c44
Created February 6, 2020 15:04
bootstrap bazel-0.25.2-dist bash ./compile.sh
🍃 Building Bazel from scratch../usr/lib/jvm/java-8-openjdk-amd64/bin/javac -classpath third_party/android_common/com.android.tools.lint_lint-checks_25.0.0.jar:third_party/android_common/com.android.tools.build_manifest-merger_25.0.0-patched.jar:third_party/android_common/com.android.tools_sdklib_25.0.0.jar:third_party/android_common/com.android.tools.layoutlib_layoutlib_26.1.2.jar:third_party/android_common/com.android.tools_sdk-common_25.0.0.jar:third_party/android_common/com.android.tools.external.lombok_lombok-ast_0.2.3.jar:third_party/android_common/com.android.tools.build_builder-model_2.0.0.jar:third_party/android_common/com.android.tools.build_builder-test-api_2.0.0.jar:third_party/android_common/com.android_annotations_25.0.0.jar:third_party/android_common/com.android.tools_dvlib_25.0.0.jar:third_party/android_common/com.android.tools_repository_25.0.0.jar:third_party/android_common/com.android.tools.build_builder_2.0.0.jar:third_party/android_common/com.android.tools_common_25.0.0.jar:third_party/an