Copied from https://code.google.com/p/jks-ros-pkg/source/browse/