Skip to content

Instantly share code, notes, and snippets.

View agutenkunst's full-sized avatar
🤓
Robot goes brrrrrrrrr

Alexander Gutenkunst agutenkunst

🤓
Robot goes brrrrrrrrr
View GitHub Profile
@agutenkunst
agutenkunst / ccache_install.md
Last active November 25, 2020 12:01
Setup ccache

Run

sudo apt install ccache -y
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc
source ~/.bashrc

If there is a error containing something like

ccache: error: Failed to create temporary file for /home/alex/.ccache/tmp/tmp.cpp_stderr: Permission denied
@agutenkunst
agutenkunst / gist:b78f656392a3e67f0b8220dfc0913eeb
Created January 14, 2020 08:47
Send notification via notify-send with crontab cronjob and Ubuntu 18.04
* * * * * eval "export $(egrep -z DBUS_SESSION_BUS_ADDRESS /proc/$(pgrep -u $LOGNAME gnome-session)/environ)"; /usr/bin/notify-send "Foo"
source: https://askubuntu.com/a/346580
@agutenkunst
agutenkunst / install_psen_scan_on_raspberry.md
Last active December 11, 2019 13:41
Setup psen_scan on RaspberryPi

Prepare

sudo apt-get update sudo apt-get install python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential

PythonQt needs to be installed (not sure why not via depend)

sudo apt-get install qt5-default pyqt5-dev pyqt5-dev-tools

Initialize rosdep

sudo rosdep init rosdep update

@agutenkunst
agutenkunst / gist:6049d5a137a8ab0c25d974a16e67787a
Last active November 12, 2019 05:49
Convert SVN to Git - Basic Demo

Svn2GitBasic Demo

Setup

Install requirements

  • sudo apt install subversion git

Install docker

sudo snap install docker
@agutenkunst
agutenkunst / 00_requirements.md
Last active November 27, 2020 14:02
Setup Dymo 450 printer Ubuntu 18
@agutenkunst
agutenkunst / gist:8800249fbec695dbedf344f3d8465f6e
Created September 24, 2019 06:28
Publish Ros Operation Modes with current timestamp
rostopic pub /op_mode prbt_hardware_support/OperationModes "{time_stamp: now, value: 1}" -s -r 100
@agutenkunst
agutenkunst / gist:a5f932df396784af42d88d19b18c4281
Created September 13, 2019 07:16
Add Timing to IndustrialCi output
before_install:
- sudo apt-get install -y moreutils
install: install:
- git clone --depth=1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci - git clone --depth=1 https://github.com/ros-industrial/industrial_ci.git .industrial_ci
script: script:
- .industrial_ci/travis.sh - .industrial_ci/travis.sh | ts '[%Y-%m-%d %H:%M:%S]'
@agutenkunst
agutenkunst / gist:bf549cfcc0acca6faffe83f7788d7c16
Created September 10, 2019 10:00
python read modbus registers
# Requireds: "sudo apt-get install python-pymodbus"
from pymodbus.client.sync import ModbusTcpClient
client = ModbusTcpClient('192.168.0.10')
result = client.read_holding_registers(975,1) # Reads 1 register starting at 975
print(result.registers)
@agutenkunst
agutenkunst / gist:5b3186e7b7385066c88071909e255fdf
Created August 6, 2019 12:48
industrial_ci ROS rerun with travis config
# Create image/commit
rosrun industrial_ci run_travis 1 -- DOCKER_COMMIT=foo
# Use image/commit
rosrun industrial_ci run_travis 1 -- DOCKER_PULL=false DOCKER_IMAGE=foo
@agutenkunst
agutenkunst / gist:d87397942f693f05282ede1e6e6f2891
Created July 30, 2019 06:43
Fix missing stddef.h (clang-tidy)
#Troubleshooting
sudo apt-get install libclang-dev