[ros] rewrite ros io w/class