When the function is called with num_samples=1, the expected result is [int(time_horizon/time_interval)]
However, the result is off by 1: [int(time_horizon/time_interval)+1]
This can be verified by the following code:
The consequence of this is that NuPlanScenario.get_past_tracked_objects() does not get the tracked objects at the intended timestamp when num_samples=1
Describe the bug
When the function is called with num_samples=1, the expected result is [int(time_horizon/time_interval)] However, the result is off by 1: [int(time_horizon/time_interval)+1] This can be verified by the following code:
The consequence of this is that NuPlanScenario.get_past_tracked_objects() does not get the tracked objects at the intended timestamp when num_samples=1