Skip to content

Instantly share code, notes, and snippets.

View nwaniek's full-sized avatar

Nicolai Waniek nwaniek

View GitHub Profile
@nwaniek
nwaniek / giotto-ph-clang-atomic.patch
Created January 25, 2024 11:06
add atomic library to link targets for giotto-ph when compiling with clang
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 18bd949..c4e10b7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,6 +49,10 @@ else()
endif()
target_link_libraries(gph_ripser PRIVATE ${JUNCTION_ALL_LIBRARIES})
+if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
+ target_link_libraries(gph_ripser PRIVATE atomic)
diff -urN original/gazebo-9.0.0/gazebo/common/Console.cc patched/gazebo-9.0.0/gazebo/common/Console.cc
--- original/gazebo-9.0.0/gazebo/common/Console.cc 2018-06-07 10:25:06.490467454 +0200
+++ patched/gazebo-9.0.0/gazebo/common/Console.cc 2018-07-02 14:02:41.273536063 +0200
@@ -194,7 +194,7 @@
std::string newPath = logPath.string() + ".old";
boost::system::error_code ec;
boost::filesystem::rename(logPath, newPath, ec);
- if (ec == 0)
+ if (ec == boost::system::errc::success)
std::cerr << "Existing log directory [" << logPath
# Maintainer: racko <tim dot rakowski at gmail dot com>
# Contributor: marauder <abhinav dot kssk at gmail dot com>
# Contributor: Benjamin Chretien <chretien at lirmm dot fr>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Vladimir Ermakov <vooon341@gmail.com>
pkgname=gazebo
pkgver=9.0.0
pkgrel=1
pkgdesc="A multi-robot simulator for outdoor environments"
diff -ruN original/gazebo-9.0.0/gazebo/common/AudioDecoder.cc patched/gazebo-9.0.0/gazebo/common/AudioDecoder.cc
--- original/gazebo-9.0.0/gazebo/common/AudioDecoder.cc 2018-01-25 23:25:47.000000000 +0100
+++ patched/gazebo-9.0.0/gazebo/common/AudioDecoder.cc 2018-05-31 11:01:14.002257199 +0200
@@ -255,8 +255,8 @@
return false;
}
- if (this->codec->capabilities & CODEC_CAP_TRUNCATED)
- this->codecCtx->flags |= CODEC_FLAG_TRUNCATED;
+ if (this->codec->capabilities & AV_CODEC_CAP_TRUNCATED)
diff --git a/tf2_py/src/tf2_py.cpp b/tf2_py/src/tf2_py.cpp
index efb4f23..b6d4b62 100644
--- a/tf2_py/src/tf2_py.cpp
+++ b/tf2_py/src/tf2_py.cpp
@@ -536,7 +536,11 @@ static PyObject *_allFramesAsDot(PyObject *self, PyObject *args, PyObject *kw)
ros::Time time;
if (!PyArg_ParseTupleAndKeywords(args, kw, "|O&", (char**)keywords, rostime_converter, &time))
return NULL;
- return stringToPython(bc->_allFramesAsDot(time.toSec()));
+ #if PY_MAJOR_VERSION >= 3
diff --git a/examples/davis_simple.c b/examples/davis_simple.c
index 75678f7..24d265b 100644
--- a/examples/davis_simple.c
+++ b/examples/davis_simple.c
@@ -98,6 +98,10 @@ int main(void) {
caerBiasCoarseFineParse(prBias).coarseValue, caerBiasCoarseFineParse(prBias).fineValue,
caerBiasCoarseFineParse(prsfBias).coarseValue, caerBiasCoarseFineParse(prsfBias).fineValue);
+ caerDeviceConfigSet(davis_handle, DAVIS_CONFIG_MUX, DAVIS_CONFIG_MUX_TIMESTAMP_RUN, true);
+ caerDeviceConfigSet(davis_handle, DAVIS_CONFIG_MUX, DAVIS_CONFIG_MUX_RUN, true);
#include <libcaercpp/devices/davis.hpp>
#include <csignal>
#include <atomic>
#include <iostream>
#include <chrono>
#include <thread>
#define UNUSED(x) do { (void)(x); } while (0);
static std::atomic_bool shutdown{false};
diff --git a/ros-indigo/razer_hydra/razer_hydra-0.2.1.ebuild b/ros-indigo/razer_hydra/razer_hydra-0.2.1.ebuild
index c650cb92..15444f82 100644
--- a/ros-indigo/razer_hydra/razer_hydra-0.2.1.ebuild
+++ b/ros-indigo/razer_hydra/razer_hydra-0.2.1.ebuild
@@ -10,7 +10,9 @@ DESCRIPTION="Unofficial driver and ROS node for Razer Hydra"
HOMEPAGE="https://wiki.ros.org"
SRC_URI="https://github.com/ros-gbp/razer_hydra-release/archive/release/indigo/razer_hydra/0.2.1-0.tar.gz -> ${PN}-indigo-release-${PV}.tar.gz"
-LICENSE="KEYWORDS="~x86 ~amd64 ~arm ~arm64"
+LICENSE="BSD"