robot_state: fix copy size bug