Refactor to pass the full frame to ROS.