Real-Time Motion Prediction via Heterogeneous Polyline Transformer with Relative Pose Encoding