Skip to content

Instantly share code, notes, and snippets.

View mikepurvis's full-sized avatar

Mike Purvis mikepurvis

View GitHub Profile
@mikepurvis
mikepurvis / gdb.txt
Created October 24, 2019 14:37
librealsense crash during ROS nodelet publish
#0 std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count (__r=..., this=<optimized out>) at /usr/include/c++/5/bits/shared_ptr_base.h:824
No locals.
#1 std::__shared_ptr<librealsense::stream_interface const, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<librealsense::stream_interface> (__r=..., this=<optimized out>)
at /usr/include/c++/5/bits/shared_ptr_base.h:949
No locals.
#2 std::shared_ptr<librealsense::stream_interface const>::shared_ptr<librealsense::stream_interface> (__r=..., this=<optimized out>) at /usr/include/c++/5/bits/shared_ptr.h:251
No locals.
#3 std::enable_shared_from_this<librealsense::stream_interface>::shared_from_this (this=<optimized out>) at /usr/include/c++/5/bits/shared_ptr.h:577
No locals.
#4 librealsense::extrinsics_graph::find_stream_profile (this=this@entry=0x7fc6fbf4dec0 <librealsense::environment::get_instance()::env>, p=...) at ../../../src/librealsense2/src/environment.cpp:90
DEBUG: ./tmp/netboot/tree/bin/update-dev is no ELF
DEBUG: ./tmp/netboot/tree/bin/anna-install is no ELF
DEBUG: ./tmp/netboot/tree/bin/lowmem_debconf is no ELF
DEBUG: ./tmp/netboot/tree/bin/debconf-get is no ELF
DEBUG: ./tmp/netboot/tree/bin/hw-detect is no ELF
DEBUG: ./tmp/netboot/tree/bin/check-missing-firmware is no ELF
DEBUG: ./tmp/netboot/tree/bin/env2debconf is no ELF
DEBUG: ./tmp/netboot/tree/bin/kill-all-dhcp is no ELF
DEBUG: ./tmp/netboot/tree/bin/sysfs-update-devnames is no ELF
DEBUG: ./tmp/netboot/tree/bin/in-target is no ELF
#!/bin/bash
#
# Prerequisites:
# sudo apt-get install python-bloom git-buildpackage
#
# Installation:
# cd ~/bin
# wget https://gist.github.com/mikepurvis/7036293/raw/bloom-local-deb
# chmod +x bloom-local-deb
#
@mikepurvis
mikepurvis / extensible_controllers.cpp
Created November 24, 2017 19:58
Example of extending a controller and changing the interface _without_ needing multiple inheritance.
///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2017, Clearpath Robotics Inc.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
@mikepurvis
mikepurvis / keybase.md
Created October 12, 2017 17:30
keybase.md

Keybase proof

I hereby claim:

  • I am mikepurvis on github.
  • I am mikepurvis (https://keybase.io/mikepurvis) on keybase.
  • I have a public key ASAwNzY7ez5KMpC_oLLZGrsmpIEHPEnk89DZ1k3B9Ccmggo

To claim this, I am signing this object:

- tar:
local-name: python-argparse
uri: https://pypi.python.org/packages/18/dd/e617cfc3f6210ae183374cd9f6a26b20514bbb5a792af97949c5aacddf0f/argparse-1.4.0.tar.gz
version: argparse-1.4.0
- tar:
local-name: python-catkin-pkg
uri: https://pypi.python.org/packages/47/4e/937929960341e3c7b6b84c78a412bba2fed3546ea970874cca78c6458004/catkin_pkg-0.3.1.tar.gz
version: catkin_pkg-0.3.1
- tar:
local-name: python-coverage
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<tagfile>
<compound kind="file">
<name>cstdlib</name>
<filename>cpp/header/cstdlib</filename>
<namespace>std</namespace>
</compound>
<compound kind="file">
<name>csignal</name>
<filename>cpp/header/csignal</filename>
@mikepurvis
mikepurvis / kinetic-cache.yaml
Created August 31, 2016 17:32
rosdistro_build_cache output
This file has been truncated, but you can view the full file.
distribution_file:
- release_platforms:
debian: [jessie]
fedora: ['23', '24']
ubuntu: [wily, xenial]
repositories:
ackermann_msgs: {doc: {type: git, url: 'https://github.com/ros-drivers/ackermann_msgs.git', version: master}, release: {tags: {release: 'release/kinetic/{package}/{version}'}, url: 'https://github.com/ros-drivers-gbp/ackermann_msgs-release.git', version: 1.0.1-0}, source: {type: git, url: 'https://github.com/ros-drivers/ackermann_msgs.git', version: master}, status: maintained}
actionlib: {doc: {type: git, url: 'https://github.com/ros/actionlib.git', version: indigo-devel}, release: {tags: {release: 'release/kinetic/{package}/{version}'}, url: 'https://github.com/ros-gbp/actionlib-release.git', version: 1.11.6-0}, source: {test_pull_requests: true, type: git, url: 'https://github.com/ros/actionlib.git', version: indigo-devel}, status: maintained}
agvs_common: {doc: {type: git, url: 'https://github.com/RobotnikAutomation/agvs_common.git', version: kinetic-devel}, release:
@mikepurvis
mikepurvis / build output
Last active December 26, 2015 08:49
kf/robot.rosinstall, everything but kingfisher CATKIN_IGNORE'd
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
@mikepurvis
mikepurvis / 1. strings
Last active December 23, 2015 01:09
Static analysis for size of the resulting firmware binary created by this example: https://github.com/mikepurvis/rosserial_leonardo_example
$ strings build/rosserial_leonardo_example/firmware/example.elf
std_msgs/Time
cd7166c74c552c311fbcc2fe5a7bc289
rosserial_msgs/TopicInfo
63aa5e8f1bdd6f35c69fe1a1b9d28e9f
rosserial_msgs/Log
11abd731c25933261cd6183bd12d6295
9f0e98bda65981986ddf53afa7a40e49
std_msgs/Bool
8b94c1b53db61fb6aed406028ad6332a