[ros] pose: use functions instead of PosePublisherHelper class