Skip to content

Instantly share code, notes, and snippets.

View Karsten1987's full-sized avatar

Karsten Knese Karsten1987

View GitHub Profile
repositories:
ros2/rosbag2_bag_v2:
type: git
url: https://github.com/ros2/rosbag2_bag_v2.git
version: master
#include <iostream>
using namespace std;
struct Callable
{
void operator()(std::string s) { cout << "call my struct with " << s << endl; }
};
struct Assignable
{
@Karsten1987
Karsten1987 / osx_notes.md
Last active March 23, 2021 22:14
setup ROS2 dev machine OSX

fix pyenv for python > 3.7

pyenv/pyenv#544 (comment)

compile VIM from source

run autoconf in src folder

./configure --with-features=huge --prefix=`pwd`/build --enable-python3interp=yes --with-python3-config-dir=/Users/karsten/.pyenv/versions/3.7.4/lib/python3.7/config-3.7m-darwin/

compile QT with from source

@Karsten1987
Karsten1987 / iceoryx.repos
Last active April 6, 2020 23:13
repos file for iceoryx
repositories:
eclipse/iceoryx:
type: git
url: https://github.com/eclipse/iceoryx.git
version: master
@Karsten1987
Karsten1987 / ros2_control
Last active June 12, 2020 17:58
external contribution repos file
repositories:
ros-controls/ros2_control:
type: git
url: https://github.com/ros-controls/ros2_control.git
version: master
ros-controls/ros2_controllers:
type: git
url: https://github.com/ros-controls/ros2_controllers.git
version: master
ros-controls/realtime_tools:
from here: https://stackoverflow.com/a/28878360/4583130
template <class T, class A = std::allocator<T>>
struct FixedVector : private std::vector<T, A>
{
using FixedVector::vector::vector;
using FixedVector::vector::operator=;
using FixedVector::vector::get_allocator;
using FixedVector::vector::at;
using FixedVector::vector::front;
@Karsten1987
Karsten1987 / 00_cross_compile_on_osx.md
Last active November 24, 2021 12:50
cross-compile on OSX

Cross Compile with OSX as a host

compile crosstool-ng

One debian systems, there are pre-compiled toolchains, for OSX however they have to be built from scratch. A decent tool for creating such toolchains is crosstool-ng.

Compilation Note there's a problem with having ncurses installed via homebrew. Add the libs and include paths to LDFLAGS/CXXFLAGS before the configure step For python problems on gdb, see https://stackoverflow.com/a/11600411/4583130

@Karsten1987
Karsten1987 / rclc
Last active March 24, 2021 16:21
external contribution repos file
repositories:
ament/ament_cmake:
type: git
url: https://github.com/ament/ament_cmake.git
version: master
ament/ament_index:
type: git
url: https://github.com/ament/ament_index.git
version: master
ament/ament_lint:
repositories:
ros-controls/ros2_control:
type: git
url: https://github.com/Ace314159/ros2_control.git
version: master
ros-controls/ros2_controllers:
type: git
url: https://github.com/Ace314159/ros2_controllers.git
version: master
control_msgs: