Skip to content

Instantly share code, notes, and snippets.

@ruffsl
ruffsl / ZBar OpenCv Demo.ipy
Created January 30, 2015 00:45
ZBar OpenCv Demo
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# ZBar OpenCv Demo"
]
},
{
@ruffsl
ruffsl / UbuntuSetup.sh
Last active August 29, 2015 14:16
Ubuntu Setup Script
#!/bin/bash
apt-get -y update
# install cli tools
apt-get install -y \
wget \
curl \
screen \
byobu \
@ruffsl
ruffsl / Dockerfile
Created November 16, 2015 23:06
docker-compose ros issue
# This is a Dockerfile for ros:ros-tutorials
FROM ros:indigo-ros-base
# install ros tutorials packages
RUN apt-get update && apt-get install -y \
ros-indigo-ros-tutorials \
ros-indigo-common-tutorials \
&& rm -rf /var/lib/apt/lists/*
@ruffsl
ruffsl / Dockerfile
Last active April 7, 2025 09:49
Small ROS Network Example
FROM ros:indigo-ros-base
# install ros tutorials packages
RUN apt-get update && apt-get install -y \
ros-indigo-ros-tutorials \
ros-indigo-common-tutorials \
&& rm -rf /var/lib/apt/lists/
@ruffsl
ruffsl / Dockerfile
Last active April 10, 2016 19:03
Chef ROS example
FROM ubuntu:14.04
RUN apt-get update && \
apt-get install -y \
git \
wget \
expect
# Install Chef DK
RUN wget https://packages.chef.io/stable/ubuntu/12.04/chefdk_0.12.0-1_amd64.deb && \
- tar:
local-name: catkin
uri: https://github.com/ros-gbp/catkin-release/archive/release/kinetic/catkin/0.7.1-0.tar.gz
version: catkin-release-release-kinetic-catkin-0.7.1-0
- tar:
local-name: cmake_modules
uri: https://github.com/ros-gbp/cmake_modules-release/archive/release/kinetic/cmake_modules/0.4.0-1.tar.gz
version: cmake_modules-release-release-kinetic-cmake_modules-0.4.0-1
- tar:
local-name: gencpp
from hsrb_interface import geometry
import hsrb_interface
from hsrb_interface import geometry
robot = hsrb_interface.Robot()
whole_body = robot.get('whole_body')
tts = robot.get('default_tts')
tts.language = 1
tts.say("Hello")
@ruffsl
ruffsl / fixed attribute issue.ipynb
Created November 27, 2017 19:56
xmlschema errors
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ruffsl
ruffsl / utils.py
Last active July 28, 2018 01:03
Using XML schema to find and enable substitution of missing elements
import xml.etree.ElementTree as ElementTree
from xml.dom import minidom
def tidy_xml(element):
subiter = ElementTree.ElementTree(element).getiterator()
for x in subiter:
if len(x):
if x.text: