Copied from osrf_rosandroid