added a resource resolver for ros package relative resources, and fixed a bug in the record writer