Skip to content

Instantly share code, notes, and snippets.

View wjwwood's full-sized avatar
🙃

William Woodall wjwwood

🙃
View GitHub Profile
∫ rosversion laser_pipeline
1.2.0
william@barley:~/ros/laser_pipeline
∫ rosmake laser_pipeline
Using environment variable ROS_OS_OVERRIDE name = osxbrew version = lion
[ rosmake ] Packages requested are: ['laser_pipeline']
[ rosmake ] Logging to directory/Users/william/.ros/rosmake/rosmake_output-20111220-164532
[ rosmake ] Expanded args ['laser_pipeline'] to:
['laser_geometry', 'laser_filters', 'laser_assembler']
[ rosmake ] Checking rosdeps compliance for packages laser_pipeline. This may take a few seconds.
@wjwwood
wjwwood / serial_listener_example.cpp
Created January 12, 2012 02:56
serial_listener_example.cc
#include <iostream>
#include <serial/serial.h>
#include <serial/serial_listener.h>
using namespace serial;
void default_handler(std::string token) {
std::cout << "default_handler got a: " << token << std::endl;
}
[100%] Running SIP generator for librviz Python bindings...
sip: Deprecation warning: rviz.sip:1: %Module version number should be specified using the 'version' argument
[100%] Compiling generated code for librviz Python bindings with /Users/william/devel/vis_exp/visualization/rviz/build/sip/rviz_sip/Makefile...
In file included from /Users/william/devel/vis_exp/visualization/rviz/src/rviz/visualization_frame.h:45,
from visualization_frame.sip:7:
/Users/william/devel/vis_exp/visualization/rviz/src/rviz/panel.h:60: warning: unused parameter ‘key_prefix’
/Users/william/devel/vis_exp/visualization/rviz/src/rviz/panel.h:60: warning: unused parameter ‘config’
/Users/william/devel/vis_exp/visualization/rviz/src/rviz/panel.h:67: warning: unused parameter ‘key_prefix’
/Users/william/devel/vis_exp/visualization/rviz/src/rviz/panel.h:67: warning: unused parameter ‘config’
i686-apple-darwin11-llvm-g++-4.2: Carbon: No such file or directory
∫ make
mkdir -p bin
cd build && cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
Starting program: /Users/william/devel/atrv_ws/gavlab_atrv/gavlab_atrv/bin/atrv_example
Reading symbols for shared libraries ++++++++......................... done
ATRV Info: Rear motor controller: Estop is disabled.
ATRV Info: Front motor controller: Estop is disabled.
ATRV Info: Rear motor controller: Echo is enabled.
ATRV Info: Front motor controller: Echo is enabled.
ATRV Info: Rear motor controller: Connected to device Roboteq v1.2 RCB400 09/05/2011 with control unit RCB400 and controller model MDC2250.
ATRV Info: Front motor controller: Connected to device Roboteq v1.2 RCB400 09/05/2011 with control unit RCB400 and controller model MDC2250.
ATRV front telemetry: A=0:0
#1 0x000000010000313c in run () at mdc2250_example.cc:39
39 my_mdc2250.setTelemetry("C,V,C,A", period, telemetry_callback);
(gdb) inspect my_mdc2250
$4 = {
_vptr$MDC2250 = 0x1000b6050,
cmd_time = 1000,
handle_exc = {
<boost::function1<void,const std::exception&>> = {
<boost::function_base> = {
vtable = 0x10004d961,
(gdb) break mdc2250.cc:298
Breakpoint 1 at 0x3126e978d3232f: file mdc2250.cc, line 298.
(gdb) r
Starting program: /Users/william/devel/atrv_ws/mdc2250/bin/mdc2250_example
Reading symbols for shared libraries +++++++......................... done
Unparsed token(12): Starting ...
Unparsed token(3): ?FF
MDC2250 Info: Estop is disabled.
Unparsed token(8): ^ECHOF 0
Unparsed token(6): ~ECHOF
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
`/Users/william/devel/atrv_ws/mdc2250/lib/libmdc2250.dylib' has changed; re-reading symbols.
`/Users/william/devel/atrv_ws/mdc2250/bin/mdc2250_example' has changed; re-reading symbols.
Starting program: /Users/william/devel/atrv_ws/mdc2250/bin/mdc2250_example
Re-enabling shared library breakpoint 1
Unparsed token(12): Starting ...
Unparsed token(3): ?FF
MDC2250 Info: Estop is disabled.
william@barley:~/ros
∫ ack -G rosdep.yaml -A 7 -B 7 osxbrew:
bond_core/rosdep.yaml
1-uuid:
2- ubuntu: uuid-dev
3- debian: uuid-dev
4- fedora: libuuid-devel
5- macports: ossp-uuid
6: osxbrew:
7- lion:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffeb979700 (LWP 23110)]
0x0000000000684040 in ?? ()
(gdb) bt
#0 0x0000000000684040 in ?? ()
#1 0x000000000043548a in boost::detail::sp_counted_base::release (this=0x68d520) at /usr/include/boost/smart_ptr/detail/sp_counted_base_gcc_x86.hpp:145
#2 0x0000000000435519 in boost::detail::shared_count::~shared_count (this=0x68f7f8, __in_chrg=<value optimized out>) at /usr/include/boost/smart_ptr/detail/shared_count.hpp:217
#3 0x00007ffff4ac443c in boost::shared_ptr<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const>::~shared_ptr (this=0x68f7f0, __in_chrg=<value optimized out>)
at /usr/include/boost/smart_ptr/shared_ptr.hpp:169
#4 0x00007ffff4862c39 in std::pair<boost::shared_ptr<serial::utils::Filter>, boost::shared_ptr<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const> >::~pair (this=0x68f7e0,