neuralib.locomotion.position.speed_2d

neuralib.locomotion.position.speed_2d(xy, dt=1.0)[source]

Compute speed 2D movement

Parameters:
  • xy (ndarray) – 2D array coordinates in xy. Array[float, [N, 2]]

  • dt (float) – Time period between samples (for smoothing)

Returns:

Speed. Array[float, N]

Return type:

ndarray