add_motion# snake.core.handlers.motion.utils.add_motion(data, motion_params, idx=0)[source]# Add motion to a base array. Parameters: data (np.ndarray) – The data to which motion is added. motion (np.ndarray) – The N_frames x 6 motion trajectory. frame_idx (int) – The frame index used to compute the motion at that frame. motion_params (ndarray[Any, dtype[floating]]) idx (int) Returns: The data with motion added. Return type: np.ndarray