Skip to content

Instantly share code, notes, and snippets.

@ruffsl
ruffsl / chroot-to-pi.sh
Last active May 17, 2024 13:12 — forked from htruong/chroot-to-pi.sh
Chroot to pi sd card
#!/bin/bash
# This script allows you to chroot ("work on")
# the raspbian sd card as if it's the raspberry pi
# on your Ubuntu desktop/laptop
# just much faster and more convenient
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689
# make sure you have issued
@ruffsl
ruffsl / Dockerfile
Created September 19, 2018 06:14
Docker image for ROS2 armhf from source
# This is an auto generated Dockerfile for ros2:source
# generated from docker_images/create_ros2_source_image.Dockerfile.em
FROM arm32v7/ubuntu:bionic
RUN echo 'Etc/UTC' > /etc/timezone && \
ln -s /usr/share/zoneinfo/Etc/UTC /etc/localtime && \
apt-get update && apt-get install -q -y tzdata && rm -rf /var/lib/apt/lists/*
# install packages
RUN apt-get update && apt-get install -q -y \
@ruffsl
ruffsl / Dockerfile
Last active October 12, 2021 09:00
Nvidia docker with rviz
FROM osrf/ros:melodic-desktop-bionic
# setup catkin workspace
ENV CATKIN_WS=/root/catkin_ws
RUN mkdir -p $CATKIN_WS/src
WORKDIR $CATKIN_WS/src
# clone source code
RUN git clone -b melodic-devel https://github.com/ros-visualization/rviz
@ruffsl
ruffsl / talker_listener.ipynb
Created February 20, 2018 04:13
talker_listener DDS graph
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:
@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.
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")
- 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
@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 && \