Implement a Speed-Limit RL Reward for Batched Trajectories (10Hz)

Implement a speed-limit reward function for RL.

Given:

  • traj with shape [batch, num_waypoint, 2] sampled at 10Hz. Assume traj[b][t][0] is speed v(t) (same unit as the speed limit) and `t...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: