snake.core.handlers.motion.utils

snake.core.handlers.motion.utils#

Utility functions for motion generation.

Functions

add_motion

Add motion to a base array.

apply_rotation_at_center

Apply the rotation at the center of the array.

motion_generator

Generate a motion trajectory.

rotation

Create an array with a 4 dimensional rotation matrix.

rotation2D

Create an array with a 2D rotation matrix.

rotation3d

Create an array with a 3 dimensional rotation matrix.

translation

Create an array with a translation matrix.