Programming

Cmake

Add Headers to IDE

file(GLOB_RECURSE HeaderFiles "include/*.h")
add_custom_target(headers SOURCES ${HeaderFiles})

Debugging

GDB

Python

gdb python
run /<path to your python script>

Catch and Locate Exceptions

gdb (python)
set pagination off
catch throw
commands
backtrace
continue
end
run ...

Regex

A collection of regex patterns e.g. for search and replace, tested with JetBrains IDEs.

Replace std::cout with ROS_INFO_STREAM_NAMED()

Search

std::cout ([< "^\n.?\[\]&:\(\)'a-zA-Z0-9]{1,});

Replace

ROS_INFO_STREAM_NAMED(TAG, TAG $1);