Skip to content

Instantly share code, notes, and snippets.

💭
Almost done with my PhD thesis...

Sam Pfeiffer awesomebytes

💭
Almost done with my PhD thesis...
Block or report user

Report or block awesomebytes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@awesomebytes
awesomebytes / 0001-Remove-signals-to-enable-build-with-boost-1.69.patch
Created May 11, 2020
Patch to enable ros-melodic/hector_mapping compiling with boost>1.69 on Gentoo
View 0001-Remove-signals-to-enable-build-with-boost-1.69.patch
From 926a2eef519d150879f241d9fe1bab82d9bb53c7 Mon Sep 17 00:00:00 2001
From: Sammy Pfeiffer <sammypfeiffer@gmail.com>
Date: Mon, 11 May 2020 20:18:10 +1000
Subject: [PATCH 1/1] Remove signals to enable build with boost>1.69
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
@awesomebytes
awesomebytes / pepper_laser_driver_precise.py
Created Apr 21, 2020
More precise Pepper LaserScan driver (with UTS Unleashed! libraries used)
View pepper_laser_driver_precise.py
#!/usr/bin/env python
from math import cos, radians, sin, sqrt, atan2
# These are internal wrappers to make ROS easier to use
from magic_ros import InitROS, MessagePublisher, ROSNode
from rospy import Rate, Time
from sensor_msgs.msg import LaserScan
# Internal wrapper to make Qi easier to user
@awesomebytes
awesomebytes / to_grayscale.py
Created Apr 18, 2020
Node to convert a ROS Image topic publisher from RGB to grayscale (rgb or bgr to mono8) using opencv and cv_bridge
View to_grayscale.py
#!/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 Apr 17, 2020
patch rosdep 0.13.0 to call yaml.safe_load instead of yaml.load
View 0001-change-yaml.load-to-yaml.safe_load-so-to-workaround-.patch
From 2d9896ef63f87f1ad36df5607a677623decb6fde Mon Sep 17 00:00:00 2001
From: Sammy Pfeiffer <sammypfeiffer@gmail.com>
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 +-
View gmapping_test.launch
<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 Apr 1, 2020
Automated version of facade setup.py to use in a Docker
View automated_facade_setup.py
#!/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 Mar 25, 2020
How to enable Docker experimental features in Azure Pipelines (like --squash)
View Enable_experimental_docker_features_Azure_Pipelines.md

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'
View naoqi_libqicore-2.3.1-r1.ebuild
# 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"
View naoqi_libqi-2.5.0-r3.ebuild
# 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"
View navfn_check_include_file.patch
From 105c61d48bfff65d3598e15bb5a812777e54c70a Mon Sep 17 00:00:00 2001
From: Sammy Pfeiffer <sammypfeiffer@gmail.com>
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(+)
You can’t perform that action at this time.