Skip to content

Instantly share code, notes, and snippets.

View awesomebytes's full-sized avatar

Sam Pfeiffer awesomebytes

View GitHub Profile
@awesomebytes
awesomebytes / to_grayscale.py
Created April 18, 2020 04:08
Node to convert a ROS Image topic publisher from RGB to grayscale (rgb or bgr to mono8) using opencv and cv_bridge
#!/usr/bin/env python
import sys
import rospy
from sensor_msgs.msg import Image
from cv_bridge import CvBridge
import cv2
"""
Node to transform an input Image topic into
@awesomebytes
awesomebytes / 0001-change-yaml.load-to-yaml.safe_load-so-to-workaround-.patch
Created April 17, 2020 11:23
patch rosdep 0.13.0 to call yaml.safe_load instead of yaml.load
From 2d9896ef63f87f1ad36df5607a677623decb6fde Mon Sep 17 00:00:00 2001
From: Sammy Pfeiffer <[email protected]>
Date: Fri, 17 Apr 2020 21:16:58 +1000
Subject: [PATCH 1/1] change yaml.load to yaml.safe_load so to workaround
gentoo bug https://bugs.gentoo.org/659348
---
src/rosdep2/loader.py | 2 +-
src/rosdep2/platforms/source.py | 2 +-
src/rosdep2/sources_list.py | 2 +-
<launch>
<!-- <param name="use_sim_time" value="true"/> -->
<node pkg="gmapping" type="slam_gmapping" name="slam_gmapping" output="screen">
<remap from="scan" to="scan"/>
<param name="inverted_laser" value="true"/>
<param name="map_update_interval" value="0.1"/>
<param name="maxUrange" value="16.0"/>
<param name="sigma" value="0.05"/>
<param name="kernelSize" value="1"/>
<param name="lstep" value="0.05"/>
@awesomebytes
awesomebytes / automated_facade_setup.py
Last active April 1, 2020 04:56
Automated version of facade setup.py to use in a Docker
#!/usr/bin/python3
# Copyright 2016-2018 Brian Warner
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@awesomebytes
awesomebytes / Enable_experimental_docker_features_Azure_Pipelines.md
Created March 25, 2020 06:04
How to enable Docker experimental features in Azure Pipelines (like --squash)

Enable Docker experimental features on Azure Pipelines

I wanted to try the --squash parameter for docker build on the Azure Pipelines platform. I found it to be not enabled by default and a bit tricky to get working. (As of 25/03/2020).

It did work for me doing the following 2 things:

To enable experimental features in the Docker CLI (referred in docker version as Docker Client):

# Your job should have in the variables setting 'DOCKER_CLI_EXPERIMENTAL' set to 'enabled'
# Copyright 2020 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
EAPI=6
PYTHON_COMPAT=( python{2_7,3_5,3_6} )
inherit ros-cmake
DESCRIPTION="Aldebaran\'s libqicore: a layer on top of libqi"
HOMEPAGE="https://github.com/aldebaran/libqicore"
# Copyright 2017 Open Source Robotics Foundation
# Distributed under the terms of the BSD license
EAPI=6
PYTHON_COMPAT=( python{2_7,3_5} )
inherit ros-cmake
DESCRIPTION="Aldebarans libqi: a core library for NAOqiOS development"
HOMEPAGE="https://wiki.ros.org"
From 105c61d48bfff65d3598e15bb5a812777e54c70a Mon Sep 17 00:00:00 2001
From: Sammy Pfeiffer <[email protected]>
Date: Wed, 18 Mar 2020 22:39:05 +1100
Subject: [PATCH] Fix Unknown CMake command check_include_file (navfn &
base_local_planner)
---
navfn/CMakeLists.txt | 2 ++
1 files changed, 2 insertions(+)
From 105c61d48bfff65d3598e15bb5a812777e54c70a Mon Sep 17 00:00:00 2001
From: Sammy Pfeiffer <[email protected]>
Date: Wed, 18 Mar 2020 22:39:05 +1100
Subject: [PATCH] Fix Unknown CMake command check_include_file (navfn &
base_local_planner)
---
CMakeLists.txt | 2 ++
1 files changed, 2 insertions(+)
From 4e374ff1baca49965c8f9e6f0617e66d639ae37d Mon Sep 17 00:00:00 2001
From: Sammy Pfeiffer <[email protected]>
Date: Sun, 15 Mar 2020 09:33:15 +0000
Subject: [PATCH 1/1] Fix Uknown CMake command check_include_file
---
CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt