fix replay perception obstacle velocity direction
The obstacles generated from the replay perception script have velocity direction not conforming to their actual movement. For instance, an obstacle might be traveling straight towards the north while its velocity direction points to the east. This updated script should resolve this problem.
I've recorded two videos comparing the original script and the script from the pull request, both taking /apollo/modules/tools/perception/garage_onroad_vehicle_3.json as input. The new script has correct velocity direction while the original script has velocity direction pointing elsewhere.
And here is a quick peek of the change:
original

pull request

Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
EricWu416 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.