Skip to content

Instantly share code, notes, and snippets.

@BenBallard
BenBallard / backtrace
Created August 15, 2012 17:17
Shovel backtrace
<4648.215.0>:
Program counter: 0x008b9178 (gen_server:loop/6 + 144)
CP: 0x00000000 (invalid)
arity = 0
0x03835d60 Return addr 0x0084a07c (proc_lib:init_p_do_apply/3 + 28)
y(0) []
y(1) infinity
y(2) rabbit_shovel_status
y(3) {state}
@BenBallard
BenBallard / Output with backtrace
Created August 15, 2012 13:52
Rabbit Shovel Failures
<4648.215.0>:
Program counter: 0x008b9178 (gen_server:loop/6 + 144)
CP: 0x00000000 (invalid)
arity = 0
0x03835d60 Return addr 0x0084a07c (proc_lib:init_p_do_apply/3 + 28)
y(0) []
y(1) infinity
y(2) rabbit_shovel_status
y(3) {state}
@BenBallard
BenBallard / TestServer.cpp
Created February 21, 2012 03:16
Dynamic Reconfigure change Gist
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2009-2010, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
@BenBallard
BenBallard / rosDriver.cpp
Created January 14, 2012 04:25
Possible dynamic reconfigure api update
#include <dynamic_reconfigure/server.h>
#include <dynamic_reconfigure/TestConfig.h>
void callback(dynamic_reconfigure::TestConfig &config, uint32_t level)
{
ROS_INFO("Reconfigure request : %i %f %s %i %i Group1:%i Group2: %f %s", config.int_, config.double_, config.str_.c_str(), (int) config.bool_, config.level, config.group1_int, config.group2_double, config.group2_string.c_str());
config.int_ |= 1;
config.double_ = -config.double_;
config.str_ += "A";