Skip to content

Instantly share code, notes, and snippets.

Avatar

Holger Rapp SirVer

View GitHub Profile
@SirVer
SirVer / gist:201cb8743feb0187530b069f06ffcbda
Created Oct 16, 2017
rosrun cartographer_ros cartographer_rosbag_validate -bag_filename ~/Downloads/4_aisle_carto.bag
View gist:201cb8743feb0187530b069f06ffcbda
E1016 15:22:40.457394 9516 rosbag_validate_main.cc:127] Sensor with frame_id "gyro_link" jumps backwards in time. Make sure that the bag contains the data for each frame_id sorted by header.stamp, i.e. the order in which they were acquired from the sensor.
E1016 15:22:40.460765 9516 rosbag_validate_main.cc:127] Sensor with frame_id "gyro_link" jumps backwards in time. Make sure that the bag contains the data for each frame_id sorted by header.stamp, i.e. the order in which they were acquired from the sensor.
E1016 15:22:40.460870 9516 rosbag_validate_main.cc:127] Sensor with frame_id "gyro_link" jumps backwards in time. Make sure that the bag contains the data for each frame_id sorted by header.stamp, i.e. the order in which they were acquired from the sensor.
E1016 15:22:40.461536 9516 rosbag_validate_main.cc:127] Sensor with frame_id "gyro_link" jumps backwards in time. Make sure that the bag contains the data for each frame_id sorted by header.stamp, i.e. the order in which they were acquired from the
View gist:337ea5cea8550a219a9fdf47d59ad2bb
imu,0
imu,0.008001
imu,0.016001
imu,0.024
imu,0.032001
imu,0.040001
imu,0.048
velodyne,25.6079
imu,0.056001
imu,0.064002
View gist:eb665d3529800228c554c83281f15b75
INFO:bindgen: Clang Version: Apple LLVM version 8.0.0 (clang-800.0.42.1)
WARN:bindgen: Couldn't parse libclang version
DEBUG:bindgen::ir::context: BindgenContext::add_item(Item { id: ItemId(0), local_id: Cell { value: None }, next_child_local_id: Cell { value: 1 }, canonical_name_cache: RefCell { value: None }, comment: None, annotations: Annotations { opaque: false, hide: false, use_instead_of: None, disallow_copy: false, private_fields: None, accessor_kind: None, constify_enum_variant: false }, parent_id: ItemId(0), kind: Module(Module { name: Some("root"), kind: Normal, children: {} }), detect_derive_debug_cycle: Cell { value: false }, detect_derive_copy_cycle: Cell { value: false } }, declaration: None, loc: None
DEBUG:bindgen::ir::item: Item::from_ty_with_id: ItemId(1)
ty = Type(Test, kind: Record, cconv: 100, decl: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@S@Test")), canon: Cursor(Test kind: StructDecl, loc: tests/headers/whitelist_fix.hpp:3:8, usr: Some("c:@
View gist:bfafd1b9fcfe4a48f22be1bfca203de4
diff --git a/tests/expectations/tests/libclang-3.8/auto.rs b/tests/expectations/tests/libclang-3.8/auto.rs
index cf7320f..7074306 100644
--- a/tests/expectations/tests/libclang-3.8/auto.rs
+++ b/tests/expectations/tests/libclang-3.8/auto.rs
@@ -9,10 +9,7 @@
pub struct Foo {
pub _address: u8,
}
-extern "C" {
- #[link_name = "_ZN3Foo4kFooE"]
View wl_translations_merge.sh
## Fix LF in translation branch.
bzr switch translations && bzr pull
utils/remove_lf_in_translations.py
bzr add po
bzr commit -m "Fixed LF in translations." || true
bzr push
# Merge translations.
bzr switch trunk && bzr pull
bzr merge lp:~widelands-dev/widelands/translations
View gist:11122037
#!/usr/bin/env python
# encoding: utf-8
import os.path
from subprocess import Popen, PIPE, STDOUT
from colorama import Fore, Back, Style
from shell_grunt import WorkItem, Executor
import sys
View connect_flags.lua
use("aux", "set")
-- Connects "start_flag" and "end_flag" with a road with as many flags set as
-- possible. Returns true when a road is build, false on error. This is
-- implemented as a straightforward A* implementation.
function connect_flags(start_flag, end_flag)
local start_field = start_flag.fields[1]
local end_field = end_flag.fields[1]
local closed_set = Set:new()
@SirVer
SirVer / actor_centrality_rb.jl
Created Aug 16, 2012
Actor centrality with RBTrees as containers
View actor_centrality_rb.jl
load("examples/rbtree.jl")
type RBTreeSet{K}
tree::RBTree{K,Bool}
RBTreeSet() = new(RBTree{K, Bool}())
end
add(set::RBTreeSet, key) = insert_or_modify(set.tree, true, key)
length(set::RBTreeSet) = length(set.tree)
start(set::RBTreeSet) = start(set.tree)
@SirVer
SirVer / rbtree.jl
Created Aug 16, 2012
Red-Black Tree Implementation
View rbtree.jl
# load("examples/tree.jl")
typealias Color Int8
# TODO: RBTreeSet
const BLACK = convert(Color, 0)
const RED = convert(Color, 1)
const NOCOLOR = convert(Color, 2)
# TODO: Use Two Colors for nodes
abstract RBTreeNode{K,V}
@SirVer
SirVer / gist:3364304
Created Aug 15, 2012
iterfib in various languages
View gist:3364304
-- iterfib.cc --
#include <iostream>
#include <stdint.h>
using namespace std;
uint64_t fib(int k) {
uint64_t ln = 1;
uint64_t n = 1;