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 / gist:2f96826b96696784eefb985f73222a58
Created July 24, 2019 13:08
Set rosconsole logger level for Travis
- BEFORE_SCRIPT="mkdir /config
&& echo 'log4j.logger.ros.prbt_hardware_support.ServerMock=DEBUG' > /config/rosconsole.config"
@agutenkunst
agutenkunst / gist:8c75d7046c3377b1fd3b0cf0e73d99f7
Created July 24, 2019 14:41
Set rosconsole format in industrial_ci/Travis
env:
global:
- DOCKER_RUN_OPTS='-e ROSCONSOLE_FORMAT=[${severity}][${time}-${thread}[${file}:${line}]${message}'
GTEST_FILTER=*testCaseName* catkin_make run_tests_...
@agutenkunst
agutenkunst / gist:d87397942f693f05282ede1e6e6f2891
Created July 30, 2019 06:43
Fix missing stddef.h (clang-tidy)
#Troubleshooting
sudo apt-get install libclang-dev
@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: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: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: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 / 00_requirements.md
Last active November 27, 2020 14:02
Setup Dymo 450 printer Ubuntu 18
@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