Hello, I found that when processing the past trajectory of the ego vehicle, after the global coordinates are converted into local coordinates, the trajectory will become very unsmooth, but the real trajectory in the future will be smooth after this transformation. I found that when converting the past and future global coordinates, using two different functions resulted in different results.
They are convert_absolute_to_relative_poses, convert_absolute_quantities_to_relative (there may be problems)
Since the trajectory of the agent vehicle is also processed using convert_absolute_quantities_to_relative, this trajectory is also not smooth.
Below is the code diagram and the visualization you provided, the non-smooth trajectory that exists
Hello, I found that when processing the past trajectory of the ego vehicle, after the global coordinates are converted into local coordinates, the trajectory will become very unsmooth, but the real trajectory in the future will be smooth after this transformation. I found that when converting the past and future global coordinates, using two different functions resulted in different results. They are convert_absolute_to_relative_poses, convert_absolute_quantities_to_relative (there may be problems) Since the trajectory of the agent vehicle is also processed using convert_absolute_quantities_to_relative, this trajectory is also not smooth. Below is the code diagram and the visualization you provided, the non-smooth trajectory that exists
How to solve this problem