Skip to content

Instantly share code, notes, and snippets.

View hauptmech's full-sized avatar

Hauptmech hauptmech

View GitHub Profile
@hauptmech
hauptmech / PKGBUILD
Created July 30, 2016 08:10
ros-indigo-moveit-ros-planning patch
# Script generated with import_catkin_packages.py
# For more information: https://github.com/bchretien/arch-ros-stacks
pkgdesc="ROS - Planning components of MoveIt that use ROS."
url='http://moveit.ros.org'
pkgname='ros-indigo-moveit-ros-planning'
pkgver='0.6.5'
_pkgver_patch=0
arch=('any')
pkgrel=4
@hauptmech
hauptmech / aruco_test.py
Created July 15, 2016 07:05
Quick test of aruco with python
import numpy as np
import cv2
cap = cv2.VideoCapture(0)
#dictionary = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_5X5_1000)
dictionary = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_4X4_50)
#dictionary = cv2.aruco.getPredefinedDictionary(cv2.aruco.DICT_ARUCO_ORIGINAL)
while(True):
# Capture frame-by-frame
@hauptmech
hauptmech / aur_in_dependency_order.bash
Last active January 18, 2016 09:27
List AUR packages in dependency order so that they can be rebuilt
#!/bin/bash
#
# Get all AUR dependencies in the order which they must be built.
#
# Author: hauptmech@gmail.com
# Keep track of packages we've seen already
declare new_pkg=''
# Only dive deeper if we haven't seen this pkg before
@hauptmech
hauptmech / example.cpp
Last active December 5, 2015 18:30
Rough single process multi-thread robot control
#include <boost/circular_buffer.hpp>
#include <thread>
#include <mutex>
struct sense_packet {
uint16_t pressure;
uint8_t bus_voltage;
};
boost::circular_buffer<sense_packet> sense_buff(2);
std::mutex sense_mutex;
@hauptmech
hauptmech / gist:11315155
Created April 26, 2014 08:51
include-what-you-use PKGBUILD for clang 3.4
# Maintainer: Carl Reinke <mindless2112 gmail com>
# Contributor: Hauptmech <hauptmech gmail com>
pkgname=include-what-you-use
pkgver=3.4
pkgrel=1
pkgdesc="A tool for use with clang to analyze #includes in C and C++ source files"
url="http://code.google.com/p/include-what-you-use/"
license=('LLVM Release License')
source=($pkgname-$pkgver.tar.gz::"http://include-what-you-use.com/downloads/include-what-you-use-3.4.src.tar.gz")
@hauptmech
hauptmech / gist:9253322
Created February 27, 2014 16:17
Predate.sh
#!/bin/bash
while read line ; do
echo "$(date -Iseconds): ${line}"
done
@hauptmech
hauptmech / gist:8208179
Created January 1, 2014 13:50
PKGBUILD wxpython2.9-devel works as of 01 Jan 2014
# Maintainer: Ronnie Andrew <ronnieandrew92 at gmail dot com>
# Original submitter: solusipse
# Revision by Rita Bylsma at solid state chemistry department of Radboud University Nijmegen, The Netherlands.
#
# This package will be installed as a newer version of wxpython,
# meaning that any older version will be removed, but it is easy to
# get the older version back.
# If you would want to have both versions installed at the same time,
# read the notes below.
#
@hauptmech
hauptmech / troff2asciidoc.py
Created December 17, 2012 22:17
Help convert troff manpage source files to asciidoc. Some hand editing of the file is needed afterwards
#!/usr/bin/python2
"""
A little helper to speed up converting troff files to adoc.
usage:
./troff2adoc.py manpage.man.in
typical post conversion tasks:
clean up bolded items outside the OPTIONS section.
clean up SYNOPSIS
@hauptmech
hauptmech / PKGBUILD
Created April 11, 2012 10:19
PKGBUILD for Yarp 2.3.15 on GCC 4.7
# Contributor: Victor Noël
pkgname=yarp
pkgver=2.3.15
pkgrel=5
pkgdesc="Yet Another Robot Platform"
url="http://eris.liralab.it/yarp/"
license=('GPL')
arch=('any')
makedepends=('cmake')
@hauptmech
hauptmech / PKGBUILD
Created January 26, 2012 11:06
Archlinux AUR cuda-sdk 4.1 PKGBUILD
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=cuda-sdk
pkgver=4.1.21
pkgrel=1
_fedver=14
pkgdesc="NVIDIA's GPU programming toolkit"
arch=('i686' 'x86_64')
url="http://www.nvidia.com/object/cuda_home.html"
license=('custom')