Skip to content

Instantly share code, notes, and snippets.

View sauravag's full-sized avatar

Saurav Agarwal sauravag

View GitHub Profile
@sauravag
sauravag / gist:cde85104206ecb6f542df13917e5ae74
Created February 18, 2018 02:41
Cartographer Rosbag validation
E0217 20:39:17.688629 17003 rosbag_validate_main.cc:131] Input contains transform message from frame_id "map" to child_frame_id "base_footprint". This is almost always output published by cartographer and should not appear as input. (Unless you have some complex remove_frames configuration, this is will not work. Simplest solution is to record input without cartographer running.)
E0217 20:39:19.216099 17003 rosbag_validate_main.cc:317] Point data (frame_id: "/camera_depth_frame") has a large gap, largest is 0.195 s, recommended is [0.0005, 0.05] s with no jitter.
I0217 20:39:19.216204 17003 rosbag_validate_main.cc:333] Time delta histogram for consecutive messages on topic "/kinect/scan" (frame_id: "/camera_depth_frame"):
Count: 40 Min: 0.145000 Max: 0.195000 Mean: 0.163600
[0.145000, 0.150000) ### Count: 5 (12.500000%) Total: 5 (12.500000%)
[0.150000, 0.155000) ## Count: 3 (7.500000%) Total: 8 (20.000000%)
[0.155000, 0.160000) ## Count: 4 (10.000000%) T
@sauravag
sauravag / macports_migration.sh
Created November 23, 2016 01:31
Macports migration script for when you update your OS, follows the instructions from https://trac.macports.org/wiki/Migration
#!/bin/bash
port -qv installed > myports.txt
sudo port -f uninstall installed
sudo rm -rf /opt/local/var/macports/build/*
curl -O https://svn.macports.org/repository/macports/contrib/restore_ports/restore_ports.tcl
chmod +x restore_ports.tcl
sudo ./restore_ports.tcl myports.txt