add trajectory downsampling and playback